diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2015-03-31 18:16:09 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2015-03-31 18:19:06 -0400 |
commit | 8ef6445fa44c498a4f99abf533aaa3c7c59cf57a (patch) | |
tree | 884f8334e77e17f3f8aa9cf4646ec15af7ec6b1a /ppsthread.h | |
parent | 89ba451e0a76682e5a1b499f894d1b21b6e38198 (diff) | |
download | gpsd-8ef6445fa44c498a4f99abf533aaa3c7c59cf57a.tar.gz |
Information hiding. Move kernelpps_handle out of thread-context structure...
...stash it in an inner context.
PPS observed live on GR601-W.
Diffstat (limited to 'ppsthread.h')
-rw-r--r-- | ppsthread.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ppsthread.h b/ppsthread.h index 6fc4969d..a115163a 100644 --- a/ppsthread.h +++ b/ppsthread.h @@ -16,20 +16,6 @@ struct timedelta_t { }; #endif /* TIMEDELTA_DEFINED */ -/* use RFC 2782 PPS API */ -/* this needs linux >= 2.6.34 and - * CONFIG_PPS=y - * CONFIG_PPS_DEBUG=y [optional to kernel log pulses] - * CONFIG_PPS_CLIENT_LDISC=y - */ -#if defined(HAVE_SYS_TIMEPPS_H) -// include unistd.h here as it is missing on older pps-tools releases. -// 'close' is not defined otherwise. -#include <unistd.h> -#include <sys/time.h> -#include <sys/timepps.h> -#endif - /* difference between timespecs in nanoseconds */ /* int is too small, avoid floats */ /* WARNING! this will overflow if x and y differ by more than a few seconds */ @@ -47,9 +33,6 @@ struct pps_thread_t { int errlevel, const char *fmt, ...); void (*wrap_hook)(volatile struct pps_thread_t *); struct timedelta_t fixin; /* real & clock time when in-band fix received */ -#if defined(HAVE_SYS_TIMEPPS_H) - pps_handle_t kernelpps_handle; -#endif /* defined(HAVE_SYS_TIMEPPS_H) */ struct timedelta_t ppsout_last; int ppsout_count; }; |