1 /* Copyright (C) 2003-2006 Jamey Sharp, Josh Triplett
2 * This file is licensed under the MIT license. See the file COPYING. */
9 #include <X11/Xlibint.h>
10 #include <X11/Xlib-xcb.h>
13 #define XLIB_SEQUENCE_COMPARE(a,op,b) (((long) (a) - (long) (b)) op 0)
15 typedef struct PendingRequest PendingRequest;
16 struct PendingRequest {
18 unsigned long sequence;
19 unsigned reply_waiter;
22 typedef struct _X11XCBPrivate {
23 xcb_connection_t *connection;
24 PendingRequest *pending_requests;
25 PendingRequest *pending_requests_tail;
26 xcb_generic_event_t *next_event;
31 uint64_t last_flushed;
32 enum XEventQueueOwner event_owner;
35 /* handle simultaneous threads waiting for responses */
36 xcondition_t event_notify;
38 xcondition_t reply_notify;
43 int _XConnectXCB(Display *dpy, _Xconst char *display, int *screenp);
44 void _XFreeX11XCBStructure(Display *dpy);
46 #endif /* XXCBINT_H */