From 79e3227022ae3d66f9f3806d231fdeec2a06cc6b Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Fri, 15 Sep 2006 01:57:53 -0700 Subject: Add a private connection shutdown method for error cases. --- src/xcb_conn.c | 5 +++++ src/xcbint.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/xcb_conn.c b/src/xcb_conn.c index 2b24dc0..29d91f4 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -247,6 +247,11 @@ void XCBDisconnect(XCBConnection *c) /* Private interface */ +void _xcb_conn_shutdown(XCBConnection *c) +{ + c->has_error = 1; +} + int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count) { int ret; diff --git a/src/xcbint.h b/src/xcbint.h index f059522..01d8a20 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -158,6 +158,7 @@ struct XCBConnection { _xcb_xid xid; }; +void _xcb_conn_shutdown(XCBConnection *c); int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count); -- cgit v1.2.3