23 #ifndef __YAJL_PARSE_H__ 24 #define __YAJL_PARSE_H__ 72 int (* yajl_null)(
void *
ctx);
73 int (* yajl_boolean)(
void *
ctx,
int boolVal);
74 int (* yajl_integer)(
void *
ctx,
long long integerVal);
75 int (* yajl_double)(
void *
ctx,
double doubleVal);
78 int (* yajl_number)(
void *
ctx,
const char * numberVal,
83 int (* yajl_string)(
void *
ctx,
const unsigned char * stringVal,
86 int (* yajl_start_map)(
void *
ctx);
87 int (* yajl_map_key)(
void *
ctx,
const unsigned char * key,
89 int (* yajl_end_map)(
void *
ctx);
91 int (* yajl_start_array)(
void *
ctx);
92 int (* yajl_end_array)(
void *
ctx);
176 const unsigned char * jsonText,
177 size_t jsonTextLength);
201 const unsigned char * jsonText,
202 size_t jsonTextLength);
YAJL_API int yajl_config(yajl_handle h, yajl_option opt,...)
YAJL_API yajl_status yajl_complete_parse(yajl_handle hand)
Common routines and macros used by other YAJL APIs.
YAJL_API void yajl_free_error(yajl_handle hand, unsigned char *str)
YAJL_API void yajl_free(yajl_handle handle)
YAJL_API yajl_handle yajl_alloc(const yajl_callbacks *callbacks, yajl_alloc_funcs *afs, void *ctx)
YAJL_API unsigned char * yajl_get_error(yajl_handle hand, int verbose, const unsigned char *jsonText, size_t jsonTextLength)
struct yajl_handle_t * yajl_handle
YAJL_API size_t yajl_get_bytes_consumed(yajl_handle hand)
YAJL_API yajl_status yajl_parse(yajl_handle hand, const unsigned char *jsonText, size_t jsonTextLength)
const yajl_callbacks * callbacks
YAJL_API const char * yajl_status_to_string(yajl_status code)