X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=0f7c025f4f5247a0bd8056134136b3e9763304c9;hb=16e7328b4a366b29d54696aafffe62c92e0e0130;hp=218e0938a46f6d818b3869a4cd7e5eef218fff06;hpb=dbd2d9689305ce5bf24aebd894551bb6b590f6e4;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 218e093..0f7c025 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"> @@ -43,12 +47,16 @@ authorization from the authors. + + + + - - - @@ -80,19 +85,129 @@ authorization from the authors. - + { "" } - - - return XCBGetExtensionData(c, &XCBId); - + + + + xcb + + + _randr + + + _screensaver + + + _xf86dri + + + _xfixes + + + _xvmc + + + _ + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + @@ -107,27 +222,26 @@ authorization from the authors. - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -149,14 +263,14 @@ authorization from the authors. - + - XCB - + @@ -205,16 +317,15 @@ authorization from the authors. context node. --> - XCB - + - Void + xcb_void - Cookie + _cookie_t @@ -222,20 +333,18 @@ authorization from the authors. - XCB - - - Checked - Unchecked + + _checked + _unchecked - + - true @@ -247,18 +356,19 @@ authorization from the authors. - + - - + + + - + - + @@ -270,83 +380,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 +466,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -397,6 +501,7 @@ authorization from the authors. + _t @@ -407,7 +512,8 @@ authorization from the authors. + _t @@ -458,6 +564,7 @@ authorization from the authors. + _t @@ -465,13 +572,13 @@ authorization from the authors. - + - + @@ -487,6 +594,7 @@ authorization from the authors. + _t @@ -497,12 +605,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -517,6 +631,7 @@ authorization from the authors. + _t @@ -524,7 +639,7 @@ authorization from the authors. - + @@ -585,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 , @@ -607,7 +722,7 @@ authorization from the authors. xcb_out; - @@ -621,17 +736,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 @@ -659,51 +781,39 @@ authorization from the authors. + + + + xcb_out.pad = 0; + memset(xcb_out.pad, 0, ); + + + - - + + - - - - - - - - - - - - - - - - - - - + select="$pass1/xcb/struct[@name=concat($ref, $kind, '_t')]" /> R + 1 - - End(Iter(R)) + + _end(__iterator(R)) - End(R) + __end(R) @@ -715,52 +825,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 +919,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; @@ -880,8 +989,16 @@ authorization from the authors. * Edit at your peril. */ - +/** + * @defgroup XCB__API XCB API + * @brief XCB Protocol Implementation. + + * @{ + **/ + + + #ifndef #define @@ -893,8 +1010,23 @@ authorization from the authors. + + + + #define XCB__MAJOR_VERSION + + #define XCB__MINOR_VERSION + + + + + + - + + +#include <string.h> + #include <assert.h> #include "xcbext.h" #include ".h" @@ -906,6 +1038,10 @@ authorization from the authors. #endif + +/** + * @} + */ @@ -914,8 +1050,10 @@ authorization from the authors. + /** Opcode for . */ + #define - + @@ -958,7 +1096,7 @@ authorization from the authors. typedef - + ; @@ -974,8 +1112,14 @@ authorization from the authors. + /** + * @brief + **/ + typedef struct + + { @@ -983,7 +1127,7 @@ authorization from the authors. - ; + ; /**< */ } @@ -996,7 +1140,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1026,8 +1172,31 @@ authorization from the authors. - - + + +/***************************************************************************** + ** + ** + + + ** + + + + + ** @param + + + + + + + + ** @returns + ** + *****************************************************************************/ + + @@ -1045,6 +1214,7 @@ authorization from the authors. + /**< */ @@ -1159,7 +1329,7 @@ authorization from the authors. - + pad