Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
679b2317
Commit
679b2317
authored
Sep 30, 2011
by
Pieter Noordhuis
Browse files
Add destroy callback to parser
parent
71f280f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
parser.h
View file @
679b2317
...
...
@@ -26,12 +26,14 @@ typedef int (*redis_string_cb)(redis_parser *, redis_protocol *, const char *, s
typedef
int
(
*
redis_array_cb
)(
redis_parser
*
,
redis_protocol
*
,
size_t
);
typedef
int
(
*
redis_integer_cb
)(
redis_parser
*
,
redis_protocol
*
,
int64_t
);
typedef
int
(
*
redis_nil_cb
)(
redis_parser
*
,
redis_protocol
*
);
typedef
int
(
*
redis_destroy_cb
)(
redis_parser
*
,
redis_protocol
*
);
struct
redis_parser_callbacks_s
{
redis_string_cb
on_string
;
redis_array_cb
on_array
;
redis_integer_cb
on_integer
;
redis_nil_cb
on_nil
;
redis_destroy_cb
destroy
;
};
#define REDIS_PARSER_ERRNO_MAP(_X) \
...
...
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