2 * This file generated automatically from bigreq.xml by c_client.py.
12 #include <stddef.h> /* for offsetof() */
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
= {
25 /* ext */ &xcb_big_requests_id
,
26 /* opcode */ XCB_BIG_REQUESTS_ENABLE
,
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
);
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
= {
49 /* ext */ &xcb_big_requests_id
,
50 /* opcode */ XCB_BIG_REQUESTS_ENABLE
,
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
);
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
);