summaryrefslogtreecommitdiff
path: root/gpsd.h-tail
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 /gpsd.h-tail
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 'gpsd.h-tail')
-rw-r--r--gpsd.h-tail5
1 files changed, 4 insertions, 1 deletions
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 5090e22e..1e7ccd89 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -60,9 +60,10 @@ typedef unsigned int speed_t;
* value of a synthesized additional attribute with "_text" appended.
* (Thus, the 'scaled' flag no longer affects display of these fields.)
* PPS drift message ships nsec rather than msec.
+ * 3.10 The obsolete tag field has been dropped from JSON.
*/
#define GPSD_PROTO_MAJOR_VERSION 3 /* bump on incompatible changes */
-#define GPSD_PROTO_MINOR_VERSION 9 /* bump on compatible changes */
+#define GPSD_PROTO_MINOR_VERSION 10 /* bump on compatible changes */
#define JSON_DATE_MAX 24 /* ISO8601 timestamp with 2 decimal places */
@@ -100,6 +101,7 @@ typedef unsigned int speed_t;
*/
#define NMEA_MAX 91 /* max length of NMEA sentence */
#define NMEA_BIG_BUF (2*NMEA_MAX+1) /* longer than longest NMEA sentence */
+#define MAXTAGLEN 8 /* max length of sentence tag name */
/* a few bits of ISGPS magic */
enum isgpsstat_t {
@@ -449,6 +451,7 @@ struct gps_device_t {
sourcetype_t sourcetype;
servicetype_t servicetype;
int mode;
+ char tag[MAXTAGLEN+1]; /* tag of last sentence processed */
#ifndef _WIN32
struct termios ttyset, ttyset_old;
#endif