jsontree: add int pointer types

This commit is contained in:
Jeff Kent 2015-12-28 09:45:29 -06:00
parent bcc7d0a1eb
commit a65d566dee
3 changed files with 37 additions and 0 deletions

View file

@ -109,6 +109,11 @@ struct jsontree_array {
struct jsontree_value **values;
};
struct jsontree_ptr {
uint8_t type;
const void *value;
};
#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)}