diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-18 22:02:59 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-08-18 22:02:59 +0000 |
commit | 50acf7e142a3521cb914a91d51a7745ec938a064 (patch) | |
tree | 6cb402c847c20dbf032f0c0133dcba7e999f6ec4 /gps.h | |
parent | 92b9b2e8e4555f86934f403df1463c189a8270d5 (diff) | |
download | gpsd-50acf7e142a3521cb914a91d51a7745ec938a064.tar.gz |
Use OpenBSD's nmea(4) line discipline.
OpenBSD has the nmea(4) line discipline which, when activated, feeds the
incoming bytes through an in-kernel nmea parser to extract timing info
which is then exported via the sensors framework for consumption by ntpd,
among others... Not so useful if your GPS can't do PPS.
Patch from Jason Wright in private email.
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -290,6 +290,9 @@ struct gps_data_t { /* these members are private */ int gps_fd; /* socket or file descriptor to GPS */ +#ifdef NMEADISC + int ldisc; /* current line discipline */ +#endif void (*raw_hook)(struct gps_data_t *, char *, size_t len, int level);/* Raw-mode hook for GPS data. */ void (*thread_hook)(struct gps_data_t *, char *, size_t len, int level);/* Thread-callback hook for GPS data. */ }; |