summaryrefslogtreecommitdiff
path: root/src/c-client.xsl
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2006-02-26 15:45:08 -0800
committerJamey Sharp <jamey@minilop.net>2006-02-26 15:45:08 -0800
commitff7b6c9124e7caf26381cc7a10fba9eaf1875652 (patch)
treef1367b49ecd4ee798abac6f20219b25300a07adb /src/c-client.xsl
parent7875040fa179d8ca3fa4ec046c1b8c2a351a6621 (diff)
API/ABI break: Add flags to XCBSendRequest, first for error-checked requests.
There's no more race condition between event and reply handling. The *RequestBlind and *RequestChecked functions are not yet implemented.
Diffstat (limited to 'src/c-client.xsl')
-rw-r--r--src/c-client.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/c-client.xsl b/src/c-client.xsl
index 903895d..3ab2889 100644
--- a/src/c-client.xsl
+++ b/src/c-client.xsl
@@ -611,7 +611,11 @@ authorization from the authors.
</xsl:if>;</l>
</xsl:for-each>
- <l>XCBSendRequest(c, &amp;xcb_ret.sequence, xcb_parts, &amp;xcb_req);</l>
+ <l>XCBSendRequest(c, &amp;xcb_ret.sequence, <!--
+ --><xsl:choose>
+ <xsl:when test="@has-reply">XCB_REQUEST_CHECKED</xsl:when>
+ <xsl:otherwise>0</xsl:otherwise>
+ </xsl:choose>, xcb_parts, &amp;xcb_req);</l>
<l>return xcb_ret;</l>
</xsl:template>