From 3313bcd1912abdced96bc995ede22836c67bcd9d Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Mon, 27 Jun 2011 23:52:29 +0200 Subject: 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. --- async.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'async.h') 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 { -- cgit v1.2.3