X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcbint.h;h=01d8a2046c9f621f16773e5567d9a3d497fa8d4e;hb=79e3227022ae3d66f9f3806d231fdeec2a06cc6b;hp=a6d92aa96d572dabbafecb6c5a3d1644985ea1a5;hpb=dd932e025b2de0fa33b65971288c63679238e08a;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcbint.h b/src/xcbint.h index a6d92aa..01d8a20 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -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 *); @@ -140,6 +142,8 @@ void _xcb_ext_destroy(XCBConnection *c); /* xcb_conn.c */ struct XCBConnection { + int has_error; + /* constant data */ XCBSetup *setup; int fd; @@ -154,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);