summaryrefslogtreecommitdiff
path: root/async.h
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-06-27 23:52:29 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-06-27 23:52:29 +0200
commit3313bcd1912abdced96bc995ede22836c67bcd9d (patch)
tree920ea23330d6d075cc21e9f3228fe23236f110e8 /async.h
parente6d997a96f9af10f08c9c9e52fb545420650b05b (diff)
Change prototype of connect callback
This commit adds a status argument to the connect callback. It will be called in the event of an unsuccessful connection as well, where the status argument is set to REDIS_ERR. It is set to REDIS_OK otherwise.
Diffstat (limited to 'async.h')
-rw-r--r--async.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/async.h b/async.h
index bb5c87d..268274e 100644
--- a/async.h
+++ b/async.h
@@ -55,7 +55,7 @@ typedef struct redisCallbackList {
/* Connection callback prototypes */
typedef void (redisDisconnectCallback)(const struct redisAsyncContext*, int status);
-typedef void (redisConnectCallback)(const struct redisAsyncContext*);
+typedef void (redisConnectCallback)(const struct redisAsyncContext*, int status);
/* Context for an async connection to Redis */
typedef struct redisAsyncContext {