From 1825670bfdcfd19778d6fbde7aeb41d9e25d7fa7 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Wed, 10 Jul 2013 17:02:23 -0400 Subject: Add connection watch stubs --- src/display.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/display.c b/src/display.c index bb3a42d..fdd90da 100644 --- a/src/display.c +++ b/src/display.c @@ -179,7 +179,7 @@ XOpenDisplay(const char *display_name) memset(xdisplay, 0, size); display = csx_display((Display *) xdisplay); display->xdisplay = (Display *) xdisplay; - display->display = wl_display_connect(display_name); + display->display = wl_display_connect(NULL); if (!display->display) { free(xdisplay); return NULL; @@ -335,6 +335,26 @@ XConnectionNumber(Display *xdisplay) return wl_display_get_fd(display->display); } +WL_EXPORT Status +XAddConnectionWatch(Display *xdisplay, + XConnectionWatchProc callback, XPointer client_data) +{ + STUB(); + + return 1; +} + +WL_EXPORT void +XRemoveConnectionWatch(Display *xdisplay, + XConnectionWatchProc callback, XPointer client_data) +{ +} + +WL_EXPORT void +XProcessInternalConnection(Display *xdisplay, int fd) +{ +} + WL_EXPORT int XFlush(Display *xdisplay) { -- cgit v1.2.3