X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=0f7c025f4f5247a0bd8056134136b3e9763304c9;hb=16e7328b4a366b29d54696aafffe62c92e0e0130;hp=3ab28893e795da14c383ae29e434c7cf0050f954;hpb=ff7b6c9124e7caf26381cc7a10fba9eaf1875652;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 3ab2889..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. + + + + - - - - - - - - - - @@ -90,19 +85,129 @@ authorization from the authors. - + { "" } - - - return XCBGetExtensionData(c, &XCBId); - + + + + xcb + + + _randr + + + _screensaver + + + _xf86dri + + + _xfixes + + + _xvmc + + + _ + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + @@ -117,27 +222,26 @@ authorization from the authors. - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -159,14 +263,14 @@ authorization from the authors. - + - XCB - + @@ -211,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 - + - - + + - + - + - + @@ -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. - + @@ -567,16 +698,16 @@ authorization from the authors. - + - static const XCBProtocolRequest xcb_req = { + static const xcb_protocol_request_t xcb_req = { /* count */ , /* ext */ - &XCB - - Id + & + + _id 0 , @@ -586,36 +717,47 @@ authorization from the authors. }; - struct iovec xcb_parts[]; + struct iovec xcb_parts[]; xcb_ret; xcb_out; - - xcb_parts[0].iov_base = &xcb_out; - xcb_parts[0].iov_len = sizeof(xcb_out); + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; - xcb_parts[].iov_base = (void *) ; - xcb_parts[].iov_len = + xcb_parts[].iov_len = + * sizeof( - + + + char + + + + + ) ; + xcb_parts[].iov_base = 0; + xcb_parts[].iov_len = -xcb_parts[].iov_len & 3; - XCBSendRequest(c, &xcb_ret.sequence, - XCB_REQUEST_CHECKED + XCB_REQUEST_CHECKED 0 - , xcb_parts, &xcb_req); + , xcb_parts + 2, &xcb_req); return xcb_ret; @@ -639,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) @@ -695,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) + ( @@ -790,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; @@ -860,8 +989,16 @@ authorization from the authors. * Edit at your peril. */ - +/** + * @defgroup XCB__API XCB API + * @brief XCB Protocol Implementation. + + * @{ + **/ + + + #ifndef #define @@ -873,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" @@ -886,6 +1038,10 @@ authorization from the authors. #endif + +/** + * @} + */ @@ -894,8 +1050,10 @@ authorization from the authors. + /** Opcode for . */ + #define - + @@ -938,7 +1096,7 @@ authorization from the authors. typedef - + ; @@ -954,8 +1112,14 @@ authorization from the authors. + /** + * @brief + **/ + typedef struct + + { @@ -963,7 +1127,7 @@ authorization from the authors. - ; + ; /**< */ } @@ -976,7 +1140,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1006,8 +1172,31 @@ authorization from the authors. - - + + +/***************************************************************************** + ** + ** + + + ** + + + + + ** @param + + + + + + + + ** @returns + ** + *****************************************************************************/ + + @@ -1025,6 +1214,7 @@ authorization from the authors. + /**< */ @@ -1085,6 +1275,12 @@ authorization from the authors. ) + + (1 << + + ) + + @@ -1133,7 +1329,7 @@ authorization from the authors. - + pad