X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=4a7b50e8ba9168289067c40454d84a2d5ad7baee;hb=90eeb461be4975ff35d187ba64fedbb16ff13d15;hp=6049bac599f8fba1cc34f9e5665785ad177ff4ed;hpb=3e213a1becd3081e905e3711ff3fe3e4865cd7dd;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 6049bac..4a7b50e 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. + + - - - - - - - - - - + + + @@ -90,19 +86,129 @@ authorization from the authors. - + { "" } - - - return XCBGetExtensionData(c, &XCBId); - + + + + xcb + + + _randr + + + _screensaver + + + _xf86dri + + + _xfixes + + + _xvmc + + + _ + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + @@ -117,27 +223,26 @@ authorization from the authors. - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -159,7 +264,7 @@ authorization from the authors. - + - XCB - + @@ -211,126 +314,141 @@ authorization from the authors. + parameter "request" must be the request node, which defaults to the + 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 - + - - + + - + - + - + @@ -348,21 +466,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -381,6 +501,7 @@ authorization from the authors. + _t @@ -391,7 +512,8 @@ authorization from the authors. + _t @@ -442,6 +564,7 @@ authorization from the authors. + _t @@ -449,13 +572,13 @@ authorization from the authors. - + - + @@ -471,6 +594,7 @@ authorization from the authors. + _t @@ -481,12 +605,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -501,6 +631,7 @@ authorization from the authors. + _t @@ -508,7 +639,7 @@ authorization from the authors. - + @@ -569,14 +700,14 @@ authorization from the authors. - static const XCBProtocolRequest xcb_req = { + static const xcb_protocol_request_t xcb_req = { /* count */ , /* ext */ - &XCB - - Id + & + + _id 0 , @@ -605,19 +736,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; @@ -644,50 +782,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) @@ -699,52 +817,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) + ( @@ -794,32 +911,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; @@ -899,7 +1016,7 @@ authorization from the authors. #define - + @@ -942,7 +1059,7 @@ authorization from the authors. typedef - + ; @@ -1143,7 +1260,7 @@ authorization from the authors. - + pad