diff options
Diffstat (limited to 'hiredis.h')
-rw-r--r-- | hiredis.h | 28 |
1 files changed, 0 insertions, 28 deletions
@@ -84,15 +84,6 @@ typedef struct redisReplyObjectFunctions { struct redisContext; /* need forward declaration of redisContext */ -/* Callbacks triggered on non-reply events. */ -typedef void (redisContextCallbackFn)(struct redisContext*, void*); - -/* Callback containers */ -typedef struct redisContextCallback { - redisContextCallbackFn *fn; - void *privdata; -} redisContextCallback; - /* Context for a connection to Redis */ typedef struct redisContext { int fd; @@ -103,11 +94,6 @@ typedef struct redisContext { /* Function set for reply buildup and reply reader */ redisReplyObjectFunctions *fn; void *reader; - - /* Non-reply callbacks */ - redisContextCallback cbDisconnect; - redisContextCallback cbCommand; - redisContextCallback cbFree; } redisContext; void freeReplyObject(void *reply); @@ -137,20 +123,6 @@ int redisBufferWrite(redisContext *c, int *done); * context, it will return unconsumed replies until there are no more. */ int redisGetReply(redisContext *c, void **reply); -/* The disconnect callback is called *immediately* when redisDisconnect() - * is called. It is called only once for every redisContext (since hiredis - * currently does not support reconnecting an existing context). */ -void redisSetDisconnectCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata); - -/* The command callback is called every time redisCommand() is called in a - * non-blocking context. It is called *after* the formatted command has been - * appended to the write buffer. */ -void redisSetCommandCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata); - -/* The free callback is called *before* all allocations are free'd. Use it to - * release resources that depend/use the redisContext that is being free'd. */ -void redisSetFreeCallback(redisContext *c, redisContextCallbackFn *fn, void *privdata); - /* Write a command to the output buffer. Use these functions in blocking mode * to get a pipeline of commands. */ void redisvAppendCommand(redisContext *c, const char *format, va_list ap); |