From 45b6da360af526817cba737bc3b13ad6e24ee26b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 Sep 2011 03:36:14 -0400 Subject: First step in runtime export dispatch for the client library. --- libgps_core.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libgps_core.c') 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; -- cgit v1.2.1