DBusMessage *reply;
void *p = &event;
- if (sscanf (path, "/org/freedesktop/atspi/listeners/%d", &id) != 1)
+ if (sscanf (path, "/org/a11y/atspi/listeners/%d", &id) != 1)
{
g_warning ("Bad listener path: %s\n", path);
goto done;
goto done;
}
dbus_message_iter_init (message, &iter);
- dbind_any_demarshal (iter, &deviceEvent_type, &p);
+ dbind_any_demarshal (&iter, (char **) &deviceEvent_type, &p);
klass = CSPI_DEVICE_LISTENER_GET_CLASS (listener);
if (klass->device_event)
{
if (reply)
{
dbus_message_append_args (reply, DBUS_TYPE_BOOLEAN, &retval, DBUS_TYPE_INVALID);
- dbus_connection_send (cspi_bus(), reply, NULL);
+ dbus_connection_send (SPI_bus(), reply, NULL);
dbus_message_unref (reply);
}
return DBUS_HANDLER_RESULT_HANDLED;