summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-24 10:17:59 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-24 10:17:59 -0400
commit0658c2fb8d15fbe78fdd4edd1be184559ab53c32 (patch)
treeb61f6cc53b9aaf5d0575f93966b18a799861460b /gps.h
parente18934bf45246408915652f7b6a5e5ce66cccd8a (diff)
downloadgpsd-0658c2fb8d15fbe78fdd4edd1be184559ab53c32.tar.gz
Drop the obsolete tag field from JSON output. Bump the minor protocol number.
Required a regression-test rebuild, of course. The field is still set by the TSIP and SiRF drivers; the SiRF driver actually uses it. It may be possible to eliminate the TSIP uses, but so far attempting this has produced odd regression-test failures.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gps.h b/gps.h
index cbbf74cd..bf366874 100644
--- a/gps.h
+++ b/gps.h
@@ -40,16 +40,16 @@ extern "C" {
* model and serial members in part B of AIS type 24, conforming
* with ITU-R 1371-4. New timedrift structure (Nov 2013, release 3.10).
* 5.2 - AIS type 6 and 8 get 'structured' flag; GPS_PATH_MAX
- * shortened because devices has moved out of union.
+ * shortened because devices has moved out of union. Sentence
+ * tag fields dropped from emitted JSON.
*/
#define GPSD_API_MAJOR_VERSION 5 /* bump on incompatible changes */
#define GPSD_API_MINOR_VERSION 2 /* bump on compatible changes */
-#define MAXTAGLEN 8 /* maximum length of sentence tag name */
#define MAXCHANNELS 72 /* must be > 12 GPS + 12 GLONASS + 2 WAAS */
#define GPS_PRNMAX 32 /* above this number are SBAS satellites */
#define MAXUSERDEVS 4 /* max devices per user */
-#define GPS_PATH_MAX 32 /* for names like /dev/serial/by-id/... */
+#define GPS_PATH_MAX 32 /* for names like /dev/serial/by-id/... */
/*
* The structure describing an uncertainty volume in kinematic space.
@@ -2012,9 +2012,6 @@ struct gps_data_t {
struct devconfig_t list[MAXUSERDEVS];
} devices;
- /* should be moved to privdata someday */
- char tag[MAXTAGLEN+1]; /* tag of last sentence processed */
-
/* pack things never reported together to reduce structure size */
#define UNION_SET (RTCM2_SET|RTCM3_SET|SUBFRAME_SET|AIS_SET|ATTITUDE_SET|GST_SET|VERSION_SET|LOGMESSAGE_SET|ERROR_SET|TIMEDRIFT_SET)
union {