Keep track of the root of the parse tree for the caller

This commit is contained in:
Eric Fischer
2014-02-06 21:06:27 -08:00
parent 415193ad8e
commit f0f73c6dd1
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -18,13 +18,15 @@ typedef struct json_object {
} json_object;
struct json_pull {
json_object *container;
json_object *root;
char *error;
int (*read)(struct json_pull *);
int (*peek)(struct json_pull *);
void *source;
int line;
json_object *container;
};
typedef struct json_pull json_pull;