diff options
Diffstat (limited to 'src/api/yajl_parse.h')
-rw-r--r-- | src/api/yajl_parse.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/yajl_parse.h b/src/api/yajl_parse.h index 1c25a60..4455df4 100644 --- a/src/api/yajl_parse.h +++ b/src/api/yajl_parse.h @@ -108,6 +108,11 @@ extern "C" { yajl_alloc_funcs * afs, void * ctx); + /** reset a parser handle to a pristine state. the parser will be minimally + * re-initialized. This should be faster when parsing multiple documents + * than freeing and re-allocating a YAJL parser. + */ + YAJL_API void yajl_reset(yajl_handle h); /** configuration parameters for the parser, these may be passed to * yajl_config() along with option specific argument(s). In general, |