summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-11-21 08:30:20 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-11-21 08:30:20 +0000
commit0cf1f2fc0250b4fdf20dfc94a933af62c7cbbaf3 (patch)
treefd7443089fb67f8f867ff081fb6938ff960c9a8e /gpsd.h
parent5e37b2d81a6c3625b847157e888471ea61b9d06c (diff)
downloadgpsd-0cf1f2fc0250b4fdf20dfc94a933af62c7cbbaf3.tar.gz
Make back_to_nmea a public flag (rather than a per-driver private flag)...
...that causes the driver's mode switcher to be invoked just after the revert method. This makes the revert methods for SiRF and EverMore unnecessary.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/gpsd.h b/gpsd.h
index 573f783b..b7eb06b4 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -165,6 +165,7 @@ struct gps_device_t {
# endif /* PPS_ENABLE */
#endif /* NTPSHM_ENABLE */
double mag_var; /* Magnetic variation in degrees */
+ bool back_to_nmea; /* back to NMEA on revert? */
/*
* The rest of this structure is driver-specific private storage.
* Because the Garmin driver uses a long buffer, you can have
@@ -193,9 +194,6 @@ struct gps_device_t {
#define TIME_SEEN_GPS_2 0x02 /* Seen GPS time variant 2? */
#define TIME_SEEN_UTC_1 0x04 /* Seen UTC time variant 1? */
#define TIME_SEEN_UTC_2 0x08 /* Seen UTC time variant 2? */
-#ifdef ALLOW_RECONFIGURE
- bool back_to_nmea; /* back to NMEA on revert? */
-#endif /* ALLOW_RECONFIGURE */
} sirf;
#endif /* SIRF_ENABLE */
#ifdef TSIP_ENABLE
@@ -209,13 +207,6 @@ struct gps_device_t {
unsigned int parity, stopbits; /* saved RS232 link parameters */
} tsip;
#endif /* TSIP_ENABLE */
-#ifdef EVERMORE_ENABLE
- struct {
-#ifdef ALLOW_RECONFIGURE
- bool back_to_nmea; /* back to NMEA on revert? */
-#endif /* ALLOW_RECONFIGURE */
- } evermore;
-#endif /* EVERMORE_ENABLE */
#ifdef GARMIN_ENABLE /* private housekeeping stuff for the Garmin driver */
struct {
unsigned char Buffer[4096+12]; /* Garmin packet buffer */