XCB 1.16

dbe.h
1/*
2 * This file generated automatically from dbe.xml by c_client.py.
3 * Edit at your peril.
4 */
5
12#ifndef __DBE_H
13#define __DBE_H
14
15#include "xcb.h"
16#include "xproto.h"
17
18#ifdef __cplusplus
19 extern "C" {
20#endif
21
22#define XCB_DBE_MAJOR_VERSION 1
23#define XCB_DBE_MINOR_VERSION 0
24
25 extern xcb_extension_t xcb_dbe_id;
26
27 typedef uint32_t xcb_dbe_back_buffer_t;
28
32 typedef struct xcb_dbe_back_buffer_iterator_t {
33 xcb_dbe_back_buffer_t *data;
34 int rem;
35 int index;
36} xcb_dbe_back_buffer_iterator_t;
37
38 typedef enum xcb_dbe_swap_action_t {
39 XCB_DBE_SWAP_ACTION_UNDEFINED = 0,
42 XCB_DBE_SWAP_ACTION_BACKGROUND = 1,
45 XCB_DBE_SWAP_ACTION_UNTOUCHED = 2,
48 XCB_DBE_SWAP_ACTION_COPIED = 3
51} xcb_dbe_swap_action_t;
52
56 typedef struct xcb_dbe_swap_info_t {
57 xcb_window_t window;
58 uint8_t swap_action;
59 uint8_t pad0[3];
60} xcb_dbe_swap_info_t;
61
65 typedef struct xcb_dbe_swap_info_iterator_t {
66 xcb_dbe_swap_info_t *data;
67 int rem;
68 int index;
69} xcb_dbe_swap_info_iterator_t;
70
74 typedef struct xcb_dbe_buffer_attributes_t {
75 xcb_window_t window;
76} xcb_dbe_buffer_attributes_t;
77
81 typedef struct xcb_dbe_buffer_attributes_iterator_t {
82 xcb_dbe_buffer_attributes_t *data;
83 int rem;
84 int index;
85} xcb_dbe_buffer_attributes_iterator_t;
86
90 typedef struct xcb_dbe_visual_info_t {
91 xcb_visualid_t visual_id;
92 uint8_t depth;
93 uint8_t perf_level;
94 uint8_t pad0[2];
95} xcb_dbe_visual_info_t;
96
100 typedef struct xcb_dbe_visual_info_iterator_t {
101 xcb_dbe_visual_info_t *data;
102 int rem;
103 int index;
104} xcb_dbe_visual_info_iterator_t;
105
109 typedef struct xcb_dbe_visual_infos_t {
110 uint32_t n_infos;
111} xcb_dbe_visual_infos_t;
112
116 typedef struct xcb_dbe_visual_infos_iterator_t {
117 xcb_dbe_visual_infos_t *data;
118 int rem;
119 int index;
120} xcb_dbe_visual_infos_iterator_t;
121
123#define XCB_DBE_BAD_BUFFER 0
124
128 typedef struct xcb_dbe_bad_buffer_error_t {
129 uint8_t response_type;
130 uint8_t error_code;
131 uint16_t sequence;
132 xcb_dbe_back_buffer_t bad_buffer;
133 uint16_t minor_opcode;
134 uint8_t major_opcode;
135} xcb_dbe_bad_buffer_error_t;
136
140 typedef struct xcb_dbe_query_version_cookie_t {
141 unsigned int sequence;
142} xcb_dbe_query_version_cookie_t;
143
145#define XCB_DBE_QUERY_VERSION 0
146
150 typedef struct xcb_dbe_query_version_request_t {
151 uint8_t major_opcode;
152 uint8_t minor_opcode;
153 uint16_t length;
154 uint8_t major_version;
155 uint8_t minor_version;
156 uint8_t pad0[2];
157} xcb_dbe_query_version_request_t;
158
162 typedef struct xcb_dbe_query_version_reply_t {
163 uint8_t response_type;
164 uint8_t pad0;
165 uint16_t sequence;
166 uint32_t length;
167 uint8_t major_version;
168 uint8_t minor_version;
169 uint8_t pad1[22];
170} xcb_dbe_query_version_reply_t;
171
173#define XCB_DBE_ALLOCATE_BACK_BUFFER 1
174
178 typedef struct xcb_dbe_allocate_back_buffer_request_t {
179 uint8_t major_opcode;
180 uint8_t minor_opcode;
181 uint16_t length;
182 xcb_window_t window;
183 xcb_dbe_back_buffer_t buffer;
184 uint8_t swap_action;
185 uint8_t pad0[3];
186} xcb_dbe_allocate_back_buffer_request_t;
187
189#define XCB_DBE_DEALLOCATE_BACK_BUFFER 2
190
194 typedef struct xcb_dbe_deallocate_back_buffer_request_t {
195 uint8_t major_opcode;
196 uint8_t minor_opcode;
197 uint16_t length;
198 xcb_dbe_back_buffer_t buffer;
199} xcb_dbe_deallocate_back_buffer_request_t;
200
202#define XCB_DBE_SWAP_BUFFERS 3
203
207 typedef struct xcb_dbe_swap_buffers_request_t {
208 uint8_t major_opcode;
209 uint8_t minor_opcode;
210 uint16_t length;
211 uint32_t n_actions;
212} xcb_dbe_swap_buffers_request_t;
213
215#define XCB_DBE_BEGIN_IDIOM 4
216
220 typedef struct xcb_dbe_begin_idiom_request_t {
221 uint8_t major_opcode;
222 uint8_t minor_opcode;
223 uint16_t length;
224} xcb_dbe_begin_idiom_request_t;
225
227#define XCB_DBE_END_IDIOM 5
228
232 typedef struct xcb_dbe_end_idiom_request_t {
233 uint8_t major_opcode;
234 uint8_t minor_opcode;
235 uint16_t length;
236} xcb_dbe_end_idiom_request_t;
237
241 typedef struct xcb_dbe_get_visual_info_cookie_t {
242 unsigned int sequence;
243} xcb_dbe_get_visual_info_cookie_t;
244
246#define XCB_DBE_GET_VISUAL_INFO 6
247
251 typedef struct xcb_dbe_get_visual_info_request_t {
252 uint8_t major_opcode;
253 uint8_t minor_opcode;
254 uint16_t length;
255 uint32_t n_drawables;
256} xcb_dbe_get_visual_info_request_t;
257
261 typedef struct xcb_dbe_get_visual_info_reply_t {
262 uint8_t response_type;
263 uint8_t pad0;
264 uint16_t sequence;
265 uint32_t length;
266 uint32_t n_supported_visuals;
267 uint8_t pad1[20];
268} xcb_dbe_get_visual_info_reply_t;
269
273 typedef struct xcb_dbe_get_back_buffer_attributes_cookie_t {
274 unsigned int sequence;
275} xcb_dbe_get_back_buffer_attributes_cookie_t;
276
278#define XCB_DBE_GET_BACK_BUFFER_ATTRIBUTES 7
279
283 typedef struct xcb_dbe_get_back_buffer_attributes_request_t {
284 uint8_t major_opcode;
285 uint8_t minor_opcode;
286 uint16_t length;
287 xcb_dbe_back_buffer_t buffer;
288} xcb_dbe_get_back_buffer_attributes_request_t;
289
293 typedef struct xcb_dbe_get_back_buffer_attributes_reply_t {
294 uint8_t response_type;
295 uint8_t pad0;
296 uint16_t sequence;
297 uint32_t length;
298 xcb_dbe_buffer_attributes_t attributes;
299 uint8_t pad1[20];
300} xcb_dbe_get_back_buffer_attributes_reply_t;
301
310 void
311 xcb_dbe_back_buffer_next (xcb_dbe_back_buffer_iterator_t *i);
312
322 xcb_generic_iterator_t
323 xcb_dbe_back_buffer_end (xcb_dbe_back_buffer_iterator_t i);
324
333 void
334 xcb_dbe_swap_info_next (xcb_dbe_swap_info_iterator_t *i);
335
345 xcb_generic_iterator_t
346 xcb_dbe_swap_info_end (xcb_dbe_swap_info_iterator_t i);
347
356 void
357 xcb_dbe_buffer_attributes_next (xcb_dbe_buffer_attributes_iterator_t *i);
358
368 xcb_generic_iterator_t
369 xcb_dbe_buffer_attributes_end (xcb_dbe_buffer_attributes_iterator_t i);
370
379 void
380 xcb_dbe_visual_info_next (xcb_dbe_visual_info_iterator_t *i);
381
391 xcb_generic_iterator_t
392 xcb_dbe_visual_info_end (xcb_dbe_visual_info_iterator_t i);
393
394 int
395xcb_dbe_visual_infos_sizeof (const void *_buffer);
396
397 xcb_dbe_visual_info_t *
398xcb_dbe_visual_infos_infos (const xcb_dbe_visual_infos_t *R);
399
400 int
401xcb_dbe_visual_infos_infos_length (const xcb_dbe_visual_infos_t *R);
402
403 xcb_dbe_visual_info_iterator_t
404xcb_dbe_visual_infos_infos_iterator (const xcb_dbe_visual_infos_t *R);
405
414 void
415 xcb_dbe_visual_infos_next (xcb_dbe_visual_infos_iterator_t *i);
416
426 xcb_generic_iterator_t
427 xcb_dbe_visual_infos_end (xcb_dbe_visual_infos_iterator_t i);
428
440 xcb_dbe_query_version_cookie_t
441 xcb_dbe_query_version (xcb_connection_t *c,
442 uint8_t major_version,
443 uint8_t minor_version);
444
459 xcb_dbe_query_version_cookie_t
460 xcb_dbe_query_version_unchecked (xcb_connection_t *c,
461 uint8_t major_version,
462 uint8_t minor_version);
463
478 xcb_dbe_query_version_reply_t *
479 xcb_dbe_query_version_reply (xcb_connection_t *c,
480 xcb_dbe_query_version_cookie_t cookie ,
481 xcb_generic_error_t **e);
482
498 xcb_void_cookie_t
499 xcb_dbe_allocate_back_buffer_checked (xcb_connection_t *c,
500 xcb_window_t window,
501 xcb_dbe_back_buffer_t buffer,
502 uint8_t swap_action);
503
516 xcb_void_cookie_t
517 xcb_dbe_allocate_back_buffer (xcb_connection_t *c,
518 xcb_window_t window,
519 xcb_dbe_back_buffer_t buffer,
520 uint8_t swap_action);
521
535 xcb_void_cookie_t
536 xcb_dbe_deallocate_back_buffer_checked (xcb_connection_t *c,
537 xcb_dbe_back_buffer_t buffer);
538
549 xcb_void_cookie_t
550 xcb_dbe_deallocate_back_buffer (xcb_connection_t *c,
551 xcb_dbe_back_buffer_t buffer);
552
553 int
554xcb_dbe_swap_buffers_sizeof (const void *_buffer);
555
570 xcb_void_cookie_t
571 xcb_dbe_swap_buffers_checked (xcb_connection_t *c,
572 uint32_t n_actions,
573 const xcb_dbe_swap_info_t *actions);
574
586 xcb_void_cookie_t
587 xcb_dbe_swap_buffers (xcb_connection_t *c,
588 uint32_t n_actions,
589 const xcb_dbe_swap_info_t *actions);
590
591 xcb_dbe_swap_info_t *
592xcb_dbe_swap_buffers_actions (const xcb_dbe_swap_buffers_request_t *R);
593
594 int
595xcb_dbe_swap_buffers_actions_length (const xcb_dbe_swap_buffers_request_t *R);
596
597 xcb_dbe_swap_info_iterator_t
598xcb_dbe_swap_buffers_actions_iterator (const xcb_dbe_swap_buffers_request_t *R);
599
612 xcb_void_cookie_t
613 xcb_dbe_begin_idiom_checked (xcb_connection_t *c);
614
624 xcb_void_cookie_t
625 xcb_dbe_begin_idiom (xcb_connection_t *c);
626
639 xcb_void_cookie_t
640 xcb_dbe_end_idiom_checked (xcb_connection_t *c);
641
651 xcb_void_cookie_t
652 xcb_dbe_end_idiom (xcb_connection_t *c);
653
654 int
655xcb_dbe_get_visual_info_sizeof (const void *_buffer);
656
666 xcb_dbe_get_visual_info_cookie_t
667 xcb_dbe_get_visual_info (xcb_connection_t *c,
668 uint32_t n_drawables,
669 const xcb_drawable_t *drawables);
670
683 xcb_dbe_get_visual_info_cookie_t
684 xcb_dbe_get_visual_info_unchecked (xcb_connection_t *c,
685 uint32_t n_drawables,
686 const xcb_drawable_t *drawables);
687
688 int
689xcb_dbe_get_visual_info_supported_visuals_length (const xcb_dbe_get_visual_info_reply_t *R);
690
691 xcb_dbe_visual_infos_iterator_t
692xcb_dbe_get_visual_info_supported_visuals_iterator (const xcb_dbe_get_visual_info_reply_t *R);
693
708 xcb_dbe_get_visual_info_reply_t *
709 xcb_dbe_get_visual_info_reply (xcb_connection_t *c,
710 xcb_dbe_get_visual_info_cookie_t cookie ,
711 xcb_generic_error_t **e);
712
723 xcb_dbe_get_back_buffer_attributes_cookie_t
724 xcb_dbe_get_back_buffer_attributes (xcb_connection_t *c,
725 xcb_dbe_back_buffer_t buffer);
726
740 xcb_dbe_get_back_buffer_attributes_cookie_t
741 xcb_dbe_get_back_buffer_attributes_unchecked (xcb_connection_t *c,
742 xcb_dbe_back_buffer_t buffer);
743
758 xcb_dbe_get_back_buffer_attributes_reply_t *
759 xcb_dbe_get_back_buffer_attributes_reply (xcb_connection_t *c,
760 xcb_dbe_get_back_buffer_attributes_cookie_t cookie ,
761 xcb_generic_error_t **e);
762
763
764#ifdef __cplusplus
765}
766#endif
767
768#endif
769
xcb_dbe_buffer_attributes_end
xcb_generic_iterator_t xcb_dbe_buffer_attributes_end(xcb_dbe_buffer_attributes_iterator_t i)
Definition dbe.c:66
xcb_dbe_deallocate_back_buffer
xcb_void_cookie_t xcb_dbe_deallocate_back_buffer(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Deallocates a back buffer.
Definition dbe.c:324
xcb_dbe_get_visual_info_unchecked
xcb_dbe_get_visual_info_cookie_t xcb_dbe_get_visual_info_unchecked(xcb_connection_t *c, uint32_t n_drawables, const xcb_drawable_t *drawables)
Requests visuals that support double buffering.
Definition dbe.c:626
xcb_dbe_swap_action_t
xcb_dbe_swap_action_t
Definition dbe.h:38
xcb_dbe_begin_idiom_checked
xcb_void_cookie_t xcb_dbe_begin_idiom_checked(xcb_connection_t *c)
Begins a logical swap block.
Definition dbe.c:467
xcb_dbe_visual_info_next
void xcb_dbe_visual_info_next(xcb_dbe_visual_info_iterator_t *i)
Definition dbe.c:76
xcb_dbe_allocate_back_buffer
xcb_void_cookie_t xcb_dbe_allocate_back_buffer(xcb_connection_t *c, xcb_window_t window, xcb_dbe_back_buffer_t buffer, uint8_t swap_action)
Allocates a back buffer.
Definition dbe.c:267
xcb_dbe_get_back_buffer_attributes_unchecked
xcb_dbe_get_back_buffer_attributes_cookie_t xcb_dbe_get_back_buffer_attributes_unchecked(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Gets back buffer attributes.
Definition dbe.c:708
xcb_dbe_end_idiom_checked
xcb_void_cookie_t xcb_dbe_end_idiom_checked(xcb_connection_t *c)
Ends a logical swap block.
Definition dbe.c:515
xcb_dbe_swap_info_next
void xcb_dbe_swap_info_next(xcb_dbe_swap_info_iterator_t *i)
Definition dbe.c:40
xcb_dbe_visual_infos_next
void xcb_dbe_visual_infos_next(xcb_dbe_visual_infos_iterator_t *i)
Definition dbe.c:147
xcb_dbe_get_visual_info_reply
xcb_dbe_get_visual_info_reply_t * xcb_dbe_get_visual_info_reply(xcb_connection_t *c, xcb_dbe_get_visual_info_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:674
xcb_dbe_deallocate_back_buffer_checked
xcb_void_cookie_t xcb_dbe_deallocate_back_buffer_checked(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Deallocates a back buffer.
Definition dbe.c:298
xcb_dbe_buffer_attributes_next
void xcb_dbe_buffer_attributes_next(xcb_dbe_buffer_attributes_iterator_t *i)
Definition dbe.c:58
xcb_dbe_swap_buffers_checked
xcb_void_cookie_t xcb_dbe_swap_buffers_checked(xcb_connection_t *c, uint32_t n_actions, const xcb_dbe_swap_info_t *actions)
Swaps front and back buffers.
Definition dbe.c:381
xcb_dbe_allocate_back_buffer_checked
xcb_void_cookie_t xcb_dbe_allocate_back_buffer_checked(xcb_connection_t *c, xcb_window_t window, xcb_dbe_back_buffer_t buffer, uint8_t swap_action)
Allocates a back buffer.
Definition dbe.c:236
xcb_dbe_get_visual_info
xcb_dbe_get_visual_info_cookie_t xcb_dbe_get_visual_info(xcb_connection_t *c, uint32_t n_drawables, const xcb_drawable_t *drawables)
Requests visuals that support double buffering.
Definition dbe.c:594
xcb_dbe_get_back_buffer_attributes
xcb_dbe_get_back_buffer_attributes_cookie_t xcb_dbe_get_back_buffer_attributes(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Gets back buffer attributes.
Definition dbe.c:682
xcb_dbe_visual_info_end
xcb_generic_iterator_t xcb_dbe_visual_info_end(xcb_dbe_visual_info_iterator_t i)
Definition dbe.c:84
xcb_dbe_back_buffer_end
xcb_generic_iterator_t xcb_dbe_back_buffer_end(xcb_dbe_back_buffer_iterator_t i)
Definition dbe.c:30
xcb_dbe_visual_infos_end
xcb_generic_iterator_t xcb_dbe_visual_infos_end(xcb_dbe_visual_infos_iterator_t i)
Definition dbe.c:158
xcb_dbe_swap_info_end
xcb_generic_iterator_t xcb_dbe_swap_info_end(xcb_dbe_swap_info_iterator_t i)
Definition dbe.c:48
xcb_dbe_swap_buffers
xcb_void_cookie_t xcb_dbe_swap_buffers(xcb_connection_t *c, uint32_t n_actions, const xcb_dbe_swap_info_t *actions)
Swaps front and back buffers.
Definition dbe.c:413
xcb_dbe_query_version
xcb_dbe_query_version_cookie_t xcb_dbe_query_version(xcb_connection_t *c, uint8_t major_version, uint8_t minor_version)
Queries the version of this extension.
Definition dbe.c:170
xcb_dbe_begin_idiom
xcb_void_cookie_t xcb_dbe_begin_idiom(xcb_connection_t *c)
Begins a logical swap block.
Definition dbe.c:491
xcb_dbe_query_version_unchecked
xcb_dbe_query_version_cookie_t xcb_dbe_query_version_unchecked(xcb_connection_t *c, uint8_t major_version, uint8_t minor_version)
Queries the version of this extension.
Definition dbe.c:199
xcb_dbe_query_version_reply
xcb_dbe_query_version_reply_t * xcb_dbe_query_version_reply(xcb_connection_t *c, xcb_dbe_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:228
xcb_dbe_back_buffer_next
void xcb_dbe_back_buffer_next(xcb_dbe_back_buffer_iterator_t *i)
Definition dbe.c:22
xcb_dbe_end_idiom
xcb_void_cookie_t xcb_dbe_end_idiom(xcb_connection_t *c)
Ends a logical swap block.
Definition dbe.c:539
xcb_dbe_get_back_buffer_attributes_reply
xcb_dbe_get_back_buffer_attributes_reply_t * xcb_dbe_get_back_buffer_attributes_reply(xcb_connection_t *c, xcb_dbe_get_back_buffer_attributes_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:734
XCB_DBE_SWAP_ACTION_UNDEFINED
@ XCB_DBE_SWAP_ACTION_UNDEFINED
Definition dbe.h:39
XCB_DBE_SWAP_ACTION_COPIED
@ XCB_DBE_SWAP_ACTION_COPIED
Definition dbe.h:48
XCB_DBE_SWAP_ACTION_BACKGROUND
@ XCB_DBE_SWAP_ACTION_BACKGROUND
Definition dbe.h:42
XCB_DBE_SWAP_ACTION_UNTOUCHED
@ XCB_DBE_SWAP_ACTION_UNTOUCHED
Definition dbe.h:45
xcb_connection_t
Definition xcbint.h:208
xcb_dbe_allocate_back_buffer_request_t
xcb_dbe_allocate_back_buffer_request_t
Definition dbe.h:178
xcb_dbe_back_buffer_iterator_t
xcb_dbe_back_buffer_iterator_t
Definition dbe.h:32
xcb_dbe_bad_buffer_error_t
xcb_dbe_bad_buffer_error_t
Definition dbe.h:128
xcb_dbe_begin_idiom_request_t
xcb_dbe_begin_idiom_request_t
Definition dbe.h:220
xcb_dbe_buffer_attributes_iterator_t
xcb_dbe_buffer_attributes_iterator_t
Definition dbe.h:81
xcb_dbe_buffer_attributes_t
xcb_dbe_buffer_attributes_t
Definition dbe.h:74
xcb_dbe_deallocate_back_buffer_request_t
xcb_dbe_deallocate_back_buffer_request_t
Definition dbe.h:194
xcb_dbe_end_idiom_request_t
xcb_dbe_end_idiom_request_t
Definition dbe.h:232
xcb_dbe_get_back_buffer_attributes_cookie_t
xcb_dbe_get_back_buffer_attributes_cookie_t
Definition dbe.h:273
xcb_dbe_get_back_buffer_attributes_reply_t
xcb_dbe_get_back_buffer_attributes_reply_t
Definition dbe.h:293
xcb_dbe_get_back_buffer_attributes_request_t
xcb_dbe_get_back_buffer_attributes_request_t
Definition dbe.h:283
xcb_dbe_get_visual_info_cookie_t
xcb_dbe_get_visual_info_cookie_t
Definition dbe.h:241
xcb_dbe_get_visual_info_reply_t
xcb_dbe_get_visual_info_reply_t
Definition dbe.h:261
xcb_dbe_get_visual_info_request_t
xcb_dbe_get_visual_info_request_t
Definition dbe.h:251
xcb_dbe_query_version_cookie_t
xcb_dbe_query_version_cookie_t
Definition dbe.h:140
xcb_dbe_query_version_reply_t
xcb_dbe_query_version_reply_t
Definition dbe.h:162
xcb_dbe_query_version_request_t
xcb_dbe_query_version_request_t
Definition dbe.h:150
xcb_dbe_swap_buffers_request_t
xcb_dbe_swap_buffers_request_t
Definition dbe.h:207
xcb_dbe_swap_info_iterator_t
xcb_dbe_swap_info_iterator_t
Definition dbe.h:65
xcb_dbe_swap_info_t
xcb_dbe_swap_info_t
Definition dbe.h:56
xcb_dbe_visual_info_iterator_t
xcb_dbe_visual_info_iterator_t
Definition dbe.h:100
xcb_dbe_visual_info_t
xcb_dbe_visual_info_t
Definition dbe.h:90
xcb_dbe_visual_infos_iterator_t
xcb_dbe_visual_infos_iterator_t
Definition dbe.h:116
xcb_dbe_visual_infos_t
xcb_dbe_visual_infos_t
Definition dbe.h:109
xcb_extension_t
Definition xcbext.h:39
xcb_generic_error_t
Generic error.
Definition xcb.h:186
xcb_generic_iterator_t
Generic iterator.
Definition xcb.h:118
xcb_void_cookie_t
Generic cookie.
Definition xcb.h:203
xcb.h