aboutsummaryrefslogtreecommitdiff
path: root/libxcb/src/xcb.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-03-20 15:17:43 +0000
committermarha <marha@users.sourceforge.net>2010-03-20 15:17:43 +0000
commit4f736752bbdf3bbf1a6325af7ad470198aa5a82a (patch)
tree77c1f6fc206b313a68ffe6f956e1cbb089e7f9db /libxcb/src/xcb.h
parent501c558c841fc5bc1a67e6dc8d33c8605276f504 (diff)
downloadvcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.gz
vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.tar.bz2
vcxsrv-4f736752bbdf3bbf1a6325af7ad470198aa5a82a.zip
libxcb git update
Diffstat (limited to 'libxcb/src/xcb.h')
-rw-r--r--libxcb/src/xcb.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libxcb/src/xcb.h b/libxcb/src/xcb.h
index f95127665..35d876883 100644
--- a/libxcb/src/xcb.h
+++ b/libxcb/src/xcb.h
@@ -285,6 +285,22 @@ xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c);
*/
xcb_generic_error_t *xcb_request_check(xcb_connection_t *c, xcb_void_cookie_t cookie);
+/**
+ * @brief Discards the reply for a request.
+ * @param c: The connection to the X server.
+ * @param sequence: The request sequence number from a cookie.
+ *
+ * Discards the reply for a request. Additionally, any error generated
+ * by the request is also discarded (unless it was an _unchecked request
+ * and the error has already arrived).
+ *
+ * This function will not block even if the reply is not yet available.
+ *
+ * Note that the sequence really does have to come from an xcb cookie;
+ * this function is not designed to operate on socket-handoff replies.
+ */
+void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence);
+
/* xcb_ext.c */