From: Mike Gorse Date: Thu, 15 May 2008 19:59:05 +0000 (-0400) Subject: Have spi_initialize_introspectable take a verify function X-Git-Tag: AT_SPI2_CORE_0_1_3~247^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed0f060efc9bd54f8798efeddc0babf2141cbc49;p=platform%2Fupstream%2Fat-spi2-core.git Have spi_initialize_introspectable take a verify function --- diff --git a/libspi/accessible.h b/libspi/accessible.h index d36b6ee..1d5a72e 100644 --- a/libspi/accessible.h +++ b/libspi/accessible.h @@ -45,7 +45,7 @@ void spi_initialize_selection(DRouteData *data); void spi_initialize_table(DRouteData *data); void spi_initialize_text(DRouteData *data); void spi_initialize_value(DRouteData *data); -void spi_initialize_introspectable(DRouteData *data); +void spi_initialize_introspectable(DRouteData *data, DRouteGetDatumFunction verify_object); void spi_register_tree_object(DBusConnection *bus, const char *path); diff --git a/libspi/dbus.c b/libspi/dbus.c index 2263a6d..7152b66 100644 --- a/libspi/dbus.c +++ b/libspi/dbus.c @@ -184,7 +184,7 @@ spi_dbus_initialize (DRouteData * data) spi_initialize_table (data); spi_initialize_text (data); spi_initialize_value (data); - spi_initialize_introspectable(data); + spi_initialize_introspectable(data, (DRouteGetDatumFunction) spi_dbus_get_object); } void spi_dbus_emit_valist(DBusConnection *bus, const char *path, const char *interface, const char *name, int first_arg_type, va_list args) diff --git a/libspi/introspectable.c b/libspi/introspectable.c index 3ce29c3..6f5819a 100644 --- a/libspi/introspectable.c +++ b/libspi/introspectable.c @@ -112,9 +112,9 @@ static DRouteMethod methods[] = { * Adds the introspectable interface to the DRoute object provided */ void -spi_initialize_introspectable (DRouteData *data) +spi_initialize_introspectable (DRouteData *data, DRouteGetDatumFunction verify_object) { droute_add_interface (data, "org.freedesktop.atspi.Introspectable", methods, NULL, - (DRouteGetDatumFunction) spi_dbus_get_path, NULL); + verify_object, NULL); };