From b044ef0e2ff6c6a392d42e69c6cb5ce1d0b5bbda Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 7 Mar 2015 06:52:03 -0500 Subject: Revert "Another step in prying ntplib loose. Partly decouple ppsthread.c fom sessions." Previous approch was a bit too frontal. --- ppsthread.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 ppsthread.h (limited to 'ppsthread.h') diff --git a/ppsthread.h b/ppsthread.h deleted file mode 100644 index ae7bd886..00000000 --- a/ppsthread.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is Copyright (c) 2015 by the GPSD project - * BSD terms apply: see the file COPYING in the distribution root for details. - */ - -#ifndef PPSTHREAD_H -#define PPSTHREAD_H - -#include -#include -#include -#include -#include - -#ifndef HAVE_TIMEDELTA - -struct timedelta_t { - struct timespec real; - struct timespec clock; -}; - -#define HAVE_TIMEDELTA -#endif /* HAVE_TIMEDELTA */ - -struct pps_state_t { - volatile struct timedelta_t ppslast; - volatile int ppscount; -}; - -struct pps_fixtime_t { - timestamp_t real; - /* clock must be a timespec as it is in nSec and - * a timestamp_t will lose precision */ - struct timespec clock; /* system clock time when last fix received */ -}; - -#define PPS_THREAD_OK 0 -#define PPS_LOCK_ERR -1 -#define PPS_UNLOCK_ERR -2 - -extern int pps_thread_stash_fixtime(volatile struct pps_fixtime_t *, - timestamp_t, struct timespec); -extern int pps_thread_lastpps(struct pps_state_t *, struct timedelta_t *); - -#endif /* PPSTHREAD_H */ - -/* end */ -- cgit v1.2.1