summaryrefslogtreecommitdiff
path: root/hiredis.h
diff options
context:
space:
mode:
Diffstat (limited to 'hiredis.h')
-rw-r--r--hiredis.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/hiredis.h b/hiredis.h
index b8c69bb..58b9066 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -72,7 +72,7 @@ typedef struct redisReplyObjectFunctions {
void *(*createInteger)(redisReadTask*, long long);
void *(*createNil)(redisReadTask*);
void (*freeObject)(void*);
-} redisReplyFunctions;
+} redisReplyObjectFunctions;
struct redisContext; /* need forward declaration of redisContext */
@@ -101,7 +101,7 @@ typedef struct redisContext {
sds obuf; /* Write buffer */
/* Function set for reply buildup and reply reader */
- redisReplyFunctions *fn;
+ redisReplyObjectFunctions *fn;
void *reader;
/* Non-reply callbacks */
@@ -116,15 +116,15 @@ typedef struct redisContext {
} redisContext;
void freeReplyObject(void *reply);
-void *redisReplyReaderCreate(redisReplyFunctions *fn);
+void *redisReplyReaderCreate(redisReplyObjectFunctions *fn);
void *redisReplyReaderGetObject(void *reader);
char *redisReplyReaderGetError(void *reader);
void redisReplyReaderFree(void *ptr);
void redisReplyReaderFeed(void *reader, char *buf, int len);
int redisReplyReaderGetReply(void *reader, void **reply);
-redisContext *redisConnect(const char *ip, int port, redisReplyFunctions *fn);
-redisContext *redisConnectNonBlock(const char *ip, int port, redisReplyFunctions *fn);
+redisContext *redisConnect(const char *ip, int port, redisReplyObjectFunctions *fn);
+redisContext *redisConnectNonBlock(const char *ip, int port, redisReplyObjectFunctions *fn);
void redisDisconnect(redisContext *c);
void redisFree(redisContext *c);
int redisBufferRead(redisContext *c);