X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=f9897f7e00f29cf8a1a5180b28e3a28afd29e951;hb=b9e49b2a47e7388e20f8a5c009cdaf0b369e117c;hp=e58d9909dafe58ea13a5bcee0280d746648e9b7d;hpb=65ed274f05ba670eb02a55b098aed141fa9611ec;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index e58d990..f9897f7 100644 --- a/src/c-client.xsl +++ b/src/c-client.xsl @@ -26,7 +26,11 @@ authorization from the authors. --> + xmlns:e="http://exslt.org/common" + xmlns:func="http://exslt.org/functions" + xmlns:str="http://exslt.org/strings" + xmlns:xcb="http://xcb.freedesktop.org" + extension-element-prefixes="func str xcb"> @@ -49,6 +53,8 @@ authorization from the authors. + + - - - @@ -80,19 +83,129 @@ authorization from the authors. - + { "" } - - - return XCBGetExtensionData(c, &XCBId); - + + + + xcb + + + _randr + + + _screensaver + + + _xf86dri + + + _xfixes + + + _xvmc + + + _ + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + @@ -107,27 +220,26 @@ authorization from the authors. - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -149,14 +261,14 @@ authorization from the authors. - + - XCB - + @@ -205,127 +315,137 @@ authorization from the authors. context node. --> - XCB - + - Void + xcb_void - Cookie + _cookie_t + + + + + + + _checked + _unchecked + + + + + + + + + + + true + + + + + - + - - + + - + - + - - - - - - - - - - - true - - - + + + + + + + + - - + + - - + + - - - + + + - - return (XCBRep *) XCBWaitForReply(c, cookie.sequence, e); + + return (_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); - - - - - - - - - XCB ret; - ret.xid = XCBGenerateID(c); - return ret; - + + + + - + union - - + + - Event + _event_t - Error + _error_t - + - - + + - + - + - + @@ -343,21 +463,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -376,6 +498,7 @@ authorization from the authors. + _t @@ -386,7 +509,8 @@ authorization from the authors. + _t @@ -437,6 +561,7 @@ authorization from the authors. + _t @@ -444,13 +569,13 @@ authorization from the authors. - + - + @@ -466,6 +591,7 @@ authorization from the authors. + _t @@ -476,12 +602,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -496,6 +628,7 @@ authorization from the authors. + _t @@ -503,7 +636,7 @@ authorization from the authors. - + @@ -564,14 +697,14 @@ authorization from the authors. - static const XCBProtocolRequest xcb_req = { + static const xcb_protocol_request_t xcb_req = { /* count */ , /* ext */ - &XCB - - Id + & + + _id 0 , @@ -600,19 +733,26 @@ authorization from the authors. xcb_parts[].iov_base = (char *) ; xcb_parts[].iov_len = + --> + * sizeof( - + + + char + + + + + ) ; xcb_parts[].iov_base = 0; xcb_parts[].iov_len = -xcb_parts[].iov_len & 3; - xcb_ret.sequence = XCBSendRequest(c, - XCB_REQUEST_CHECKED + XCB_REQUEST_CHECKED 0 , xcb_parts + 2, &xcb_req); return xcb_ret; @@ -639,50 +779,30 @@ authorization from the authors. - - + + - - - - - - - - - - - - - - - - - - - + select="$pass1/xcb/struct[@name=concat($ref, $kind, '_t')]" /> R + 1 - - End(Iter(R)) + + _end(__iterator(R)) - End(R) + __end(R) @@ -694,52 +814,51 @@ authorization from the authors. - + + /struct[concat(xcb:xcb-prefix(@name), '_t') + = current()/@type] + /*[self::valueparam + or self::list[.//*[not(self::value + or self::op)]]]" /> - - + + - return ( *) (); - XCBGenericIter prev = ; - return ( *) ((char *) prev.data + XCB_TYPE_PAD(, prev.index)); + -->, prev.index)); - - + + return ; - - - - Iter i; + + + + _iterator_t i; i.data = ( *) (); - XCBGenericIter prev = ; i.data = ( *) ((char *) prev.data + XCB_TYPE_PAD(()) + ( ); - XCBGenericIter child = ; - i.data = (( *) child.data) + ( @@ -789,32 +908,32 @@ authorization from the authors. - - + + - *R = i->data; - XCBGenericIter child = ; --i->rem; - i->data = ( *) child.data; + i->data = (_t *) child.data; i->index = child.index; --i->rem; ++i->data; - i->index += sizeof(); + i->index += sizeof(_t); - - - XCBGenericIter ret; + + + xcb_generic_iterator_t ret; while(i.rem > 0) - Next(&i); + _next(&i); ret.data = i.data; ret.rem = i.rem; @@ -894,7 +1013,7 @@ authorization from the authors. #define - + @@ -937,7 +1056,7 @@ authorization from the authors. typedef - + ; @@ -955,6 +1074,8 @@ authorization from the authors. typedef struct + + { @@ -975,7 +1096,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1138,7 +1261,7 @@ authorization from the authors. - + pad