Go to the documentation of this file.
10 #ifndef I3_YAJL_UTILS_H
11 #define I3_YAJL_UTILS_H
13 #include <yajl/yajl_gen.h>
14 #include <yajl/yajl_parse.h>
15 #include <yajl/yajl_version.h>
18 #define y(x, ...) yajl_gen_ ## x (gen, ##__VA_ARGS__)
19 #define ystr(str) yajl_gen_string(gen, (unsigned char*)str, strlen(str))
22 #define ygenalloc() yajl_gen_alloc(NULL)
23 #define yalloc(callbacks, client) yajl_alloc(callbacks, NULL, client)
26 #define ygenalloc() yajl_gen_alloc(NULL, NULL);
27 #define yalloc(callbacks, client) yajl_alloc(callbacks, NULL, NULL, client)