diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 05:42:24 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-19 05:42:24 +0000 |
commit | 98e5d53668d9b9c11dab4e7c703d2d2166398cfe (patch) | |
tree | 2a3bba33cdb4d61a62cc7b781aab1ffec4bd5986 /gps.h | |
parent | 6098283d8394544b97c70f473a9743d0c4527d2f (diff) | |
download | gpsd-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.h | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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; |