#ifndef XXCBINT_H
#define XXCBINT_H
#include <assert.h>
#include <stdint.h>
#include <X11/Xlibint.h>
#include <X11/Xlib-xcb.h>
#include "locking.h"
#define XLIB_SEQUENCE_COMPARE(a,op,b) (((long) (a) - (long) (b)) op 0)
typedef struct PendingRequest PendingRequest;
struct PendingRequest {
PendingRequest *next;
unsigned long sequence;
};
typedef struct _X11XCBPrivate {
xcb_connection_t *connection;
PendingRequest *pending_requests;
PendingRequest **pending_requests_tail;
xcb_generic_event_t *next_event;
char *real_bufmax;
char *reply_data;
int reply_length;
int reply_consumed;
uint64_t last_flushed;
enum XEventQueueOwner event_owner;
XID next_xid;
xcondition_t event_notify;
int event_waiter;
} _X11XCBPrivate;
int _XConnectXCB(Display *dpy, _Xconst char *display, char **fullnamep, int *screenp);
void _XFreeX11XCBStructure(Display *dpy);
#endif