Commit d96c4c9e authored by Pieter Noordhuis's avatar Pieter Noordhuis
Browse files

Change prototype

parent d64575b2
......@@ -101,7 +101,7 @@ void redis_parser_init(redis_parser_t *parser, const redis_parser_cb_t *callback
* no full message was parsed and the return value is smaller than the number
* of bytes that were available, an error occured and the parser should be
* re-initialized before parsing more data. */
size_t redis_parser_execute(redis_parser_t *parser, const char *buf, size_t len, redis_protocol_t *dst) {
size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, const char *buf, size_t len) {
redis_protocol_t *stack = parser->stack;
const redis_parser_cb_t *callbacks = parser->callbacks;
const char *pos;
......
......@@ -61,6 +61,6 @@ struct redis_parser_s {
};
void redis_parser_init(redis_parser_t *parser, const redis_parser_cb_t *callbacks);
size_t redis_parser_execute(redis_parser_t *parser, const char *buf, size_t len, redis_protocol_t *dst);
size_t redis_parser_execute(redis_parser_t *parser, redis_protocol_t **dst, const char *buf, size_t len);
#endif // __REDIS_PARSER_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment