Minor performance improvement: do not call _xcb_in_expect_reply unless it is needed...
[free-sw/xcb/libxcb] / src / xcbext.h
index ddbb77a..508ebf0 100644 (file)
@@ -52,15 +52,18 @@ typedef struct {
 } XCBProtocolRequest;
 
 enum XCBSendRequestFlags {
-    XCB_REQUEST_CHECKED = 1 << 0
+    XCB_REQUEST_CHECKED = 1 << 0,
+    XCB_REQUEST_RAW = 1 << 1,
+    XCB_REQUEST_DISCARD_REPLY = 1 << 2
 };
 
-int XCBSendRequest(XCBConnection *c, unsigned int *sequence, int flags, struct iovec *vector, const XCBProtocolRequest *request);
+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 */