2 * This file generated automatically from composite.xml by c_client.py.
12 #include <stddef.h> /* for offsetof() */
14 #include "composite.h"
16 #define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
20 xcb_extension_t xcb_composite_id
= { "Composite", 0 };
22 xcb_composite_query_version_cookie_t
23 xcb_composite_query_version (xcb_connection_t
*c
/**< */,
24 uint32_t client_major_version
/**< */,
25 uint32_t client_minor_version
/**< */)
27 static const xcb_protocol_request_t xcb_req
= {
29 /* ext */ &xcb_composite_id
,
30 /* opcode */ XCB_COMPOSITE_QUERY_VERSION
,
34 struct iovec xcb_parts
[4];
35 xcb_composite_query_version_cookie_t xcb_ret
;
36 xcb_composite_query_version_request_t xcb_out
;
38 xcb_out
.client_major_version
= client_major_version
;
39 xcb_out
.client_minor_version
= client_minor_version
;
41 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
42 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
43 xcb_parts
[3].iov_base
= 0;
44 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
46 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
50 xcb_composite_query_version_cookie_t
51 xcb_composite_query_version_unchecked (xcb_connection_t
*c
/**< */,
52 uint32_t client_major_version
/**< */,
53 uint32_t client_minor_version
/**< */)
55 static const xcb_protocol_request_t xcb_req
= {
57 /* ext */ &xcb_composite_id
,
58 /* opcode */ XCB_COMPOSITE_QUERY_VERSION
,
62 struct iovec xcb_parts
[4];
63 xcb_composite_query_version_cookie_t xcb_ret
;
64 xcb_composite_query_version_request_t xcb_out
;
66 xcb_out
.client_major_version
= client_major_version
;
67 xcb_out
.client_minor_version
= client_minor_version
;
69 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
70 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
71 xcb_parts
[3].iov_base
= 0;
72 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
74 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
78 xcb_composite_query_version_reply_t
*
79 xcb_composite_query_version_reply (xcb_connection_t
*c
/**< */,
80 xcb_composite_query_version_cookie_t cookie
/**< */,
81 xcb_generic_error_t
**e
/**< */)
83 return (xcb_composite_query_version_reply_t
*) xcb_wait_for_reply(c
, cookie
.sequence
, e
);
87 xcb_composite_redirect_window_checked (xcb_connection_t
*c
/**< */,
88 xcb_window_t window
/**< */,
89 uint8_t update
/**< */)
91 static const xcb_protocol_request_t xcb_req
= {
93 /* ext */ &xcb_composite_id
,
94 /* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW
,
98 struct iovec xcb_parts
[4];
99 xcb_void_cookie_t xcb_ret
;
100 xcb_composite_redirect_window_request_t xcb_out
;
102 xcb_out
.window
= window
;
103 xcb_out
.update
= update
;
104 memset(xcb_out
.pad0
, 0, 3);
106 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
107 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
108 xcb_parts
[3].iov_base
= 0;
109 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
111 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
116 xcb_composite_redirect_window (xcb_connection_t
*c
/**< */,
117 xcb_window_t window
/**< */,
118 uint8_t update
/**< */)
120 static const xcb_protocol_request_t xcb_req
= {
122 /* ext */ &xcb_composite_id
,
123 /* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW
,
127 struct iovec xcb_parts
[4];
128 xcb_void_cookie_t xcb_ret
;
129 xcb_composite_redirect_window_request_t xcb_out
;
131 xcb_out
.window
= window
;
132 xcb_out
.update
= update
;
133 memset(xcb_out
.pad0
, 0, 3);
135 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
136 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
137 xcb_parts
[3].iov_base
= 0;
138 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
140 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
145 xcb_composite_redirect_subwindows_checked (xcb_connection_t
*c
/**< */,
146 xcb_window_t window
/**< */,
147 uint8_t update
/**< */)
149 static const xcb_protocol_request_t xcb_req
= {
151 /* ext */ &xcb_composite_id
,
152 /* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS
,
156 struct iovec xcb_parts
[4];
157 xcb_void_cookie_t xcb_ret
;
158 xcb_composite_redirect_subwindows_request_t xcb_out
;
160 xcb_out
.window
= window
;
161 xcb_out
.update
= update
;
162 memset(xcb_out
.pad0
, 0, 3);
164 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
165 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
166 xcb_parts
[3].iov_base
= 0;
167 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
169 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
174 xcb_composite_redirect_subwindows (xcb_connection_t
*c
/**< */,
175 xcb_window_t window
/**< */,
176 uint8_t update
/**< */)
178 static const xcb_protocol_request_t xcb_req
= {
180 /* ext */ &xcb_composite_id
,
181 /* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS
,
185 struct iovec xcb_parts
[4];
186 xcb_void_cookie_t xcb_ret
;
187 xcb_composite_redirect_subwindows_request_t xcb_out
;
189 xcb_out
.window
= window
;
190 xcb_out
.update
= update
;
191 memset(xcb_out
.pad0
, 0, 3);
193 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
194 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
195 xcb_parts
[3].iov_base
= 0;
196 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
198 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
203 xcb_composite_unredirect_window_checked (xcb_connection_t
*c
/**< */,
204 xcb_window_t window
/**< */,
205 uint8_t update
/**< */)
207 static const xcb_protocol_request_t xcb_req
= {
209 /* ext */ &xcb_composite_id
,
210 /* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW
,
214 struct iovec xcb_parts
[4];
215 xcb_void_cookie_t xcb_ret
;
216 xcb_composite_unredirect_window_request_t xcb_out
;
218 xcb_out
.window
= window
;
219 xcb_out
.update
= update
;
220 memset(xcb_out
.pad0
, 0, 3);
222 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
223 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
224 xcb_parts
[3].iov_base
= 0;
225 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
227 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
232 xcb_composite_unredirect_window (xcb_connection_t
*c
/**< */,
233 xcb_window_t window
/**< */,
234 uint8_t update
/**< */)
236 static const xcb_protocol_request_t xcb_req
= {
238 /* ext */ &xcb_composite_id
,
239 /* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW
,
243 struct iovec xcb_parts
[4];
244 xcb_void_cookie_t xcb_ret
;
245 xcb_composite_unredirect_window_request_t xcb_out
;
247 xcb_out
.window
= window
;
248 xcb_out
.update
= update
;
249 memset(xcb_out
.pad0
, 0, 3);
251 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
252 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
253 xcb_parts
[3].iov_base
= 0;
254 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
256 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
261 xcb_composite_unredirect_subwindows_checked (xcb_connection_t
*c
/**< */,
262 xcb_window_t window
/**< */,
263 uint8_t update
/**< */)
265 static const xcb_protocol_request_t xcb_req
= {
267 /* ext */ &xcb_composite_id
,
268 /* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS
,
272 struct iovec xcb_parts
[4];
273 xcb_void_cookie_t xcb_ret
;
274 xcb_composite_unredirect_subwindows_request_t xcb_out
;
276 xcb_out
.window
= window
;
277 xcb_out
.update
= update
;
278 memset(xcb_out
.pad0
, 0, 3);
280 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
281 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
282 xcb_parts
[3].iov_base
= 0;
283 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
285 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
290 xcb_composite_unredirect_subwindows (xcb_connection_t
*c
/**< */,
291 xcb_window_t window
/**< */,
292 uint8_t update
/**< */)
294 static const xcb_protocol_request_t xcb_req
= {
296 /* ext */ &xcb_composite_id
,
297 /* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS
,
301 struct iovec xcb_parts
[4];
302 xcb_void_cookie_t xcb_ret
;
303 xcb_composite_unredirect_subwindows_request_t xcb_out
;
305 xcb_out
.window
= window
;
306 xcb_out
.update
= update
;
307 memset(xcb_out
.pad0
, 0, 3);
309 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
310 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
311 xcb_parts
[3].iov_base
= 0;
312 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
314 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
319 xcb_composite_create_region_from_border_clip_checked (xcb_connection_t
*c
/**< */,
320 xcb_xfixes_region_t region
/**< */,
321 xcb_window_t window
/**< */)
323 static const xcb_protocol_request_t xcb_req
= {
325 /* ext */ &xcb_composite_id
,
326 /* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP
,
330 struct iovec xcb_parts
[4];
331 xcb_void_cookie_t xcb_ret
;
332 xcb_composite_create_region_from_border_clip_request_t xcb_out
;
334 xcb_out
.region
= region
;
335 xcb_out
.window
= window
;
337 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
338 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
339 xcb_parts
[3].iov_base
= 0;
340 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
342 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
347 xcb_composite_create_region_from_border_clip (xcb_connection_t
*c
/**< */,
348 xcb_xfixes_region_t region
/**< */,
349 xcb_window_t window
/**< */)
351 static const xcb_protocol_request_t xcb_req
= {
353 /* ext */ &xcb_composite_id
,
354 /* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP
,
358 struct iovec xcb_parts
[4];
359 xcb_void_cookie_t xcb_ret
;
360 xcb_composite_create_region_from_border_clip_request_t xcb_out
;
362 xcb_out
.region
= region
;
363 xcb_out
.window
= window
;
365 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
366 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
367 xcb_parts
[3].iov_base
= 0;
368 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
370 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
375 xcb_composite_name_window_pixmap_checked (xcb_connection_t
*c
/**< */,
376 xcb_window_t window
/**< */,
377 xcb_pixmap_t pixmap
/**< */)
379 static const xcb_protocol_request_t xcb_req
= {
381 /* ext */ &xcb_composite_id
,
382 /* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP
,
386 struct iovec xcb_parts
[4];
387 xcb_void_cookie_t xcb_ret
;
388 xcb_composite_name_window_pixmap_request_t xcb_out
;
390 xcb_out
.window
= window
;
391 xcb_out
.pixmap
= pixmap
;
393 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
394 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
395 xcb_parts
[3].iov_base
= 0;
396 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
398 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
403 xcb_composite_name_window_pixmap (xcb_connection_t
*c
/**< */,
404 xcb_window_t window
/**< */,
405 xcb_pixmap_t pixmap
/**< */)
407 static const xcb_protocol_request_t xcb_req
= {
409 /* ext */ &xcb_composite_id
,
410 /* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP
,
414 struct iovec xcb_parts
[4];
415 xcb_void_cookie_t xcb_ret
;
416 xcb_composite_name_window_pixmap_request_t xcb_out
;
418 xcb_out
.window
= window
;
419 xcb_out
.pixmap
= pixmap
;
421 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
422 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
423 xcb_parts
[3].iov_base
= 0;
424 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
426 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
430 xcb_composite_get_overlay_window_cookie_t
431 xcb_composite_get_overlay_window (xcb_connection_t
*c
/**< */,
432 xcb_window_t window
/**< */)
434 static const xcb_protocol_request_t xcb_req
= {
436 /* ext */ &xcb_composite_id
,
437 /* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW
,
441 struct iovec xcb_parts
[4];
442 xcb_composite_get_overlay_window_cookie_t xcb_ret
;
443 xcb_composite_get_overlay_window_request_t xcb_out
;
445 xcb_out
.window
= window
;
447 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
448 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
449 xcb_parts
[3].iov_base
= 0;
450 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
452 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
456 xcb_composite_get_overlay_window_cookie_t
457 xcb_composite_get_overlay_window_unchecked (xcb_connection_t
*c
/**< */,
458 xcb_window_t window
/**< */)
460 static const xcb_protocol_request_t xcb_req
= {
462 /* ext */ &xcb_composite_id
,
463 /* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW
,
467 struct iovec xcb_parts
[4];
468 xcb_composite_get_overlay_window_cookie_t xcb_ret
;
469 xcb_composite_get_overlay_window_request_t xcb_out
;
471 xcb_out
.window
= window
;
473 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
474 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
475 xcb_parts
[3].iov_base
= 0;
476 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
478 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);
482 xcb_composite_get_overlay_window_reply_t
*
483 xcb_composite_get_overlay_window_reply (xcb_connection_t
*c
/**< */,
484 xcb_composite_get_overlay_window_cookie_t cookie
/**< */,
485 xcb_generic_error_t
**e
/**< */)
487 return (xcb_composite_get_overlay_window_reply_t
*) xcb_wait_for_reply(c
, cookie
.sequence
, e
);
491 xcb_composite_release_overlay_window_checked (xcb_connection_t
*c
/**< */,
492 xcb_window_t window
/**< */)
494 static const xcb_protocol_request_t xcb_req
= {
496 /* ext */ &xcb_composite_id
,
497 /* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW
,
501 struct iovec xcb_parts
[4];
502 xcb_void_cookie_t xcb_ret
;
503 xcb_composite_release_overlay_window_request_t xcb_out
;
505 xcb_out
.window
= window
;
507 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
508 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
509 xcb_parts
[3].iov_base
= 0;
510 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
512 xcb_ret
.sequence
= xcb_send_request(c
, XCB_REQUEST_CHECKED
, xcb_parts
+ 2, &xcb_req
);
517 xcb_composite_release_overlay_window (xcb_connection_t
*c
/**< */,
518 xcb_window_t window
/**< */)
520 static const xcb_protocol_request_t xcb_req
= {
522 /* ext */ &xcb_composite_id
,
523 /* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW
,
527 struct iovec xcb_parts
[4];
528 xcb_void_cookie_t xcb_ret
;
529 xcb_composite_release_overlay_window_request_t xcb_out
;
531 xcb_out
.window
= window
;
533 xcb_parts
[2].iov_base
= (char *) &xcb_out
;
534 xcb_parts
[2].iov_len
= sizeof(xcb_out
);
535 xcb_parts
[3].iov_base
= 0;
536 xcb_parts
[3].iov_len
= -xcb_parts
[2].iov_len
& 3;
538 xcb_ret
.sequence
= xcb_send_request(c
, 0, xcb_parts
+ 2, &xcb_req
);