diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-01-19 01:54:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-01-19 01:54:04 +0000 |
commit | 97a472a1c63c728a7d72aba5c4564f30587a448e (patch) | |
tree | 160b72e971bebc77a8da4bb73ab2a8a4af68c4b5 /gpsd.h-tail | |
parent | 84e7f15846f0630b6ec08917efb0347744e3f7a7 (diff) | |
download | gpsd-97a472a1c63c728a7d72aba5c4564f30587a448e.tar.gz |
Magic-number elimination.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 909bf97d..135a33bd 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -194,6 +194,8 @@ struct gps_type_t { /*@null@*/ssize_t (*rtcm_writer)(struct gps_device_t *session, char *rtcmbuf, size_t rtcmbytes); /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, speed_t speed); /*@null@*/void (*mode_switcher)(struct gps_device_t *session, int mode); +#define MODE_NMEA 0 +#define MODE_BINARY 1 /*@null@*/bool (*rate_switcher)(struct gps_device_t *session, double rate); int cycle_chars; #ifdef ALLOW_RECONFIGURE |