summaryrefslogtreecommitdiff
path: root/obt/xqueue.h
diff options
context:
space:
mode:
Diffstat (limited to 'obt/xqueue.h')
-rw-r--r--obt/xqueue.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/obt/xqueue.h b/obt/xqueue.h
index 8b312785..11cd2bc0 100644
--- a/obt/xqueue.h
+++ b/obt/xqueue.h
@@ -87,6 +87,15 @@ gboolean xqueue_exists_local(xqueue_match_func match, gpointer data);
gboolean xqueue_remove_local(XEvent *event_return,
xqueue_match_func match, gpointer data);
+typedef void (*ObtXQueueFunc)(const XEvent *ev, gpointer data);
+
+/*! Begin listening for X events in the default GMainContext, and feed them
+ to the registered callback functions, added with xqueue_add_callback(). */
+void xqueue_listen(void);
+
+void xqueue_add_callback(ObtXQueueFunc f, gpointer data);
+void xqueue_remove_callback(ObtXQueueFunc f, gpointer data);
+
G_END_DECLS
#endif