![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include "yajl_parse.h"
Public Attributes | |
int(* | yajl_null )(void *ctx) |
int(* | yajl_boolean )(void *ctx, int boolVal) |
int(* | yajl_integer )(void *ctx, long long integerVal) |
int(* | yajl_double )(void *ctx, double doubleVal) |
int(* | yajl_number )(void *ctx, const char *numberVal, size_t numberLen) |
int(* | yajl_string )(void *ctx, const unsigned char *stringVal, size_t stringLen) |
int(* | yajl_start_map )(void *ctx) |
int(* | yajl_map_key )(void *ctx, const unsigned char *key, size_t stringLen) |
int(* | yajl_end_map )(void *ctx) |
int(* | yajl_start_array )(void *ctx) |
int(* | yajl_end_array )(void *ctx) |
YAJL is an event driven parser. This means as json elements are parsed, you are called back to do something with the data. The functions in this table indicate the various events for which you will be called back. Each callback accepts a "context" pointer, this is a void * that is passed into the yajl_parse() function which the client code may use to pass around context.
All callbacks return an integer. If non-zero, the parse will continue. If zero, the parse will be canceled and yajl_status_client_canceled() will be returned from the parse.
Definition at line 71 of file yajl_parse.h.
int(* yajl_callbacks::yajl_boolean) (void *ctx, int boolVal) |
Definition at line 73 of file yajl_parse.h.
int(* yajl_callbacks::yajl_double) (void *ctx, double doubleVal) |
Definition at line 75 of file yajl_parse.h.
int(* yajl_callbacks::yajl_end_array) (void *ctx) |
Definition at line 92 of file yajl_parse.h.
int(* yajl_callbacks::yajl_end_map) (void *ctx) |
Definition at line 89 of file yajl_parse.h.
int(* yajl_callbacks::yajl_integer) (void *ctx, long long integerVal) |
Definition at line 74 of file yajl_parse.h.
int(* yajl_callbacks::yajl_map_key) (void *ctx, const unsigned char *key, size_t stringLen) |
Definition at line 87 of file yajl_parse.h.
int(* yajl_callbacks::yajl_null) (void *ctx) |
Definition at line 72 of file yajl_parse.h.
int(* yajl_callbacks::yajl_number) (void *ctx, const char *numberVal, size_t numberLen) |
A callback which passes the string representation of the number back to the client. Will be used for all numbers when present
Definition at line 78 of file yajl_parse.h.
int(* yajl_callbacks::yajl_start_array) (void *ctx) |
Definition at line 91 of file yajl_parse.h.
int(* yajl_callbacks::yajl_start_map) (void *ctx) |
Definition at line 86 of file yajl_parse.h.
int(* yajl_callbacks::yajl_string) (void *ctx, const unsigned char *stringVal, size_t stringLen) |
Strings are returned as pointers into the JSON text when, possible, as a result, they are not null padded
Definition at line 83 of file yajl_parse.h.