summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:39:03 +0200
committerPieter Noordhuis <pcnoordhuis@gmail.com>2011-04-21 14:39:03 +0200
commit58caf62a527173ffb861177037ace344db3caf19 (patch)
tree8be43f77deda6422e8c35c02a25506dbc3b4e65b
parenta9262322938d04226be2410aa20460a31d4a4a51 (diff)
Move prototypes around in header
-rw-r--r--hiredis.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 6fb9e27..8992f32 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -131,7 +131,7 @@ typedef struct redisReader {
void *privdata;
} redisReader;
-void freeReplyObject(void *reply);
+/* Public API for the protocol parser. */
redisReader *redisReplyReaderCreate(void);
void redisReplyReaderFree(redisReader *r);
void redisReplyReaderFeed(redisReader *r, const char *buf, size_t len);
@@ -142,6 +142,9 @@ int redisReplyReaderGetReply(redisReader *r, void **reply);
#define redisReplyReaderGetObject(_r) (((redisReader*)(_r))->reply)
#define redisReplyReaderGetError(_r) (((redisReader*)(_r))->errstr)
+/* Function to free the reply objects hiredis returns by default. */
+void freeReplyObject(void *reply);
+
/* Functions to format a command according to the protocol. */
int redisvFormatCommand(char **target, const char *format, va_list ap);
int redisFormatCommand(char **target, const char *format, ...);