summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-29 16:28:48 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-29 16:28:48 +0000
commitcba6b916920d78ef3e002061f1229d6c4debecac (patch)
tree68c377b24671f916d36d78e83d7738f7d633c517 /gpsd.h
parent1391a44aa66d71f74fa2513c16c8ae61e6a4e2ee (diff)
downloadgpsd-cba6b916920d78ef3e002061f1229d6c4debecac.tar.gz
Clean up DGPSIP a bit more, some variables don't need to be per-session.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.h b/gpsd.h
index b1511b34..15e7179a 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -32,12 +32,14 @@
struct gps_context_t {
int valid;
#define LEAP_SECOND_VALID 0x01 /* we have or don't need correction */
- int leap_seconds;
- int century; /* for NMEA-only devices without ZDA */
+ bool sentdgps; /* have we sent a DGPSIP R report? */
+ int fixcnt; /* count of good fixes seen */
int dsock; /* socket to DGPS server */
ssize_t rtcmbytes; /* byte count of last RTCM104 report */
char rtcmbuf[40]; /* last RTCM104 report */
double rtcmtime; /* timestamp of last RTCM104 report */
+ int leap_seconds;
+ int century; /* for NMEA-only devices without ZDA */
#ifdef NTPSHM_ENABLE
/*@reldef@*/struct shmTime *shmTime[NTPSHMSEGS];
bool shmTimeInuse[NTPSHMSEGS];
@@ -86,8 +88,6 @@ struct gps_device_t {
struct gps_data_t gpsdata;
/*@relnull@*/struct gps_type_t *device_type;
double rtcmtime; /* timestamp of last RTCM104 correction to GPS */
- bool sentdgps; /* have we sent a DGPSIP usage report? */
- int fixcnt; /* count of good fixes seen */
struct termios ttyset, ttyset_old;
/* packet-getter internals */
int packet_type;