diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 04:21:56 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 04:21:56 -0400 |
commit | 88eb3cee8d9669d2287a73ca28b4cfdf1829c181 (patch) | |
tree | bef297f5c2524d78aec0c63f75a5c78f65ff32ee /libgps.h | |
parent | af7ae8196bdb7fa2f4319b10c316f60323a43b8d (diff) | |
download | gpsd-88eb3cee8d9669d2287a73ca28b4cfdf1829c181.tar.gz |
Runtime dispatch to methods is working in the client library.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 *); |