diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:21:19 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-09-30 06:21:19 -0400 |
commit | 82cd8cd019dec313938cba222871d32dbe5d449b (patch) | |
tree | 78145fc02ad49f37235dc8b1c5d3fa8695859d11 /libgps_dbus.c | |
parent | c8014317e6dd0d98dcd4616f039c11317c2d3fe5 (diff) | |
download | gpsd-82cd8cd019dec313938cba222871d32dbe5d449b.tar.gz |
Re-do runtime dispatch in the client library.
Diffstat (limited to 'libgps_dbus.c')
-rw-r--r-- | libgps_dbus.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |