summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-01 17:39:42 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-01 17:41:09 -0700
commit384a32923590df0b58aa7b862ca894f36e3eb502 (patch)
treea61cc1c488af80754d627a92db5d61f0e6680a20 /include
parent3cb9e7003d72adcff0bd1c9ea3cb3038413c8c09 (diff)
Allow xcb tests to end with connection errors
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include')
-rw-r--r--include/xhiv.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/xhiv.h b/include/xhiv.h
index 867258e..9d5cedc 100644
--- a/include/xhiv.h
+++ b/include/xhiv.h
@@ -66,8 +66,15 @@ extern void XhivSequenceSync(Display *dpy, uint32_t sequence);
#ifdef HAVE_XCB
/* Manage an xcb display connection to a new Xhiv server */
#include <xcb/xcb.h>
+
+typedef enum {
+ xhiv_conn_no_error_allowed = 0,
+ xhiv_conn_error_allowed
+} xhiv_connection_error_allowed;
+
extern xcb_connection_t *xhiv_connect(xhiv_response *responses);
-extern int xhiv_disconnect(xcb_connection_t *conn);
+extern int xhiv_disconnect(xcb_connection_t *conn,
+ xhiv_connection_error_allowed cea);
extern void xhiv_sequence_sync(xcb_connection_t *conn, uint32_t sequence);
#endif