diff options
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; |