<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
</head>
<body>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style = 'font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif;font-size:14px; line-height:1.6;'>
<div ></div><div>
<div>
<span>Hi,Uli Schlachter,
</span></div><div><span>I am very grateful for your reply.</span></div><div><span>I am now a little confused about the </span><span style="color: rgb(49, 53, 59); font-family: Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;">XML specification. I cannot understand how the </span><span style="color: rgb(49, 53, 59); font-family: Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;">XML specification describes a function like </span><span style="line-height: 22.4px;">xcb_grab_pointer_reply() .</span></div><div><span style="line-height: 22.4px;">Is there any documents describe the rules of turning </span><span style="color: rgb(49, 53, 59); font-family: Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;">XML</span><span style="color: rgb(49, 53, 59); font-family: Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 22.4px;"> to C code?</span></div><div><span><br></span></div>
<div>
<span>Yours sincerely.
</span></div>
<div id="ntes-pcmac-signature" style="font-family:'微软雅黑'">
<div style="font-size:14px; padding: 0; margin:0;line-height:14px;">
<div style="padding-bottom:6px;margin-bottom:10px;border-bottom:1px solid #e6e6e6;display:inline-block;">
<a href="https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=starcold14&uid=starcold14%40gmail.com&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22starcold14%40gmail.com%22%5D" style="display:block;background:#fff; max-width: 400px; _width: 400px;padding:15px 0 10px 0;text-decoration: none; outline:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><table cellpadding="0" style="width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse;color: #9b9ea1;font-size: 14px;line-height:1.3;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tbody style="font-family: 'PingFang SC', 'Hiragino Sans GB','WenQuanYi Micro Hei', 'Microsoft Yahei', '微软雅黑', verdana !important; word-wrap:break-word; word-break:break-all;-webkit-text-size-adjust:none !important;text-size-adjust:none !important;"><tr class="firstRow"><td width="38" style="padding:0; box-sizing: border-box; width: 38px;"><img width="38" height="38" style="vertical-align:middle; width: 38px; height: 38px; border-radius:50%;" src="https://mail-online.nosdn.127.net/qiyelogo/defaultAvatar.png"></td><td style="padding: 0 0 0 10px; color: #31353b;"><div style="font-size: 16px;font-weight:bold; width:100%; white-space: nowrap; overflow:hidden;text-overflow: ellipsis;">starcold14</div></td></tr><tr width="100%" style="font-size: 14px !important; width: 100%;"><td colspan="2" style="padding:10px 0 0 0; font-size:14px !important; width: 100%;"><div style="width: 100%;font-size: 14px !important;word-wrap:break-word;word-break:break-all;">starcold14@gmail.com</div></td></tr></tbody></table></a>
</div>
</div>
</div>
</div><div class="J-reply" style="background-color:#f2f2f2;color:black;padding-top:6px;padding-bottom:6px;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin-top:45px;margin-bottom:20px;font-family:'微软雅黑';">
<div style="font-size:12px;line-height:1.5;word-break:break-all;margin-left:10px;margin-right:10px">On <span class="mail-date">12/29/2023 21:00</span>,<a class="mail-to" style="text-decoration:none;color:#2a83f2;" href="mailto:psychon@znc.in">Uli Schlachter<psychon@znc.in></a> wrote: </div>
</div>
<blockquote id="ntes-pcmail-quote" style="margin: 0; padding: 0; font-size: 14px; font-family: '微软雅黑';">
Hi starcold,<br><br>Am 29.12.23 um 09:37 schrieb starcold14:<br> <blockquote class="mmbqc1">Hi,<br> I'm a newbie and don't know much about libxcb,<br></blockquote><br>There is xcb/proto and libxcb. proto contains a XML description of the <br>X11 protocol and libxcb uses this XML to generate C code.<br><br> <blockquote class="mmbqc1">and I'm currently having a<br> problem where when I want to find a function named xcb_grab_pointer_reply, I<br> can't find it in the code from<br> gitlab(https://gitlab.freedesktop.org/xorg/lib/libxcb<br> <https://gitlab.freedesktop.org/xorg/lib/libxcb>) using the grep tool.<br></blockquote><br>You can find he XML specification for GrabPointer here: [0]<br><br>[0]: <br>https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/1388374c7149114888a6a5cd6e9bf6ad4b42adf8/src/xproto.xml#L2585-2596<br><br>When you build libxcb from source, the appropriate C code is then <br>generated. You won't find much helpful in there. This is the generated <br>code for xcb_grab_pointer_reply():<br><br>xcb_grab_pointer_reply_t *<br>xcb_grab_pointer_reply (xcb_connection_t *c,<br> xcb_grab_pointer_cookie_t cookie /**< */,<br> xcb_generic_error_t **e)<br>{<br> return (xcb_grab_pointer_reply_t *) xcb_wait_for_reply(c, <br>cookie.sequence, e);<br>}<br><br>Cheers,<br>Uli<br>-- <br>“Some people are worth melting for.” - Olaf<br><br></blockquote><!--😀-->
</div>
</body>
</html>