X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=5df5762c89cf51a7bc81e42b2c4479d7b16299fb;hb=3d9bb02012b35fd51ed3352d0bd974a0f6e439d8;hp=8a2d82e34c1d7abffcc633bf8c351e64171ac5fd;hpb=75fead5b868a0dfdc9e6fd5ef0dd37eb71761312;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 8a2d82e..5df5762 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 - + @@ -201,126 +313,142 @@ 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 - + - - + + - + - + - + @@ -338,21 +466,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -371,6 +501,7 @@ authorization from the authors. + _t @@ -381,7 +512,8 @@ authorization from the authors. + _t @@ -432,6 +564,7 @@ authorization from the authors. + _t @@ -439,13 +572,13 @@ authorization from the authors. - + - + @@ -457,10 +590,11 @@ authorization from the authors. - + + _t @@ -471,12 +605,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -491,6 +631,7 @@ authorization from the authors. + _t @@ -498,7 +639,7 @@ authorization from the authors. - + @@ -559,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 , @@ -581,7 +722,11 @@ authorization from the authors. xcb_out; - + xcb_out.pad0 = 0; + + @@ -595,19 +740,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; @@ -633,51 +785,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) @@ -689,52 +829,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) + ( @@ -784,32 +923,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; @@ -854,8 +993,16 @@ authorization from the authors. * Edit at your peril. */ - +/** + * @defgroup XCB__API XCB API + * @brief XCB Protocol Implementation. + + * @{ + **/ + + + #ifndef #define @@ -867,8 +1014,23 @@ authorization from the authors. + + + + #define XCB__MAJOR_VERSION + + #define XCB__MINOR_VERSION + + + + + + - + + +#include <string.h> + #include <assert.h> #include "xcbext.h" #include ".h" @@ -880,6 +1042,10 @@ authorization from the authors. #endif + +/** + * @} + */ @@ -888,8 +1054,10 @@ authorization from the authors. + /** Opcode for . */ + #define - + @@ -932,7 +1100,7 @@ authorization from the authors. typedef - + ; @@ -948,8 +1116,14 @@ authorization from the authors. + /** + * @brief + **/ + typedef struct + + { @@ -957,7 +1131,7 @@ authorization from the authors. - ; + ; /**< */ } @@ -970,7 +1144,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1000,8 +1176,31 @@ authorization from the authors. - - + + +/***************************************************************************** + ** + ** + + + ** + + + + + ** @param + + + + + + + + ** @returns + ** + *****************************************************************************/ + + @@ -1019,6 +1218,7 @@ authorization from the authors. + /**< */ @@ -1133,7 +1333,7 @@ authorization from the authors. - + pad