summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-08-18 22:02:59 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-08-18 22:02:59 +0000
commit50acf7e142a3521cb914a91d51a7745ec938a064 (patch)
tree6cb402c847c20dbf032f0c0133dcba7e999f6ec4 /gps.h
parent92b9b2e8e4555f86934f403df1463c189a8270d5 (diff)
downloadgpsd-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index 934222a4..c61051f5 100644
--- a/gps.h
+++ b/gps.h
@@ -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. */
};