Minor performance improvement: do not call _xcb_in_expect_reply unless it is needed...
[free-sw/xcb/libxcb] / src / xcbext.h
index c8f532c..508ebf0 100644 (file)
@@ -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 */