summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-19 03:14:12 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-19 03:14:12 +0000
commit6098283d8394544b97c70f473a9743d0c4527d2f (patch)
tree2b4415bf7a7749087fe8b6777cd08a1ff9adb59d /gps.h
parent747088bbe5dc34c0902c0bddc492bc4815f4a7c3 (diff)
downloadgpsd-6098283d8394544b97c70f473a9743d0c4527d2f.tar.gz
Library parse code, and unit test, for DEVICE responses.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 4c3a7b13..9453cb83 100644
--- a/gps.h
+++ b/gps.h
@@ -774,9 +774,16 @@ struct ais_t
#define MAXDEVICES_PER_USER 4
#define GPS_PATH_MAX 64 /* dev files usually have short names */
+#define TYPES_PER_DEVICE 4
struct device_t {
char path[GPS_PATH_MAX];
+ int ndatatypes;
+ int datatypes[TYPES_PER_DEVICE];
+#define DEV_GPS 1
+#define DEV_RTCM2 2
+#define DEV_RTCM3 3
+#define DEV_AIS 4
char driver[64];
char subtype[64];
double activated;