summaryrefslogtreecommitdiff
path: root/atspi/atspi-event-listener.h
diff options
context:
space:
mode:
authorMike Gorse <mgorse@novell.com>2010-11-07 08:43:41 -0500
committerMike Gorse <mgorse@novell.com>2010-11-07 08:43:41 -0500
commitf5ad78008ea864a19ca48e610c3b38c2de9fc06e (patch)
tree0a936245cb2745efcc6eafcce92b93b8a852da5e /atspi/atspi-event-listener.h
parent1299779d8ded027a7e277d5e64b76f88c4ba4da7 (diff)
downloadat-spi2-core-f5ad78008ea864a19ca48e610c3b38c2de9fc06e.tar.gz
Box some types, add missing header file, and other fixes
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_ */