X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=445a8a6f06e7f3fd7e448ecb626a3eafa35043b2;hb=8eba8690adac2c4425f4cac490c77f9f3b1da6f7;hp=218e0938a46f6d818b3869a4cd7e5eef218fff06;hpb=dbd2d9689305ce5bf24aebd894551bb6b590f6e4;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 218e093..445a8a6 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,16 +315,15 @@ authorization from the authors. context node. --> - XCB - + - Void + xcb_void - Cookie + _cookie_t @@ -222,20 +331,18 @@ authorization from the authors. - XCB - - - Checked - Unchecked + + _checked + _unchecked - + - true @@ -247,18 +354,19 @@ authorization from the authors. - + - - + + + - + - + @@ -270,83 +378,75 @@ authorization from the authors. - - + + - - + + - - - + + + - - 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 - + - - + + - + - + - + @@ -364,21 +464,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -397,6 +499,7 @@ authorization from the authors. + _t @@ -407,7 +510,8 @@ authorization from the authors. + _t @@ -458,6 +562,7 @@ authorization from the authors. + _t @@ -465,13 +570,13 @@ authorization from the authors. - + - + @@ -487,6 +592,7 @@ authorization from the authors. + _t @@ -497,12 +603,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -517,6 +629,7 @@ authorization from the authors. + _t @@ -524,7 +637,7 @@ authorization from the authors. - + @@ -585,14 +698,14 @@ authorization from the authors. - static const XCBProtocolRequest xcb_req = { + static const xcb_protocol_request_t xcb_req = { /* count */ , /* ext */ - &XCB - - Id + & + + _id 0 , @@ -621,17 +734,24 @@ 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 0 @@ -660,50 +780,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) @@ -715,52 +815,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) + ( @@ -810,32 +909,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; @@ -915,7 +1014,7 @@ authorization from the authors. #define - + @@ -958,7 +1057,7 @@ authorization from the authors. typedef - + ; @@ -976,6 +1075,8 @@ authorization from the authors. typedef struct + + { @@ -996,7 +1097,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1159,7 +1262,7 @@ authorization from the authors. - + pad