summaryrefslogtreecommitdiff
path: root/net_gnss_dispatch.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-24 11:47:19 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-24 11:47:19 -0500
commit25fb04476ddb433a108121f74f356e76e44a6a95 (patch)
tree69577707141e703513387735ebd9da35c55cdad5 /net_gnss_dispatch.c
parent6b3fd224e1e2d2e6f086924a6148712a4a445a2c (diff)
downloadgpsd-25fb04476ddb433a108121f74f356e76e44a6a95.tar.gz
Eliminate the context->netgnss_service member.
This is more global context that really needed to be per-device state. Instead, create a per-devicd servicetype member to carry this information. Practically apeaking, this means gpsd can now watch multiple NTRIP and DGPS sessions without getting confused. All regressuin tests pass.
Diffstat (limited to 'net_gnss_dispatch.c')
-rw-r--r--net_gnss_dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net_gnss_dispatch.c b/net_gnss_dispatch.c
index cc54d1dd..d7953ee0 100644
--- a/net_gnss_dispatch.c
+++ b/net_gnss_dispatch.c
@@ -54,10 +54,10 @@ int netgnss_uri_open(struct gps_device_t *dev, char *netgnss_service)
void netgnss_report(struct gps_device_t *session)
/* may be time to ship a usage report to the DGNSS service */
{
- if (session->context->netgnss_service == netgnss_dgpsip)
+ if (session->servicetype == service_dgpsip)
dgpsip_report(session);
#ifdef NTRIP_ENABLE
- else if (session->context->netgnss_service == netgnss_ntrip)
+ else if (session->servicetype == service_ntrip)
ntrip_report(session);
#endif
}