Add a private connection shutdown method for error cases.
[free-sw/xcb/libxcb] / src / xcbint.h
index e90ede2..01d8a20 100644 (file)
@@ -43,6 +43,8 @@ enum workarounds {
 
 #define XCB_PAD(i) (-(i) & 3)
 
+#define XCB_SEQUENCE_COMPARE(a,op,b)   ((int) ((a) - (b)) op 0)
+
 /* xcb_list.c */
 
 typedef void (*XCBListFreeFunc)(void *);
@@ -74,7 +76,6 @@ typedef struct _xcb_out {
 int _xcb_out_init(_xcb_out *out);
 void _xcb_out_destroy(_xcb_out *out);
 
-int _xcb_out_write(XCBConnection *c, struct iovec **vector, int *count);
 int _xcb_out_send(XCBConnection *c, struct iovec **vector, int *count);
 int _xcb_out_flush_to(XCBConnection *c, unsigned int request);
 
@@ -141,8 +142,10 @@ void _xcb_ext_destroy(XCBConnection *c);
 /* xcb_conn.c */
 
 struct XCBConnection {
+    int has_error;
+
     /* constant data */
-    XCBConnSetupSuccessRep *setup;
+    XCBSetup *setup;
     int fd;
 
     /* I/O data */
@@ -155,8 +158,14 @@ 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);
 
+
+/* xcb_auth.c */
+
+int _xcb_get_auth_info(int fd, XCBAuthInfo *info);
+
 #ifdef GCC_HAS_VISIBILITY
 #pragma GCC visibility pop
 #endif