diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-25 07:35:41 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-25 07:35:41 -0400 |
commit | 2f7a78002f012c7ed322767cf3e413b961a640b4 (patch) | |
tree | 50d95ee10f3a8e972489e5502a75dd970483a15f /gpsd.h-tail | |
parent | 3517cd53afabac201b3563f58a33dc15fd35bfdd (diff) | |
download | gpsd-2f7a78002f012c7ed322767cf3e413b961a640b4.tar.gz |
Split firmwqre version query out of the init method.
This enables us to force readonly off while it's being called.
The practical effect is that gpsmon can get a firmware version (if this
is possible) without reconfiguring the device.
Diffstat (limited to 'gpsd.h-tail')
-rw-r--r-- | gpsd.h-tail | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail index 34bfe71e..f28152b8 100644 --- a/gpsd.h-tail +++ b/gpsd.h-tail @@ -345,6 +345,7 @@ struct gps_type_t { /*@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, const char *rtcmbuf, size_t rtcmbytes); + /*@null@*/void (*init_query)(struct gps_device_t *session); /*@null@*/void (*event_hook)(struct gps_device_t *session, event_t event); #ifdef RECONFIGURE_ENABLE /*@null@*/bool (*speed_switcher)(struct gps_device_t *session, |