summaryrefslogtreecommitdiff
path: root/timespec_str.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-03-08 10:42:04 -0400
committerEric S. Raymond <esr@thyrsus.com>2015-03-08 10:42:04 -0400
commit0deeeb2b1fb55d78c4abedbf88c8f46d9b300ed6 (patch)
tree153b73860dff8d769cbbb3006cdb64d6014e23f0 /timespec_str.h
parent93f417401f02b85e936d93cf5f7ba54d75de49de (diff)
downloadgpsd-0deeeb2b1fb55d78c4abedbf88c8f46d9b300ed6.tar.gz
Break timespec_str out of gpsutils.c.
It's not used on the client side, and it's needed separately for ntplib. All regression tesrs pass. PPS is live.
Diffstat (limited to 'timespec_str.h')
-rw-r--r--timespec_str.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/timespec_str.h b/timespec_str.h
new file mode 100644
index 00000000..b644c7d0
--- /dev/null
+++ b/timespec_str.h
@@ -0,0 +1,15 @@
+/*
+ * This file is Copyright (c) 2015 by the GPSD project
+ * BSD terms apply: see the file COPYING in the distribution root for details.
+ */
+
+#ifndef GPSD_TIMESPEC_H
+#define GPSD_TIMESPEC_H
+
+#define TIMESPEC_LEN 22 /* required length of a timespec buffer */
+
+extern void timespec_str(const struct timespec *, /*@out@*/char *, int);
+
+#endif /* GPSD_TIMESPEC_H */
+
+/* end */