summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-01-14 12:07:24 +0100
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-01-14 12:07:29 +0100
commitc6b8bd77c0fe00dbc455b39208f15761178160a3 (patch)
treeea4a1ec60ea778e45c9b9a465599c1194036985a /async.h
parent7adfef1680a7e8d93c29c0c15977a95febdcf473 (diff)
Make dictionary functions static and include the .c file
Diffstat (limited to 'async.h')
-rw-r--r--async.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/async.h b/async.h
index 2990a15..ba2b6f5 100644
--- a/async.h
+++ b/async.h
@@ -32,13 +32,13 @@
#ifndef __HIREDIS_ASYNC_H
#define __HIREDIS_ASYNC_H
#include "hiredis.h"
-#include "dict.h"
#ifdef __cplusplus
extern "C" {
#endif
struct redisAsyncContext; /* need forward declaration of redisAsyncContext */
+struct dict; /* dictionary header is included in async.c */
/* Reply callback prototype and container */
typedef void (redisCallbackFn)(struct redisAsyncContext*, void*, void*);
@@ -95,8 +95,8 @@ typedef struct redisAsyncContext {
/* Subscription callbacks */
struct {
redisCallbackList invalid;
- dict *channels;
- dict *patterns;
+ struct dict *channels;
+ struct dict *patterns;
} sub;
} redisAsyncContext;