summaryrefslogtreecommitdiff
path: root/gpsdclient.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-03-02 23:24:03 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-03-02 23:24:03 +0000
commit68e56574cd2e8e26aa1ad35db05b2ccab085388f (patch)
treebaaddd1a371e0165d50c32248e8e96c973eb1947 /gpsdclient.h
parent9713aad879931bade1a3158b8414777450674e08 (diff)
downloadgpsd-68e56574cd2e8e26aa1ad35db05b2ccab085388f.tar.gz
Introduce gpsdclient.h header, not shipped.
So we can move stuff used internally by GPSD clients out of gps.h.
Diffstat (limited to 'gpsdclient.h')
-rw-r--r--gpsdclient.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gpsdclient.h b/gpsdclient.h
new file mode 100644
index 00000000..ccd61a2a
--- /dev/null
+++ b/gpsdclient.h
@@ -0,0 +1,21 @@
+/* gpsdclient.h -- common functions for GPSD clients */
+
+struct fixsource_t
+/* describe a data source */
+{
+ char *spec; /* pointer to actual storage */
+ char *server;
+ char *port;
+ char *device;
+};
+
+enum unit {unspecified, imperial, nautical, metric};
+enum unit gpsd_units(void);
+enum deg_str_type { deg_dd, deg_ddmm, deg_ddmmss };
+
+extern /*@observer@*/ char *deg_to_str( enum deg_str_type type, double f);
+
+extern void gpsd_source_spec(/*@null@*/const char *fromstring,
+ /*@out@*/struct fixsource_t *source);
+
+/* gpsdclient.h ends here */