static void
spi_atk_bridge_register_application (const char *registry)
{
+ DBusMessage *message, *reply;
+ DBusError error;
+
bridge_threads_leave ();
- // TODO: register
+ message = dbus_message_new_method_call (SPI_DBUS_NAME_REGISTRY, SPI_DBUS_PATH_REGISTRY, SPI_DBUS_INTERFACE_REGISTRY, "registerApplication");
+ dbus_error_init (&error);
+ reply = dbus_connection_send_with_reply_and_block(this_app->droute.bus, message, 1000, &error);
+ if (error.message) g_warning (error.message);
+ if (reply) dbus_message_unref (reply);
+ if (message) dbus_message_unref (message);
bridge_threads_enter ();
}
dbus_bool_t consumed = FALSE;
dbus_error_init(&error);
- if (spi_dbus_marshall_deviceEvent(message, key_event))
+ if (spi_dbus_marshal_deviceEvent(message, key_event))
{
DBusMessage *reply = dbus_connection_send_with_reply_and_block(this_app->droute.bus, message, 1000, &error);
if (reply)