diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-14 07:28:44 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-14 07:28:44 +0000 |
commit | d3eff5b06eccf4ef3e52fcaf8b18fda31870b0a4 (patch) | |
tree | ffcc5e69b7b985c7ccc8b80fb66bf930a9dbece2 /gpsd.h | |
parent | 8ceb9ed4cfebc51d2fdd7617f4fab313a2fde9a8 (diff) | |
download | gpsd-d3eff5b06eccf4ef3e52fcaf8b18fda31870b0a4.tar.gz |
Split wrapup method into revert and wrapup. The revert method is onlt called
if configuration is enabled.
Diffstat (limited to 'gpsd.h')
-rw-r--r-- | gpsd.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -80,7 +80,9 @@ struct gps_type_t { /*@null@*/bool (*probe_detect)(struct gps_device_t *session); /*@null@*/void (*probe_wakeup)(struct gps_device_t *session); /*@null@*/void (*probe_subtype)(struct gps_device_t *session, unsigned int seq); +#ifdef ALLOW_RECONFIGURE /*@null@*/void (*configurator)(struct gps_device_t *session); +#endif /* ALLOW_RECONFIGURE */ /*@null@*/ssize_t (*get_packet)(struct gps_device_t *session); /*@null@*/gps_mask_t (*parse_packet)(struct gps_device_t *session); /*@null@*/ssize_t (*rtcm_writer)(struct gps_device_t *session, char *rtcmbuf, size_t rtcmbytes); @@ -88,6 +90,9 @@ struct gps_type_t { /*@null@*/void (*mode_switcher)(struct gps_device_t *session, int mode); /*@null@*/bool (*rate_switcher)(struct gps_device_t *session, double rate); int cycle_chars; +#ifdef ALLOW_RECONFIGURE + /*@null@*/void (*revert)(struct gps_device_t *session); +#endif /* ALLOW_RECONFIGURE */ /*@null@*/void (*wrapup)(struct gps_device_t *session); double cycle; }; @@ -189,7 +194,7 @@ struct gps_device_t { #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 exit? */ + bool back_to_nmea; /* back to NMEA on revert? */ #endif /* ALLOW_RECONFIGURE */ } sirf; #endif /* SIRF_ENABLE */ @@ -207,7 +212,7 @@ struct gps_device_t { #ifdef EVERMORE_ENABLE struct { #ifdef ALLOW_RECONFIGURE - bool back_to_nmea; /* back to NMEA on exit? */ + bool back_to_nmea; /* back to NMEA on revert? */ #endif /* ALLOW_RECONFIGURE */ } evermore; #endif /* EVERMORE_ENABLE */ |