etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / bigreq.c
blob9926f61461b087f7f2a0b8e63f0daadafe62b8b8
1 /*
2 * This file generated automatically from bigreq.xml by c_client.py.
3 * Edit at your peril.
4 */
6 #ifdef HAVE_CONFIG_H
7 #include "config.h"
8 #endif
9 #include <stdlib.h>
10 #include <string.h>
11 #include <assert.h>
12 #include <stddef.h> /* for offsetof() */
13 #include "xcbext.h"
14 #include "bigreq.h"
16 #define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
18 xcb_extension_t xcb_big_requests_id = { "BIG-REQUESTS", 0 };
20 xcb_big_requests_enable_cookie_t
21 xcb_big_requests_enable (xcb_connection_t *c /**< */)
23 static const xcb_protocol_request_t xcb_req = {
24 /* count */ 2,
25 /* ext */ &xcb_big_requests_id,
26 /* opcode */ XCB_BIG_REQUESTS_ENABLE,
27 /* isvoid */ 0
30 struct iovec xcb_parts[4];
31 xcb_big_requests_enable_cookie_t xcb_ret;
32 xcb_big_requests_enable_request_t xcb_out;
35 xcb_parts[2].iov_base = (char *) &xcb_out;
36 xcb_parts[2].iov_len = sizeof(xcb_out);
37 xcb_parts[3].iov_base = 0;
38 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
40 xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
41 return xcb_ret;
44 xcb_big_requests_enable_cookie_t
45 xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */)
47 static const xcb_protocol_request_t xcb_req = {
48 /* count */ 2,
49 /* ext */ &xcb_big_requests_id,
50 /* opcode */ XCB_BIG_REQUESTS_ENABLE,
51 /* isvoid */ 0
54 struct iovec xcb_parts[4];
55 xcb_big_requests_enable_cookie_t xcb_ret;
56 xcb_big_requests_enable_request_t xcb_out;
59 xcb_parts[2].iov_base = (char *) &xcb_out;
60 xcb_parts[2].iov_len = sizeof(xcb_out);
61 xcb_parts[3].iov_base = 0;
62 xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
64 xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
65 return xcb_ret;
68 xcb_big_requests_enable_reply_t *
69 xcb_big_requests_enable_reply (xcb_connection_t *c /**< */,
70 xcb_big_requests_enable_cookie_t cookie /**< */,
71 xcb_generic_error_t **e /**< */)
73 return (xcb_big_requests_enable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);