diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-11-20 23:37:02 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-11-20 23:37:02 +0000 |
commit | 606b3fd68d08e3a89780710253e60bb373efe5e2 (patch) | |
tree | f6cd290d9c1d643e5d8f55d12e746faabf05e5bd /gpsd.h | |
parent | 18b083720c9e2d6fa4c4cc2fc54699f19abb116f (diff) | |
download | gpsd-606b3fd68d08e3a89780710253e60bb373efe5e2.tar.gz |
Pull the "configurable" bit out of the context structure & make it per-driver...
...set by an argument to gpsd_active(). Changes the libgpsd(3) API,
but not the client-side one.
Diffstat (limited to 'gpsd.h')
-rw-r--r-- | gpsd.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -43,9 +43,6 @@ enum isgpsstat_t { #define RTCM_MAX (RTCM_WORDS_MAX * sizeof(isgps30bits_t)) struct gps_context_t { -#ifdef ALLOW_RECONFIGURE - bool enable_reconfigure; /* OK to hack GPS settings? */ -#endif /* ALLOW_RECONFIGURE */ int valid; /* member validity flags */ #define LEAP_SECOND_VALID 0x01 /* we have or don't need correction */ /* DGPSIP status */ @@ -129,6 +126,9 @@ struct gps_device_t { struct gps_data_t gpsdata; /*@relnull@*/struct gps_type_t *device_type; struct gps_context_t *context; +#ifdef ALLOW_RECONFIGURE + bool enable_reconfigure; /* OK to hack GPS settings? */ +#endif /* ALLOW_RECONFIGURE */ double rtcmtime; /* timestamp of last RTCM104 correction to GPS */ struct termios ttyset, ttyset_old; /* packet-getter internals */ @@ -358,7 +358,7 @@ bool sirf_write(int fd, unsigned char *msg); /* application interface */ extern void gpsd_init(struct gps_device_t *, struct gps_context_t *, char *); -extern int gpsd_activate(struct gps_device_t *); +extern int gpsd_activate(struct gps_device_t *, bool); extern void gpsd_deactivate(struct gps_device_t *); extern gps_mask_t gpsd_poll(struct gps_device_t *); extern void gpsd_wrap(struct gps_device_t *); |