Move prototypes around in header
This commit is contained in:
parent
a926232293
commit
58caf62a52
@ -131,7 +131,7 @@ typedef struct redisReader {
|
|||||||
void *privdata;
|
void *privdata;
|
||||||
} redisReader;
|
} redisReader;
|
||||||
|
|
||||||
void freeReplyObject(void *reply);
|
/* Public API for the protocol parser. */
|
||||||
redisReader *redisReplyReaderCreate(void);
|
redisReader *redisReplyReaderCreate(void);
|
||||||
void redisReplyReaderFree(redisReader *r);
|
void redisReplyReaderFree(redisReader *r);
|
||||||
void redisReplyReaderFeed(redisReader *r, const char *buf, size_t len);
|
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 redisReplyReaderGetObject(_r) (((redisReader*)(_r))->reply)
|
||||||
#define redisReplyReaderGetError(_r) (((redisReader*)(_r))->errstr)
|
#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. */
|
/* Functions to format a command according to the protocol. */
|
||||||
int redisvFormatCommand(char **target, const char *format, va_list ap);
|
int redisvFormatCommand(char **target, const char *format, va_list ap);
|
||||||
int redisFormatCommand(char **target, const char *format, ...);
|
int redisFormatCommand(char **target, const char *format, ...);
|
||||||
|
Loading…
Reference in New Issue
Block a user