summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
Diffstat (limited to 'async.h')
-rw-r--r--async.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/async.h b/async.h
index 21e049e..2990a15 100644
--- a/async.h
+++ b/async.h
@@ -32,6 +32,7 @@
#ifndef __HIREDIS_ASYNC_H
#define __HIREDIS_ASYNC_H
#include "hiredis.h"
+#include "dict.h"
#ifdef __cplusplus
extern "C" {
@@ -88,8 +89,15 @@ typedef struct redisAsyncContext {
/* Called when the first write event was received. */
redisConnectCallback *onConnect;
- /* Reply callbacks */
+ /* Regular command callbacks */
redisCallbackList replies;
+
+ /* Subscription callbacks */
+ struct {
+ redisCallbackList invalid;
+ dict *channels;
+ dict *patterns;
+ } sub;
} redisAsyncContext;
/* Functions that proxy to hiredis */