diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-11-20 14:28:38 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-11-20 14:28:38 +0000 |
commit | 6b6a5d59bb6a2189404fb8b525d20b191a0e0977 (patch) | |
tree | 46a72ba3f80d4821da04de04806ce8618a589273 /json.h | |
parent | 560c63feaf6bc550da65e370a8b58214556a7c0a (diff) | |
download | gpsd-6b6a5d59bb6a2189404fb8b525d20b191a0e0977.tar.gz |
Client library debugging can now nbe enabled at runtime.
That is, if the CLIENTDEBUG_ENABLE feature switch is on. All
regression tests pass.
Diffstat (limited to 'json.h')
-rw-r--r-- | json.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -66,6 +66,8 @@ int json_read_array(const char *, const struct json_array_t *, /*@null@*/const char **); const /*@observer@*/char *json_error_string(int); +void json_enable_debug(int, FILE *); + #define JSON_ERR_OBSTART 1 /* non-WS when expecting object start */ #define JSON_ERR_ATTRSTART 2 /* non-WS when expecting attrib start */ #define JSON_ERR_BADATTR 3 /* unknown attribute name */ |