diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-27 04:11:50 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-27 04:11:50 +0000 |
commit | da5ae7e4a32aa92b7fcf0a3ea38d47e56fc5711c (patch) | |
tree | 182febf44ca0950b430df1704ee9d595e17bc0a8 /libgpsd_core.c | |
parent | 04c85e2421bf3b991ef248a000d305f9446c4ace (diff) | |
download | gpsd-da5ae7e4a32aa92b7fcf0a3ea38d47e56fc5711c.tar.gz |
Change the configurator method to take a packet sequence number argument...
...the same way probe_subtype does, and for the same reason.
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index ac754a68..3097254e 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -33,7 +33,7 @@ int gpsd_switch_driver(struct gps_device_t *session, char* typename) gpsd_report(LOG_PROG, "Reconfiguring for %s...\n", session->device_type->typename); if (session->enable_reconfigure && session->device_type->configurator != NULL) - session->device_type->configurator(session); + session->device_type->configurator(session, 0); #endif /* ALLOW_RECONFIGURE */ return 0; } @@ -50,7 +50,7 @@ int gpsd_switch_driver(struct gps_device_t *session, char* typename) if (session->enable_reconfigure && session->device_type->configurator != NULL) { gpsd_report(LOG_PROG, "configuring for %s...\n", session->device_type->typename); - session->device_type->configurator(session); + session->device_type->configurator(session, 0); } #endif /* ALLOW_RECONFIGURE */ return 1; @@ -111,7 +111,7 @@ void gpsd_deactivate(struct gps_device_t *session) session->enable_reconfigure = false; } #endif /* ALLOW_RECONFIGURE */ - if (session->back_to_nmea && session->device_type->mode_switcher != 0) + if (session->back_to_nmea && session->device_type->mode_switcher != NULL) session->device_type->mode_switcher(session, 0); if (session->device_type!=NULL && session->device_type->wrapup!=NULL) session->device_type->wrapup(session); @@ -267,7 +267,7 @@ int gpsd_activate(struct gps_device_t *session, bool reconfigurable) if (reconfigurable) { session->enable_reconfigure = true; if (session->device_type->configurator != NULL) - session->device_type->configurator(session); + session->device_type->configurator(session, session->packet_counter); } #endif /* ALLOW_RECONFIGURE */ } |