aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.h
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-05 20:22:25 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-05 20:22:25 -0400
commit758acbc65fe52f8ac364e61c5d2d2b73083b1fe6 (patch)
treeb2842dc2b8b098fe4c7516b561328810738c5a3f /xlib.h
parenta4b7c2d96c12be570c1ce0e3af5ee2a9f3bf2d7e (diff)
downloadrunes-758acbc65fe52f8ac364e61c5d2d2b73083b1fe6.tar.gz
runes-758acbc65fe52f8ac364e61c5d2d2b73083b1fe6.zip
use libuv to process events
Diffstat (limited to 'xlib.h')
-rw-r--r--xlib.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/xlib.h b/xlib.h
index e2fcf70..809645e 100644
--- a/xlib.h
+++ b/xlib.h
@@ -3,17 +3,16 @@
#include <X11/Xlib.h>
-typedef struct {
+struct runes_window {
Display *dpy;
Window w;
GC gc;
XIC ic;
-} RunesWindow;
+};
RunesWindow *runes_window_create();
cairo_surface_t *runes_surface_create(RunesWindow *w);
-void runes_window_prepare_input(RunesWindow *w);
-void runes_window_read_key(RunesWindow *w, char **buf, size_t *len);
+void runes_loop_init(RunesTerm *t, uv_loop_t *loop);
void runes_window_destroy(RunesWindow *w);
#endif