X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcbext.h;h=508ebf0b27d997ea6b60fff99189971bbcaf1bf1;hb=162c7593adf1577ca8aecfcd53fd5644b6182609;hp=c8f532c47ff0c3983352b2269eb4dc10fe5a0b4d;hpb=47ceed78612d48dcda62cc2686fc527d61abe38b;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcbext.h b/src/xcbext.h index c8f532c..508ebf0 100644 --- a/src/xcbext.h +++ b/src/xcbext.h @@ -51,12 +51,19 @@ typedef struct { BOOL isvoid; } XCBProtocolRequest; -int XCBSendRequest(XCBConnection *c, unsigned int *sequence, struct iovec *vector, const XCBProtocolRequest *request); +enum XCBSendRequestFlags { + XCB_REQUEST_CHECKED = 1 << 0, + XCB_REQUEST_RAW = 1 << 1, + XCB_REQUEST_DISCARD_REPLY = 1 << 2 +}; + +unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, const XCBProtocolRequest *request); /* xcb_in.c */ void *XCBWaitForReply(XCBConnection *c, unsigned int request, XCBGenericError **e); +int XCBPollForReply(XCBConnection *c, unsigned int request, void **reply, XCBGenericError **error); /* xcb_xid.c */