From f51297d2dc03e5a00f1ab7649e1bc06f67c798e6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 1 Aug 2009 16:56:40 +0000 Subject: JSON parsing and dumping for device configuration. --- gps_json.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gps_json.h') diff --git a/gps_json.h b/gps_json.h index 91748bcc..72f911e6 100644 --- a/gps_json.h +++ b/gps_json.h @@ -5,6 +5,13 @@ #define GPS_JSON_COMMAND_MAX 80 #define GPS_JSON_RESPONSE_MAX 1024 +struct devconfig_t { + char device[PATH_MAX]; + int native; + int bps; + char serialmode[4]; +}; + void json_tpv_dump(struct gps_data_t *, struct gps_fix_t *, char *, size_t); void json_sky_dump(struct gps_data_t *, char *, size_t); int json_tpv_read(const char *, struct gps_data_t *); @@ -13,6 +20,8 @@ int json_watch_read(int *, char *); void json_watch_dump(int, char *, size_t); int json_configchan_read(struct chanconfig_t *, char **, char *); void json_configchan_dump(struct chanconfig_t *, char *, char *, size_t); +int json_configdev_read(struct devconfig_t *, char *); +void json_configdev_dump(struct devconfig_t *, char *, char *, size_t); #define NWATCHTYPES 5 -- cgit v1.2.1