Refactor moar: move parts of main.c into libjq
This adds utility functions for reading and parsing files that should be easy to use by other apps, together with jq_start()/jq_next().
This commit is contained in:
1 parent
91fb3df495
commit
0d414471bb
4 files changed
+207
-165
No files matched your search
@@ -184,12 +184,12 @@ void jv_nomem_handler(jv_nomem_handler_f, void *);
|
||||
|
||||
jv jv_load_file(const char *, int);
|
||||
|
||||
struct jv_parser;
|
||||
struct jv_parser* jv_parser_new(int);
|
||||
void jv_parser_set_buf(struct jv_parser*, const char*, int, int);
|
||||
int jv_parser_remaining(struct jv_parser*);
|
||||
jv jv_parser_next(struct jv_parser*);
|
||||
void jv_parser_free(struct jv_parser*);
|
||||
typedef struct jv_parser jv_parser;
|
||||
jv_parser* jv_parser_new(int);
|
||||
void jv_parser_set_buf(jv_parser*, const char*, int, int);
|
||||
int jv_parser_remaining(jv_parser*);
|
||||
jv jv_parser_next(jv_parser*);
|
||||
void jv_parser_free(jv_parser*);
|
||||
|
||||
jv jv_get(jv, jv);
|
||||
jv jv_set(jv, jv, jv);
|
||||
|
||||
Reference in new issue
Block a user