Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
58caf62a
Commit
58caf62a
authored
Apr 21, 2011
by
Pieter Noordhuis
Browse files
Move prototypes around in header
parent
a9262322
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.h
View file @
58caf62a
...
@@ -131,7 +131,7 @@ typedef struct redisReader {
...
@@ -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);
...
@@ -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
,
...);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment