summaryrefslogtreecommitdiff
path: root/hiredis.c
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 16:36:08 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2010-10-30 16:36:08 +0200
commit1e7f5ae6bd5738855f077e4c117a018409ab6a1b (patch)
tree3ffc8663be3850b10067012a591187d820597e1d /hiredis.c
parent0f745d1ac0acc4fa0614ea441272a6f75ff24f71 (diff)
Rename struct
Diffstat (limited to 'hiredis.c')
-rw-r--r--hiredis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hiredis.c b/hiredis.c
index 15bc2a7..7fbe016 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -60,7 +60,7 @@ static void *createNilObject(redisReadTask *task);
static void redisSetReplyReaderError(redisReader *r, sds err);
/* Default set of functions to build the reply. */
-static redisReplyFunctions defaultFunctions = {
+static redisReplyObjectFunctions defaultFunctions = {
createStringObject,
createArrayObject,
createIntegerObject,
@@ -339,7 +339,7 @@ static int processItem(redisReader *r) {
}
}
-void *redisReplyReaderCreate(redisReplyFunctions *fn) {
+void *redisReplyReaderCreate(redisReplyObjectFunctions *fn) {
redisReader *r = calloc(sizeof(redisReader),1);
r->error = NULL;
r->fn = fn == NULL ? &defaultFunctions : fn;
@@ -574,7 +574,7 @@ static int redisContextConnect(redisContext *c, const char *ip, int port) {
return REDIS_OK;
}
-static redisContext *redisContextInit(redisReplyFunctions *fn) {
+static redisContext *redisContextInit(redisReplyObjectFunctions *fn) {
redisContext *c = calloc(sizeof(redisContext),1);
c->error = NULL;
c->obuf = sdsempty();
@@ -629,7 +629,7 @@ void redisFree(redisContext *c) {
/* Connect to a Redis instance. On error the field error in the returned
* context will be set to the return value of the error function.
* When no set of reply functions is given, the default set will be used. */
-redisContext *redisConnect(const char *ip, int port, redisReplyFunctions *fn) {
+redisContext *redisConnect(const char *ip, int port, redisReplyObjectFunctions *fn) {
redisContext *c = redisContextInit(fn);
c->flags |= REDIS_BLOCK;
c->flags |= REDIS_CONNECTED;
@@ -637,7 +637,7 @@ redisContext *redisConnect(const char *ip, int port, redisReplyFunctions *fn) {
return c;
}
-redisContext *redisConnectNonBlock(const char *ip, int port, redisReplyFunctions *fn) {
+redisContext *redisConnectNonBlock(const char *ip, int port, redisReplyObjectFunctions *fn) {
redisContext *c = redisContextInit(fn);
c->flags &= ~REDIS_BLOCK;
c->flags |= REDIS_CONNECTED;