jsontree: add int pointer types
This commit is contained in:
parent
bcc7d0a1eb
commit
a65d566dee
3 changed files with 37 additions and 0 deletions
|
@ -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)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue