if (!app_hash)
{
app_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)g_hash_table_unref);
- if (!app_hash) return;
+ if (!app_hash) return NULL;
}
app = g_hash_table_lookup (app_hash, bus_name);
if (app) return app;
if (!dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &path, DBUS_TYPE_INVALID))
{
g_warning ("Received RemoveAccessible with invalid arguments");
- return;
+ return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
a = ref_accessible (app, path);
if (a->parent && g_list_find (a->parent->children, a))
}
g_hash_table_remove (app->hash, &a->v.id);
cspi_object_unref_internal (a, TRUE); /* unref our own ref */
+ return DBUS_HANDLER_RESULT_HANDLED;
}
static gboolean
if (!app)
{
g_warning ("UpdateAccessible from unknown app. Should we add it?", sender);
- return;
+ return DBUS_HANDLER_RESULT_HANDLED;
}
dbus_message_iter_init (message, &iter);
// TODO: Check signature
dbind_any_demarshal (&iter, &type, &p); /* additions */
handle_addition (app, &ca);
+ return DBUS_HANDLER_RESULT_HANDLED;
}
static DBusHandlerResult