diff options
author | marha <marha@users.sourceforge.net> | 2010-05-18 13:54:22 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-05-18 13:54:22 +0000 |
commit | 96bd0f520fd4a3a8c54e76638985389f60d936e0 (patch) | |
tree | 32643acb5ff4fc3b8a35c7842f94dea7d69c2c73 /libxcb/src/xcb.h | |
parent | 4787c5a8db870b0cff2326bd750c4d96c7d84e51 (diff) | |
parent | a457b80612b4f37be47099e9a0f38c4fc2a42252 (diff) | |
download | vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.tar.gz vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.tar.bz2 vcxsrv-96bd0f520fd4a3a8c54e76638985389f60d936e0.zip |
svn merge "^/branches/released" .
Diffstat (limited to 'libxcb/src/xcb.h')
-rw-r--r-- | libxcb/src/xcb.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libxcb/src/xcb.h b/libxcb/src/xcb.h index 70a44a59d..ad32051b2 100644 --- a/libxcb/src/xcb.h +++ b/libxcb/src/xcb.h @@ -295,6 +295,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 */ |