X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fc-client.xsl;h=d5d2b35b423c78dd83d043152799738dc1b6c11a;hb=aedfa1fe1d91a10ccfe3ee6ac6b7a25885623dc6;hp=903895d78e23189bebd0c69559cc1b9b42e235d5;hpb=47ceed78612d48dcda62cc2686fc527d61abe38b;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/c-client.xsl b/src/c-client.xsl index 903895d..d5d2b35 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 +83,129 @@ authorization from the authors. - + { "" } - - - return XCBGetExtensionData(c, &XCBId); - + + + + xcb + + + _randr + + + _screensaver + + + _xf86dri + + + _xfixes + + + _xvmc + + + _ + + + + + + + + + _ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + char + + + + + + + + + + + + + + + + + + + + + + + + + + + + _ + + + + + + @@ -117,27 +220,26 @@ authorization from the authors. - - - - - - - - - - - - - - + + + + + + + + + + + + + @@ -159,14 +261,14 @@ authorization from the authors. - + - XCB - + @@ -211,126 +311,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 +464,23 @@ authorization from the authors. + _t + _t - - + + - + - + @@ -381,6 +499,7 @@ authorization from the authors. + _t @@ -391,7 +510,8 @@ authorization from the authors. + _t @@ -442,6 +562,7 @@ authorization from the authors. + _t @@ -449,13 +570,13 @@ authorization from the authors. - + - + @@ -471,6 +592,7 @@ authorization from the authors. + _t @@ -481,12 +603,18 @@ authorization from the authors. - + + + + const + + _t + * @@ -501,6 +629,7 @@ authorization from the authors. + _t @@ -508,7 +637,7 @@ authorization from the authors. - + @@ -567,16 +696,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,7 +715,7 @@ authorization from the authors. }; - struct iovec xcb_parts[]; + struct iovec xcb_parts[]; xcb_ret; xcb_out; @@ -596,22 +725,37 @@ authorization from the authors. mode="assign" /> - 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_parts, &xcb_req); + xcb_ret.sequence = xcb_send_request(c, + XCB_REQUEST_CHECKED + 0 + , xcb_parts + 2, &xcb_req); return xcb_ret; @@ -636,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) @@ -691,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) + ( @@ -786,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; @@ -856,8 +979,16 @@ authorization from the authors. * Edit at your peril. */ - +/** + * @defgroup XCB__API XCB API + * @brief XCB Protocol Implementation. + + * @{ + **/ + + + #ifndef #define @@ -869,6 +1000,18 @@ authorization from the authors. + + + + #define XCB__MAJOR_VERSION + + #define XCB__MINOR_VERSION + + + + + + #include <assert.h> @@ -882,6 +1025,10 @@ authorization from the authors. #endif + +/** + * @} + */ @@ -890,8 +1037,10 @@ authorization from the authors. + /** Opcode for . */ + #define - + @@ -934,7 +1083,7 @@ authorization from the authors. typedef - + ; @@ -950,8 +1099,14 @@ authorization from the authors. + /** + * @brief + **/ + typedef struct + + { @@ -959,7 +1114,7 @@ authorization from the authors. - ; + ; /**< */ } @@ -972,7 +1127,9 @@ authorization from the authors. - typedef enum { + typedef enum + + { , @@ -1002,8 +1159,31 @@ authorization from the authors. - - + + +/***************************************************************************** + ** + ** + + + ** + + + + + ** @param + + + + + + + + ** @returns + ** + *****************************************************************************/ + + @@ -1021,6 +1201,7 @@ authorization from the authors. + /**< */ @@ -1081,6 +1262,12 @@ authorization from the authors. ) + + (1 << + + ) + + @@ -1129,7 +1316,7 @@ authorization from the authors. - + pad