summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-11-20 14:28:38 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-11-20 14:28:38 +0000
commit6b6a5d59bb6a2189404fb8b525d20b191a0e0977 (patch)
tree46a72ba3f80d4821da04de04806ce8618a589273 /json.h
parent560c63feaf6bc550da65e370a8b58214556a7c0a (diff)
downloadgpsd-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/json.h b/json.h
index 98947924..a65cdf2c 100644
--- a/json.h
+++ b/json.h
@@ -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 */