summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-23 14:40:31 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-23 14:40:31 -0500
commitda96a95a9a85299b228dacbe345c5499736d36dc (patch)
treea2e421462548c91edc833e095d53725f8840195e /gps.h
parent0747ffe258042efe53c10964c579af62c7b8ae30 (diff)
downloadgpsd-da96a95a9a85299b228dacbe345c5499736d36dc.tar.gz
TOFF JSON message implemented and documented.
All regression tests pass. PPS observed live with gosmon. gpsmon presently ignores this message, but shout display its contents near PPS.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 3e49b368..c4a98ec8 100644
--- a/gps.h
+++ b/gps.h
@@ -2019,6 +2019,7 @@ struct gps_data_t {
/* "artificial" structures for various protocol responses */
struct version_t version;
char error[256];
+ struct timedelta_t toff;
struct timedelta_t pps;
};
@@ -2047,6 +2048,8 @@ extern int gps_mainloop(struct gps_data_t *, int,
extern const char /*@null observer@*/ *gps_data(const struct gps_data_t *);
extern const char /*@observer@*/ *gps_errstr(const int);
+int json_toff_read(const char *buf, struct gps_data_t *,
+ /*@null@*/ const char **);
int json_pps_read(const char *buf, struct gps_data_t *,
/*@null@*/ const char **);