summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-19 05:42:24 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-19 05:42:24 +0000
commit98e5d53668d9b9c11dab4e7c703d2d2166398cfe (patch)
tree2a3bba33cdb4d61a62cc7b781aab1ffec4bd5986 /gps.h
parent6098283d8394544b97c70f473a9743d0c4527d2f (diff)
downloadgpsd-98e5d53668d9b9c11dab4e7c703d2d2166398cfe.tar.gz
Change enumerated array JSON type to yield a bitmask rather than an array.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/gps.h b/gps.h
index 9453cb83..870f1d3e 100644
--- a/gps.h
+++ b/gps.h
@@ -778,12 +778,11 @@ struct ais_t
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
+ int datatypes;
+#define DEV_GPS 0x01
+#define DEV_RTCM2 0x02
+#define DEV_RTCM3 0x04
+#define DEV_AIS 0x08
char driver[64];
char subtype[64];
double activated;