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_core.c | |
parent | 702896ec598a531fa9263774912d7fe922037180 (diff) | |
download | gpsd-45b6da360af526817cba737bc3b13ad6e24ee26b.tar.gz |
First step in runtime export dispatch for the client library.
Diffstat (limited to 'libgps_core.c')
-rw-r--r-- | libgps_core.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libgps_core.c b/libgps_core.c index 2196b0ab..b2e298d9 100644 --- a/libgps_core.c +++ b/libgps_core.c @@ -18,6 +18,17 @@ #include "libgps.h" #include "gps_json.h" +/* + * All privdata structures have export as a first member, + * and can have others that the individual method libraries + * know about but this one doesn't. + */ +struct privdata_t +{ + enum export_t export; +}; +#define PRIVATE(gpsdata) ((struct privdata_t *)gpsdata->privdata) + #ifdef LIBGPS_DEBUG int libgps_debuglevel = 0; |