From 82cd8cd019dec313938cba222871d32dbe5d449b Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 30 Sep 2011 06:21:19 -0400 Subject: Re-do runtime dispatch in the client library. --- libgps_dbus.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libgps_dbus.c') diff --git a/libgps_dbus.c b/libgps_dbus.c index dc18551a..c35afad1 100644 --- a/libgps_dbus.c +++ b/libgps_dbus.c @@ -20,7 +20,6 @@ struct privdata_t { - enum export_t export_type; void (*handler)(struct gps_data_t *); }; #define PRIVATE(gpsdata) ((struct privdata_t *)(gpsdata)->privdata) @@ -125,7 +124,11 @@ int gps_dbus_open(struct gps_data_t *gpsdata) return 5; } - PRIVATE(gpsdata)->export_type = dbus; +#ifndef USE_QT + gpsdata->gps_fd = -2; +#else + gpsdata->gps_fd = (void *)(intptr_t)-2; +#endif /* USE_QT */ share_gpsdata = gpsdata; return 0; } -- cgit v1.2.1