summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-30 20:32:12 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-30 20:32:12 +0000
commit38f38fed757c6999a13dd9b53d37f2076d88742d (patch)
tree13d5cdf55afeb8f2337c5ec2e96aa38307f91fbd /gps_json.h
parent1b6c01a1999d0268dd395e0f080eefde1b9f57fa (diff)
downloadgpsd-38f38fed757c6999a13dd9b53d37f2076d88742d.tar.gz
Make string fields that might contain double quotes safe for JSON output.
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gps_json.h b/gps_json.h
index d0f9324f..1888101d 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -5,6 +5,7 @@
#define GPS_JSON_COMMAND_MAX 80
#define GPS_JSON_RESPONSE_MAX 1024
+char *json_stringify(char *);
int json_watch_read(const char *, struct policy_t *, const char **);
int json_device_read(const char *, struct devconfig_t *, const char **);
void json_version_dump(char *reply, size_t replylen);