Add a private connection shutdown method for error cases.
[free-sw/xcb/libxcb] / src / xcbint.h
index 9048e9d..01d8a20 100644 (file)
@@ -142,6 +142,8 @@ void _xcb_ext_destroy(XCBConnection *c);
 /* xcb_conn.c */
 
 struct XCBConnection {
+    int has_error;
+
     /* constant data */
     XCBSetup *setup;
     int fd;
@@ -156,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);