diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-07-30 16:39:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-07-30 16:39:49 +0000 |
commit | 081915ec459e1f471a031e1b742cf3c2a49af588 (patch) | |
tree | 273bbab680e732ae7dfd335e5fd346995dd053d9 /gps_json.h | |
parent | 6c8a61554271e33c5d9a6123c2525af28d731b1e (diff) | |
download | gpsd-081915ec459e1f471a031e1b742cf3c2a49af588.tar.gz |
Refactor code for parsing WATCH responses...
...so it can be available to client programs as well.
Diffstat (limited to 'gps_json.h')
-rw-r--r-- | gps_json.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -6,5 +6,16 @@ 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 *); int json_sky_read(const char *, struct gps_data_t *); +int json_watch_read(int *, char *); +void json_watch_dump(int, char *, size_t); + +#define NWATCHTYPES 5 + +struct watchmap_t { + int mask; + gnss_type class; + char *string; +}; +extern const struct watchmap_t watchmap[NWATCHTYPES]; /* gps_json.h ends here */ |