summaryrefslogtreecommitdiff
path: root/gpsdclient.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-29 17:08:47 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-29 17:08:47 -0400
commita288b35ae72d57f01ec3f0d829f8087b5405a390 (patch)
treecb1dd3185392d532b56d8e35b31fcb6007668943 /gpsdclient.h
parentfde39f7182173446ba1f6098588dfa21c17e3e30 (diff)
downloadgpsd-a288b35ae72d57f01ec3f0d829f8087b5405a390.tar.gz
Refactor to create shared code useful for clockwatcher.
Diffstat (limited to 'gpsdclient.h')
-rw-r--r--gpsdclient.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gpsdclient.h b/gpsdclient.h
index acc4017e..20b9abc2 100644
--- a/gpsdclient.h
+++ b/gpsdclient.h
@@ -8,6 +8,15 @@
#ifndef _GPSD_GPSDCLIENT_H_
#define _GPSD_GPSDCLIENT_H_
+
+struct exportmethod_t
+/* describe an export method */
+{
+ const char *name;
+ /*@null@*/const char *magic;
+ const char *description;
+};
+
struct fixsource_t
/* describe a data source */
{
@@ -17,6 +26,9 @@ struct fixsource_t
/*@null@*/char *device;
};
+/*null observer*/struct exportmethod_t *export_lookup(const char *);
+/*null observer*/struct exportmethod_t *export_default(void);
+void export_list(FILE *);
enum unit {unspecified, imperial, nautical, metric};
enum unit gpsd_units(void);
enum deg_str_type { deg_dd, deg_ddmm, deg_ddmmss };