diff options
author | Mike Gorse <mgorse@suse.com> | 2014-02-01 17:39:34 -0600 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2014-02-01 17:39:34 -0600 |
commit | 6395af932862454ed292d3623c18c59218ecbe7e (patch) | |
tree | 2ec4836e29c31d9fd79768ee19bcc04e5abb8903 /atspi/atspi-event-listener.h | |
parent | 2554a07c0bbee7defef5b2fca3a420d6cf42a770 (diff) | |
download | at-spi2-core-6395af932862454ed292d3623c18c59218ecbe7e.tar.gz |
Allow caching of data sent with events and requesting such data
Add atspi_event_listener_register_full, to request that particular data
be sent with an event, and cache the data for the duration of the event
callback.
This also extends the D-Bus protocol, adding an a{sv} to an event to send
this data along, but we will still read events without this array added for
backwards compatibility (and compatibilllity with QT-AT-SPI, which does not
send this data for now).
https://bugzilla.gnome.org/show_bug.cgi?id=708695
Diffstat (limited to 'atspi/atspi-event-listener.h')
-rw-r--r-- | atspi/atspi-event-listener.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/atspi/atspi-event-listener.h b/atspi/atspi-event-listener.h index 12d3c585..ee52facc 100644 --- a/atspi/atspi-event-listener.h +++ b/atspi/atspi-event-listener.h @@ -93,6 +93,12 @@ atspi_event_listener_register (AtspiEventListener *listener, GError **error); gboolean +atspi_event_listener_register_full (AtspiEventListener *listener, + const gchar *event_type, + GArray *properties, + GError **error); + +gboolean atspi_event_listener_register_from_callback (AtspiEventListenerCB callback, void *user_data, GDestroyNotify callback_destroyed, @@ -100,6 +106,14 @@ atspi_event_listener_register_from_callback (AtspiEventListenerCB callback, GError **error); gboolean +atspi_event_listener_register_from_callback_full (AtspiEventListenerCB callback, + void *user_data, + GDestroyNotify callback_destroyed, + const gchar *event_type, + GArray *properties, + GError **error); + +gboolean atspi_event_listener_register_no_data (AtspiEventListenerSimpleCB callback, GDestroyNotify callback_destroyed, const gchar *event_type, |