summaryrefslogtreecommitdiff
path: root/libgps.h
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-09-28 04:21:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-09-28 04:21:56 -0400
commit88eb3cee8d9669d2287a73ca28b4cfdf1829c181 (patch)
treebef297f5c2524d78aec0c63f75a5c78f65ff32ee /libgps.h
parentaf7ae8196bdb7fa2f4319b10c316f60323a43b8d (diff)
downloadgpsd-88eb3cee8d9669d2287a73ca28b4cfdf1829c181.tar.gz
Runtime dispatch to methods is working in the client library.
Diffstat (limited to 'libgps.h')
-rw-r--r--libgps.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libgps.h b/libgps.h
index c059b9c8..900e25e2 100644
--- a/libgps.h
+++ b/libgps.h
@@ -11,7 +11,18 @@
* 'export_type' and must be of this time. It's how we do runtime
* dispatch to the different transports.
*/
-enum export_t {sockets, shm, dbus};
+enum export_t {
+#ifdef SOCKET_EXPORT_ENABLE
+ sockets,
+#endif /* SOCKET_EXPORT_ENABLE */
+#ifdef SHM_EXPORT_ENABLE
+ shm,
+#endif /* SHM_EXPORT_ENABLE */
+#ifdef DBUS_EXPORT_ENABLE
+ dbus,
+#endif /* DBUS_EXPORT_ENABLE */
+};
+
extern int gps_sock_open(/*@null@*/const char *, /*@null@*/const char *,
/*@out@*/struct gps_data_t *);