mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-03 00:45:41 +02:00
Add a reader abstraction
This commit is contained in:
+5
-2
@@ -20,11 +20,14 @@ typedef struct json_object {
|
||||
struct json_pull {
|
||||
json_object *container;
|
||||
char *error;
|
||||
FILE *f;
|
||||
|
||||
int (*read)(struct json_pull *);
|
||||
int (*peek)(struct json_pull *);
|
||||
void *source;
|
||||
};
|
||||
typedef struct json_pull json_pull;
|
||||
|
||||
json_pull *json_begin(FILE *f);
|
||||
json_pull *json_begin_file(FILE *f);
|
||||
json_object *json_parse(json_pull *j);
|
||||
|
||||
json_object *json_hash_get(json_object *o, char *s);
|
||||
|
||||
Reference in New Issue
Block a user