Lint fixes.
/*
* Converts the Accessible object reference to its D-Bus object path
*/
-static gchar *
-ref_to_path (guint ref)
+gchar *
+atk_dbus_ref_to_path (guint ref)
{
return g_strdup_printf(SPI_ATK_OBJECT_REFERENCE_TEMPLATE, ref);
}
ref = object_to_ref (accessible);
if (ref)
{
- return ref_to_path (ref);
+ return atk_dbus_ref_to_path (ref);
}
else
{
}
else
{
- return ref_to_path (ref);
+ return atk_dbus_ref_to_path (ref);
}
}
AtkObject *accessible)
{
update_accessible (accessible);
+ return TRUE;
}
static gboolean
gpointer data)
{
tree_update_wrapper (signal_hint, n_param_values, param_values, data, tree_update_state_action);
+ return TRUE;
}
static gboolean
update_accessible (accessible);
}
/* Parent value us updated by child-add signal of parent object */
+ return TRUE;
}
static gboolean
const GValue *param_values,
gpointer data)
{
- tree_update_wrapper (signal_hint, n_param_values, param_values, data, tree_update_property_action);
+ tree_update_wrapper (signal_hint, n_param_values, param_values, data, tree_update_property_action);
+ return TRUE;
}
static gboolean
const gchar *detail = NULL;
AtkObject *child;
- if (has_manages_descendants (accessible)) return;
+ if (has_manages_descendants (accessible)) return;
if (signal_hint->detail)
detail = g_quark_to_string (signal_hint->detail);
register_subtree (child);
update_accessible (accessible);
}
+ return TRUE;
}
static gboolean
gpointer data)
{
tree_update_wrapper (signal_hint, n_param_values, param_values, data, tree_update_children_action);
+ return TRUE;
}
/*---------------------------------------------------------------------------*/
gchar *
atk_dbus_desktop_object_path ();
+gchar *
+atk_dbus_ref_to_path (guint ref);
#endif /* ACCESSIBLE_REGISTER */
static DBusMessage *
impl_getMatches(DBusConnection *bus, DBusMessage *message, void *user_data)
{
- AtkObject *obj = path_to_object (message);
+ AtkObject *obj = atk_dbus_path_to_object (dbus_message_get_path (message));
DBusMessageIter iter;
MatchRulePrivate rule;
dbus_uint16_t sortby;
return droute_invalid_arguments_error (message);
}
link = atk_hypertext_get_link (hypertext, linkIndex);
- return spi_dbus_return_object (message, ATK_OBJECT (link), FALSE);
+ return NULL; // TODO
+ //return spi_dbus_return_object (message, ATK_OBJECT (link), FALSE);
}
static DBusMessage *
#include <droute/droute.h>
#include "spi-common/spi-dbus.h"
+#include "accessible-marshaller.h"
static dbus_bool_t
impl_get_nSelectedChildren (DBusMessageIter * iter,
obj, spi_interface_streamable_content);
#else
g_warning ("Streamable content not supported");
+ return NULL;
#endif
}
}
category++;
}
- g_return_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_STRING);
+ g_return_val_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_STRING, DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
dbus_message_iter_get_basic (&iter, &detail);
dbus_message_iter_next (&iter);
- g_return_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_INT32);
+ /* TODO: Return error indicating invalid arguments in next line */
+ g_return_val_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_INT32, DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
dbus_message_iter_get_basic (&iter, &detail1);
e.detail1 = detail1;
dbus_message_iter_next (&iter);
- g_return_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_INT32);
+ g_return_val_if_fail (dbus_message_iter_get_arg_type (&iter) == DBUS_TYPE_INT32, DBUS_HANDLER_RESULT_NOT_YET_HANDLED);
dbus_message_iter_get_basic (&iter, &detail2);
e.detail2 = detail2;
dbus_message_iter_next (&iter);
cspi_dbus_call (obj, spi_interface_hyperlink, "getObject", NULL, "i=>o", d_i, &path);
retval = cspi_ref_related_accessible (obj, path);
g_free (path);
+ return retval;
}
/**
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 (!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
void spi_remove_device_listeners (SpiDEController *controller, const char *bus_name);
+SpiDEController *spi_registry_dec_new (SpiRegistry *reg, DBusConnection *bus, DRouteContext *droute);
G_END_DECLS
#endif /* DEVICEEVENTCONTROLLER_H_ */
#include <gtk/gtk.h>
#include <cspi/spi.h>
+#include "dbus/dbus.h"
/* Known bugs */
#define WHOLE_STRING -1