X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcbint.h;h=a8287e853c263453e0d3cde4beed7de1e534aa5b;hb=83e652f566671f96ffc53a3c0099a84a1606c695;hp=0e24d72303dbb58a57679fa5870babd56d3c7f9d;hpb=8ab4dcde9db8175ef0093123bd04c72471e205ff;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcbint.h b/src/xcbint.h index 0e24d72..a8287e8 100644 --- a/src/xcbint.h +++ b/src/xcbint.h @@ -32,6 +32,10 @@ #include "config.h" #endif +#ifdef GCC_HAS_VISIBILITY +#pragma GCC visibility push(hidden) +#endif + enum workarounds { WORKAROUND_NONE, WORKAROUND_GLX_GET_FB_CONFIGS_BUG @@ -72,7 +76,7 @@ typedef struct _xcb_out { int _xcb_out_init(_xcb_out *out); void _xcb_out_destroy(_xcb_out *out); -int _xcb_out_write(XCBConnection *c); +int _xcb_out_write(XCBConnection *c, struct iovec **vector, int *count); int _xcb_out_write_block(XCBConnection *c, struct iovec *vector, size_t count); int _xcb_out_flush(XCBConnection *c); @@ -86,7 +90,9 @@ typedef struct _xcb_in { char queue[4096]; int queue_len; + unsigned int request_expected; unsigned int request_read; + unsigned int request_completed; struct reply_list *current_reply; struct reply_list **current_reply_tail; @@ -151,5 +157,10 @@ struct XCBConnection { _xcb_xid xid; }; -int _xcb_conn_wait(XCBConnection *c, const int should_write, pthread_cond_t *cond); +int _xcb_conn_wait(XCBConnection *c, pthread_cond_t *cond, struct iovec **vector, int *count); + +#ifdef GCC_HAS_VISIBILITY +#pragma GCC visibility pop +#endif + #endif