diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-06-27 23:52:29 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-06-27 23:52:29 +0200 |
commit | 3313bcd1912abdced96bc995ede22836c67bcd9d (patch) | |
tree | 920ea23330d6d075cc21e9f3228fe23236f110e8 /async.h | |
parent | e6d997a96f9af10f08c9c9e52fb545420650b05b (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |