summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gps_json.h b/gps_json.h
index 34e682db..a4b5d152 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -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 */