37 #ifdef GCC_HAS_VISIBILITY
38 #pragma GCC visibility push(hidden)
43 WORKAROUND_GLX_GET_FB_CONFIGS_BUG,
44 WORKAROUND_EXTERNAL_SOCKET_OWNER
54 #define XCB_PAD(i) (-(i) & 3)
56 #define XCB_SEQUENCE_COMPARE(a,op,b) ((int64_t) ((a) - (b)) op 0)
59 #define offsetof(type,member) ((size_t) &((type *)0)->member)
63 #define MIN(x,y) ((x) < (y) ? (x) : (y))
66 #define container_of(pointer,type,member) ((type *)(((char *)(pointer)) - offsetof(type, member)))
70 typedef void (*xcb_list_free_func_t)(
void *);
75 void _xcb_map_delete(
_xcb_map *q, xcb_list_free_func_t do_free);
76 int _xcb_map_put(
_xcb_map *q,
unsigned int key,
void *data);
77 void *_xcb_map_remove(
_xcb_map *q,
unsigned int key);
86 pthread_cond_t socket_cond;
87 void (*return_socket)(
void *closure);
91 char queue[XCB_QUEUE_BUFFER_SIZE];
95 uint64_t request_written;
97 pthread_mutex_t reqlenlock;
98 enum lazy_reply_tag maximum_request_length_tag;
102 } maximum_request_length;
106 void _xcb_out_destroy(
_xcb_out *out);
116 pthread_cond_t event_cond;
122 uint64_t request_expected;
123 uint64_t request_read;
124 uint64_t request_completed;
138 void _xcb_in_destroy(
_xcb_in *in);
142 int _xcb_in_expect_reply(
xcb_connection_t *c, uint64_t request,
enum workarounds workaround,
int flags);
152 pthread_mutex_t lock;
166 pthread_mutex_t lock;
185 pthread_mutex_t iolock;
205 #ifdef GCC_HAS_VISIBILITY
206 #pragma GCC visibility pop
Definition: xcb_windefs.h:38
Definition: xcb_list.c:43
xcb_setup_t
Definition: xproto.h:453
xcb_big_requests_enable_cookie_t
Definition: bigreq.h:29
Container for authorization information.
Definition: xcb.h:208