diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 03:36:14 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-28 03:36:14 -0400 |
commit | 45b6da360af526817cba737bc3b13ad6e24ee26b (patch) | |
tree | 5f3444b98ba8cf73008fdd3ca3a37c138cffd463 /libgps.h | |
parent | 702896ec598a531fa9263774912d7fe922037180 (diff) | |
download | gpsd-45b6da360af526817cba737bc3b13ad6e24ee26b.tar.gz |
First step in runtime export dispatch for the client library.
Diffstat (limited to 'libgps.h')
-rw-r--r-- | libgps.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -6,6 +6,13 @@ #ifndef _GPSD_LIBGPS_H_ #define _GPSD_LIBGPS_H_ +/* + * first member of each kind of privdata structure must be named + * 'export' and must be of this time. It's how we do runtime + * dispatch to the different transports. + */ +enum export_t {sockets, shm, dbus}; + extern int gps_sock_open(/*@null@*/const char *, /*@null@*/const char *, /*@out@*/struct gps_data_t *); extern int gps_sock_close(struct gps_data_t *); |