summaryrefslogtreecommitdiff
path: root/lib/libxcb/src/bigreq.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 16:10:19 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 16:10:19 +0000
commit6ad57cc3dd10fb38ca79088a6d670422a5f002bc (patch)
tree9562292e56020470a6c282129c8ccc8929ee1e11 /lib/libxcb/src/bigreq.c
parentfd21f434d52f5831971a19ecf3160407b0283d16 (diff)
Xenocara build infrastructure for libxcb.
This includes a set of pre-generated sources files in src/ so that python and xslt are not needed to build.
Diffstat (limited to 'lib/libxcb/src/bigreq.c')
-rw-r--r--lib/libxcb/src/bigreq.c98
1 files changed, 98 insertions, 0 deletions
diff --git a/lib/libxcb/src/bigreq.c b/lib/libxcb/src/bigreq.c
new file mode 100644
index 000000000..85ef5c681
--- /dev/null
+++ b/lib/libxcb/src/bigreq.c
@@ -0,0 +1,98 @@
+/*
+ * This file generated automatically from bigreq.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+#include <string.h>
+#include <assert.h>
+#include "xcbext.h"
+#include "bigreq.h"
+
+xcb_extension_t xcb_big_requests_id = { "BIG-REQUESTS", 0 };
+
+
+/*****************************************************************************
+ **
+ ** xcb_big_requests_enable_cookie_t xcb_big_requests_enable
+ **
+ ** @param xcb_connection_t *c
+ ** @returns xcb_big_requests_enable_cookie_t
+ **
+ *****************************************************************************/
+
+xcb_big_requests_enable_cookie_t
+xcb_big_requests_enable (xcb_connection_t *c /**< */)
+{
+ static const xcb_protocol_request_t xcb_req = {
+ /* count */ 2,
+ /* ext */ &xcb_big_requests_id,
+ /* opcode */ XCB_BIG_REQUESTS_ENABLE,
+ /* isvoid */ 0
+ };
+
+ struct iovec xcb_parts[4];
+ xcb_big_requests_enable_cookie_t xcb_ret;
+ xcb_big_requests_enable_request_t 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_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
+ return xcb_ret;
+}
+
+
+/*****************************************************************************
+ **
+ ** xcb_big_requests_enable_cookie_t xcb_big_requests_enable_unchecked
+ **
+ ** @param xcb_connection_t *c
+ ** @returns xcb_big_requests_enable_cookie_t
+ **
+ *****************************************************************************/
+
+xcb_big_requests_enable_cookie_t
+xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */)
+{
+ static const xcb_protocol_request_t xcb_req = {
+ /* count */ 2,
+ /* ext */ &xcb_big_requests_id,
+ /* opcode */ XCB_BIG_REQUESTS_ENABLE,
+ /* isvoid */ 0
+ };
+
+ struct iovec xcb_parts[4];
+ xcb_big_requests_enable_cookie_t xcb_ret;
+ xcb_big_requests_enable_request_t 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_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
+ return xcb_ret;
+}
+
+
+/*****************************************************************************
+ **
+ ** xcb_big_requests_enable_reply_t * xcb_big_requests_enable_reply
+ **
+ ** @param xcb_connection_t *c
+ ** @param xcb_big_requests_enable_cookie_t cookie
+ ** @param xcb_generic_error_t **e
+ ** @returns xcb_big_requests_enable_reply_t *
+ **
+ *****************************************************************************/
+
+xcb_big_requests_enable_reply_t *
+xcb_big_requests_enable_reply (xcb_connection_t *c /**< */,
+ xcb_big_requests_enable_cookie_t cookie /**< */,
+ xcb_generic_error_t **e /**< */)
+{
+ return (xcb_big_requests_enable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
+}
+