summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-07-13 13:25:39 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-07-13 13:25:39 +0000
commit9a3e95a000c9682b3a8335db53bbc9a8a651ac0d (patch)
tree9a10fca2c0fe7616e4300fe820e3cc9d1eb947cd /json.h
parentd4e71ffd0fadd2f8020754c0c632ad46688f6afe (diff)
downloadgpsd-9a3e95a000c9682b3a8335db53bbc9a8a651ac0d.tar.gz
Add entry point for dumping JSON parse error condition text messages.
Diffstat (limited to 'json.h')
-rw-r--r--json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/json.h b/json.h
index a9d87bb2..1c829859 100644
--- a/json.h
+++ b/json.h
@@ -34,6 +34,7 @@ struct json_attr_t {
#define JSON_VAL_MAX 63 /* max charss in JSON value part */
int json_read_object(const char *, const struct json_attr_t *, int, const char **end);
+const char *json_error_string(int);
#define JSON_ERR_OBSTART -1 /* non-WS when expecting object start */
#define JSON_ERR_ATTRSTART -2 /* non-WS when expecting attrib start */