diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-02-23 14:40:31 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-02-23 14:40:31 -0500 |
commit | da96a95a9a85299b228dacbe345c5499736d36dc (patch) | |
tree | a2e421462548c91edc833e095d53725f8840195e /gps.h | |
parent | 0747ffe258042efe53c10964c579af62c7b8ae30 (diff) | |
download | gpsd-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 **); |