summaryrefslogtreecommitdiff
path: root/atspi/atspi-event-listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'atspi/atspi-event-listener.h')
-rw-r--r--atspi/atspi-event-listener.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/atspi/atspi-event-listener.h b/atspi/atspi-event-listener.h
index 228dbcc4..edc32daf 100644
--- a/atspi/atspi-event-listener.h
+++ b/atspi/atspi-event-listener.h
@@ -40,13 +40,32 @@
typedef void (*AtspiEventListenerCB) (const AtspiEvent *event,
void *user_data);
+/**
+ * AtspiEventListenerSimpleCB:
+ * @event: The event for which notification is sent.
+ *
+ * Like #AtspiEventlistenerCB, but with no user_data.
+ *
+ **/
+typedef void (*AtspiEventListenerSimpleCB) (const AtspiEvent *event);
+
gboolean
atspi_event_listener_register (AtspiEventListenerCB callback,
void *user_data,
+ GDestroyNotify callback_destroyed,
+ const gchar *event_type);
+
+gboolean
+atspi_event_listener_register_no_data (AtspiEventListenerSimpleCB callback,
+ GDestroyNotify callback_destroyed,
const gchar *event_type);
gboolean
atspi_event_listener_deregister (AtspiEventListenerCB callback,
void *user_data,
const gchar *event_type);
+
+gboolean
+atspi_event_listener_deregister_no_data (AtspiEventListenerSimpleCB callback,
+ const gchar *event_type);
#endif /* _ATSPI_EVENT_LISTENER_H_ */