|
MeterLogger
|
Go to the source code of this file.
Data Structures | |
| struct | jsontree_context |
| struct | jsontree_value |
| struct | jsontree_string |
| struct | jsontree_int |
| struct | jsontree_callback |
| struct | jsontree_pair |
| struct | jsontree_object |
| struct | jsontree_array |
Macros | |
| #define | JSONTREE_MAX_DEPTH 10 |
| #define | JSONTREE_STRING(text) {JSON_TYPE_STRING, (text)} |
| #define | JSONTREE_PAIR(name, value) {(name), (struct jsontree_value *)(value)} |
| #define | JSONTREE_CALLBACK(output, set) {JSON_TYPE_CALLBACK, (output), (set)} |
| #define | JSONTREE_OBJECT(name, ...) |
| #define | JSONTREE_PAIR_ARRAY(value) (struct jsontree_value *)(value) |
| #define | JSONTREE_ARRAY(name, ...) |
| #define | JSONTREE_OBJECT_EXT(name, ...) |
Functions | |
| void | jsontree_setup (struct jsontree_context *js_ctx, struct jsontree_value *root, int(*putchar)(int)) |
| void | jsontree_reset (struct jsontree_context *js_ctx) |
| const char * | jsontree_path_name (const struct jsontree_context *js_ctx, int depth) |
| void | jsontree_write_int (const struct jsontree_context *js_ctx, int value) |
| void | jsontree_write_int_array (const struct jsontree_context *js_ctx, const int *text, uint32 length) |
| void | jsontree_write_atom (const struct jsontree_context *js_ctx, const char *text) |
| void | jsontree_write_string (const struct jsontree_context *js_ctx, const char *text) |
| int | jsontree_print_next (struct jsontree_context *js_ctx) |
| struct jsontree_value * | jsontree_find_next (struct jsontree_context *js_ctx, int type) |
JSON output generation
Definition in file jsontree.h.
| #define JSONTREE_ARRAY | ( | name, | |
| ... | |||
| ) |
Definition at line 113 of file jsontree.h.
| #define JSONTREE_CALLBACK | ( | output, | |
| set | |||
| ) | {JSON_TYPE_CALLBACK, (output), (set)} |
Definition at line 103 of file jsontree.h.
| #define JSONTREE_MAX_DEPTH 10 |
Definition at line 49 of file jsontree.h.
| #define JSONTREE_OBJECT | ( | name, | |
| ... | |||
| ) |
Definition at line 105 of file jsontree.h.
| #define JSONTREE_OBJECT_EXT | ( | name, | |
| ... | |||
| ) |
Definition at line 120 of file jsontree.h.
| #define JSONTREE_PAIR | ( | name, | |
| value | |||
| ) | {(name), (struct jsontree_value *)(value)} |
Definition at line 102 of file jsontree.h.
| #define JSONTREE_PAIR_ARRAY | ( | value | ) | (struct jsontree_value *)(value) |
Definition at line 112 of file jsontree.h.
| #define JSONTREE_STRING | ( | text | ) | {JSON_TYPE_STRING, (text)} |
Definition at line 101 of file jsontree.h.
| struct jsontree_value* jsontree_find_next | ( | struct jsontree_context * | js_ctx, |
| int | type | ||
| ) |
| const char* jsontree_path_name | ( | const struct jsontree_context * | js_ctx, |
| int | depth | ||
| ) |
| int jsontree_print_next | ( | struct jsontree_context * | js_ctx | ) |
| void jsontree_reset | ( | struct jsontree_context * | js_ctx | ) |
| void jsontree_setup | ( | struct jsontree_context * | js_ctx, |
| struct jsontree_value * | root, | ||
| int(*)(int) | putchar | ||
| ) |
| void jsontree_write_atom | ( | const struct jsontree_context * | js_ctx, |
| const char * | text | ||
| ) |
| void jsontree_write_int | ( | const struct jsontree_context * | js_ctx, |
| int | value | ||
| ) |
| void jsontree_write_int_array | ( | const struct jsontree_context * | js_ctx, |
| const int * | text, | ||
| uint32 | length | ||
| ) |
| void jsontree_write_string | ( | const struct jsontree_context * | js_ctx, |
| const char * | text | ||
| ) |
1.8.13