diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-02-24 19:17:05 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-02-24 19:17:05 +0000 |
commit | 0db635fe3c84d428ae796016a5b15b88917bdae7 (patch) | |
tree | 29c20e3b5dc9490aa8e914877f8b04322c99b3a8 /gpsd_dbus.c | |
parent | 9c445b0d5ab50be98416aec75e57b743a50c85bd (diff) | |
download | gpsd-0db635fe3c84d428ae796016a5b15b88917bdae7.tar.gz |
Simplify the internal D-Bus interface.
Diffstat (limited to 'gpsd_dbus.c')
-rw-r--r-- | gpsd_dbus.c | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/gpsd_dbus.c b/gpsd_dbus.c index 888d7306..e8ffb202 100644 --- a/gpsd_dbus.c +++ b/gpsd_dbus.c @@ -40,34 +40,8 @@ void send_dbus_fix(struct gps_device_t* channel) { gpsfix = &(gpsdata->fix); devname = gpsdata->gps_device; - message = dbus_message_new_signal( "/org/gpsd", "org.gpsd", "fix"); - - /* the old unnamed format - should be removed at some point */ - dbus_message_append_args (message, - DBUS_TYPE_DOUBLE, &(gpsfix->time), - DBUS_TYPE_INT32, &(gpsfix->mode), - DBUS_TYPE_DOUBLE, &(gpsfix->ept), - DBUS_TYPE_DOUBLE, &(gpsfix->latitude), - DBUS_TYPE_DOUBLE, &(gpsfix->longitude), - DBUS_TYPE_DOUBLE, &(gpsfix->eph), - DBUS_TYPE_DOUBLE, &(gpsfix->altitude), - DBUS_TYPE_DOUBLE, &(gpsfix->epv), - DBUS_TYPE_DOUBLE, &(gpsfix->track), - DBUS_TYPE_DOUBLE, &(gpsfix->epd), - DBUS_TYPE_DOUBLE, &(gpsfix->speed), - DBUS_TYPE_DOUBLE, &(gpsfix->eps), - DBUS_TYPE_DOUBLE, &(gpsfix->climb), - DBUS_TYPE_DOUBLE, &(gpsfix->epc), - DBUS_TYPE_INVALID); - - dbus_message_set_no_reply(message, TRUE); - - /* message is complete time to send it */ - dbus_connection_send(connection, message, &serial); - dbus_message_unref(message); - /* Send the named signel. */ - message = dbus_message_new_signal("/org/gpsd", "org.gpsd", "namedfix"); + message = dbus_message_new_signal("/org/gpsd", "org.gpsd", "fix"); dbus_message_append_args (message, DBUS_TYPE_DOUBLE, &(gpsfix->time), DBUS_TYPE_INT32, &(gpsfix->mode), |