From fd77a0a7b3f892925f203287b8b46c6ec9be94ea Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 Jun 2010 17:50:23 -0400 Subject: Use GMainLoop instead of ObtMainLoop --- obt/xqueue.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'obt/xqueue.h') 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 -- cgit v1.2.3