summaryrefslogtreecommitdiff
path: root/gps_json.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-12 03:14:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-12 03:14:29 +0000
commit239a95f2e2e95ee5c2c054ae82b3a7cb052bed35 (patch)
tree2e2f40d7c78084b3abcfe4eb203b19a79244c307 /gps_json.h
parent1621fcfa04ac6de6f34d139111f7075a171c7829 (diff)
downloadgpsd-239a95f2e2e95ee5c2c054ae82b3a7cb052bed35.tar.gz
Improved handling of defaults in DEVICE command.
Diffstat (limited to 'gps_json.h')
-rw-r--r--gps_json.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gps_json.h b/gps_json.h
index bc65f500..1b78a0ff 100644
--- a/gps_json.h
+++ b/gps_json.h
@@ -22,4 +22,10 @@ int json_ais_read(const char *, char *, size_t, struct ais_t *,
/*@null@*/const char **);
int libgps_json_unpack(const char *, struct gps_data_t *);
+/* these values don't matter in themselves, they just have to be out-of-band */
+#define DEVDEFAULT_BPS 0
+#define DEVDEFAULT_PARITY 'X'
+#define DEVDEFAULT_STOPBITS 3
+#define DEVDEFAULT_NATIVE -1
+
/* gps_json.h ends here */