summaryrefslogtreecommitdiff
path: root/src/api/yajl_parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/yajl_parse.h')
-rw-r--r--src/api/yajl_parse.h5
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,