XCB 1.16

dri2.h
1/*
2 * This file generated automatically from dri2.xml by c_client.py.
3 * Edit at your peril.
4 */
5
12#ifndef __DRI2_H
13#define __DRI2_H
14
15#include "xcb.h"
16#include "xproto.h"
17
18#ifdef __cplusplus
19 extern "C" {
20#endif
21
22#define XCB_DRI2_MAJOR_VERSION 1
23#define XCB_DRI2_MINOR_VERSION 4
24
25 extern xcb_extension_t xcb_dri2_id;
26
27 typedef enum xcb_dri2_attachment_t {
28 XCB_DRI2_ATTACHMENT_BUFFER_FRONT_LEFT = 0,
29 XCB_DRI2_ATTACHMENT_BUFFER_BACK_LEFT = 1,
30 XCB_DRI2_ATTACHMENT_BUFFER_FRONT_RIGHT = 2,
31 XCB_DRI2_ATTACHMENT_BUFFER_BACK_RIGHT = 3,
32 XCB_DRI2_ATTACHMENT_BUFFER_DEPTH = 4,
33 XCB_DRI2_ATTACHMENT_BUFFER_STENCIL = 5,
34 XCB_DRI2_ATTACHMENT_BUFFER_ACCUM = 6,
35 XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_LEFT = 7,
36 XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_RIGHT = 8,
37 XCB_DRI2_ATTACHMENT_BUFFER_DEPTH_STENCIL = 9,
38 XCB_DRI2_ATTACHMENT_BUFFER_HIZ = 10
39} xcb_dri2_attachment_t;
40
41 typedef enum xcb_dri2_driver_type_t {
42 XCB_DRI2_DRIVER_TYPE_DRI = 0,
43 XCB_DRI2_DRIVER_TYPE_VDPAU = 1
44} xcb_dri2_driver_type_t;
45
46 typedef enum xcb_dri2_event_type_t {
47 XCB_DRI2_EVENT_TYPE_EXCHANGE_COMPLETE = 1,
48 XCB_DRI2_EVENT_TYPE_BLIT_COMPLETE = 2,
49 XCB_DRI2_EVENT_TYPE_FLIP_COMPLETE = 3
50} xcb_dri2_event_type_t;
51
55 typedef struct xcb_dri2_dri2_buffer_t {
56 uint32_t attachment;
57 uint32_t name;
58 uint32_t pitch;
59 uint32_t cpp;
60 uint32_t flags;
61} xcb_dri2_dri2_buffer_t;
62
66 typedef struct xcb_dri2_dri2_buffer_iterator_t {
67 xcb_dri2_dri2_buffer_t *data;
68 int rem;
69 int index;
70} xcb_dri2_dri2_buffer_iterator_t;
71
75 typedef struct xcb_dri2_attach_format_t {
76 uint32_t attachment;
77 uint32_t format;
78} xcb_dri2_attach_format_t;
79
83 typedef struct xcb_dri2_attach_format_iterator_t {
84 xcb_dri2_attach_format_t *data;
85 int rem;
86 int index;
87} xcb_dri2_attach_format_iterator_t;
88
92 typedef struct xcb_dri2_query_version_cookie_t {
93 unsigned int sequence;
94} xcb_dri2_query_version_cookie_t;
95
97#define XCB_DRI2_QUERY_VERSION 0
98
102 typedef struct xcb_dri2_query_version_request_t {
103 uint8_t major_opcode;
104 uint8_t minor_opcode;
105 uint16_t length;
106 uint32_t major_version;
107 uint32_t minor_version;
108} xcb_dri2_query_version_request_t;
109
113 typedef struct xcb_dri2_query_version_reply_t {
114 uint8_t response_type;
115 uint8_t pad0;
116 uint16_t sequence;
117 uint32_t length;
118 uint32_t major_version;
119 uint32_t minor_version;
120} xcb_dri2_query_version_reply_t;
121
125 typedef struct xcb_dri2_connect_cookie_t {
126 unsigned int sequence;
127} xcb_dri2_connect_cookie_t;
128
130#define XCB_DRI2_CONNECT 1
131
135 typedef struct xcb_dri2_connect_request_t {
136 uint8_t major_opcode;
137 uint8_t minor_opcode;
138 uint16_t length;
139 xcb_window_t window;
140 uint32_t driver_type;
141} xcb_dri2_connect_request_t;
142
146 typedef struct xcb_dri2_connect_reply_t {
147 uint8_t response_type;
148 uint8_t pad0;
149 uint16_t sequence;
150 uint32_t length;
151 uint32_t driver_name_length;
152 uint32_t device_name_length;
153 uint8_t pad1[16];
154} xcb_dri2_connect_reply_t;
155
159 typedef struct xcb_dri2_authenticate_cookie_t {
160 unsigned int sequence;
161} xcb_dri2_authenticate_cookie_t;
162
164#define XCB_DRI2_AUTHENTICATE 2
165
169 typedef struct xcb_dri2_authenticate_request_t {
170 uint8_t major_opcode;
171 uint8_t minor_opcode;
172 uint16_t length;
173 xcb_window_t window;
174 uint32_t magic;
175} xcb_dri2_authenticate_request_t;
176
180 typedef struct xcb_dri2_authenticate_reply_t {
181 uint8_t response_type;
182 uint8_t pad0;
183 uint16_t sequence;
184 uint32_t length;
185 uint32_t authenticated;
186} xcb_dri2_authenticate_reply_t;
187
189#define XCB_DRI2_CREATE_DRAWABLE 3
190
194 typedef struct xcb_dri2_create_drawable_request_t {
195 uint8_t major_opcode;
196 uint8_t minor_opcode;
197 uint16_t length;
198 xcb_drawable_t drawable;
199} xcb_dri2_create_drawable_request_t;
200
202#define XCB_DRI2_DESTROY_DRAWABLE 4
203
207 typedef struct xcb_dri2_destroy_drawable_request_t {
208 uint8_t major_opcode;
209 uint8_t minor_opcode;
210 uint16_t length;
211 xcb_drawable_t drawable;
212} xcb_dri2_destroy_drawable_request_t;
213
217 typedef struct xcb_dri2_get_buffers_cookie_t {
218 unsigned int sequence;
219} xcb_dri2_get_buffers_cookie_t;
220
222#define XCB_DRI2_GET_BUFFERS 5
223
227 typedef struct xcb_dri2_get_buffers_request_t {
228 uint8_t major_opcode;
229 uint8_t minor_opcode;
230 uint16_t length;
231 xcb_drawable_t drawable;
232 uint32_t count;
233} xcb_dri2_get_buffers_request_t;
234
238 typedef struct xcb_dri2_get_buffers_reply_t {
239 uint8_t response_type;
240 uint8_t pad0;
241 uint16_t sequence;
242 uint32_t length;
243 uint32_t width;
244 uint32_t height;
245 uint32_t count;
246 uint8_t pad1[12];
247} xcb_dri2_get_buffers_reply_t;
248
252 typedef struct xcb_dri2_copy_region_cookie_t {
253 unsigned int sequence;
254} xcb_dri2_copy_region_cookie_t;
255
257#define XCB_DRI2_COPY_REGION 6
258
262 typedef struct xcb_dri2_copy_region_request_t {
263 uint8_t major_opcode;
264 uint8_t minor_opcode;
265 uint16_t length;
266 xcb_drawable_t drawable;
267 uint32_t region;
268 uint32_t dest;
269 uint32_t src;
270} xcb_dri2_copy_region_request_t;
271
275 typedef struct xcb_dri2_copy_region_reply_t {
276 uint8_t response_type;
277 uint8_t pad0;
278 uint16_t sequence;
279 uint32_t length;
280} xcb_dri2_copy_region_reply_t;
281
285 typedef struct xcb_dri2_get_buffers_with_format_cookie_t {
286 unsigned int sequence;
287} xcb_dri2_get_buffers_with_format_cookie_t;
288
290#define XCB_DRI2_GET_BUFFERS_WITH_FORMAT 7
291
295 typedef struct xcb_dri2_get_buffers_with_format_request_t {
296 uint8_t major_opcode;
297 uint8_t minor_opcode;
298 uint16_t length;
299 xcb_drawable_t drawable;
300 uint32_t count;
301} xcb_dri2_get_buffers_with_format_request_t;
302
306 typedef struct xcb_dri2_get_buffers_with_format_reply_t {
307 uint8_t response_type;
308 uint8_t pad0;
309 uint16_t sequence;
310 uint32_t length;
311 uint32_t width;
312 uint32_t height;
313 uint32_t count;
314 uint8_t pad1[12];
315} xcb_dri2_get_buffers_with_format_reply_t;
316
320 typedef struct xcb_dri2_swap_buffers_cookie_t {
321 unsigned int sequence;
322} xcb_dri2_swap_buffers_cookie_t;
323
325#define XCB_DRI2_SWAP_BUFFERS 8
326
330 typedef struct xcb_dri2_swap_buffers_request_t {
331 uint8_t major_opcode;
332 uint8_t minor_opcode;
333 uint16_t length;
334 xcb_drawable_t drawable;
335 uint32_t target_msc_hi;
336 uint32_t target_msc_lo;
337 uint32_t divisor_hi;
338 uint32_t divisor_lo;
339 uint32_t remainder_hi;
340 uint32_t remainder_lo;
341} xcb_dri2_swap_buffers_request_t;
342
346 typedef struct xcb_dri2_swap_buffers_reply_t {
347 uint8_t response_type;
348 uint8_t pad0;
349 uint16_t sequence;
350 uint32_t length;
351 uint32_t swap_hi;
352 uint32_t swap_lo;
353} xcb_dri2_swap_buffers_reply_t;
354
358 typedef struct xcb_dri2_get_msc_cookie_t {
359 unsigned int sequence;
360} xcb_dri2_get_msc_cookie_t;
361
363#define XCB_DRI2_GET_MSC 9
364
368 typedef struct xcb_dri2_get_msc_request_t {
369 uint8_t major_opcode;
370 uint8_t minor_opcode;
371 uint16_t length;
372 xcb_drawable_t drawable;
373} xcb_dri2_get_msc_request_t;
374
378 typedef struct xcb_dri2_get_msc_reply_t {
379 uint8_t response_type;
380 uint8_t pad0;
381 uint16_t sequence;
382 uint32_t length;
383 uint32_t ust_hi;
384 uint32_t ust_lo;
385 uint32_t msc_hi;
386 uint32_t msc_lo;
387 uint32_t sbc_hi;
388 uint32_t sbc_lo;
389} xcb_dri2_get_msc_reply_t;
390
394 typedef struct xcb_dri2_wait_msc_cookie_t {
395 unsigned int sequence;
396} xcb_dri2_wait_msc_cookie_t;
397
399#define XCB_DRI2_WAIT_MSC 10
400
404 typedef struct xcb_dri2_wait_msc_request_t {
405 uint8_t major_opcode;
406 uint8_t minor_opcode;
407 uint16_t length;
408 xcb_drawable_t drawable;
409 uint32_t target_msc_hi;
410 uint32_t target_msc_lo;
411 uint32_t divisor_hi;
412 uint32_t divisor_lo;
413 uint32_t remainder_hi;
414 uint32_t remainder_lo;
415} xcb_dri2_wait_msc_request_t;
416
420 typedef struct xcb_dri2_wait_msc_reply_t {
421 uint8_t response_type;
422 uint8_t pad0;
423 uint16_t sequence;
424 uint32_t length;
425 uint32_t ust_hi;
426 uint32_t ust_lo;
427 uint32_t msc_hi;
428 uint32_t msc_lo;
429 uint32_t sbc_hi;
430 uint32_t sbc_lo;
431} xcb_dri2_wait_msc_reply_t;
432
436 typedef struct xcb_dri2_wait_sbc_cookie_t {
437 unsigned int sequence;
438} xcb_dri2_wait_sbc_cookie_t;
439
441#define XCB_DRI2_WAIT_SBC 11
442
446 typedef struct xcb_dri2_wait_sbc_request_t {
447 uint8_t major_opcode;
448 uint8_t minor_opcode;
449 uint16_t length;
450 xcb_drawable_t drawable;
451 uint32_t target_sbc_hi;
452 uint32_t target_sbc_lo;
453} xcb_dri2_wait_sbc_request_t;
454
458 typedef struct xcb_dri2_wait_sbc_reply_t {
459 uint8_t response_type;
460 uint8_t pad0;
461 uint16_t sequence;
462 uint32_t length;
463 uint32_t ust_hi;
464 uint32_t ust_lo;
465 uint32_t msc_hi;
466 uint32_t msc_lo;
467 uint32_t sbc_hi;
468 uint32_t sbc_lo;
469} xcb_dri2_wait_sbc_reply_t;
470
472#define XCB_DRI2_SWAP_INTERVAL 12
473
477 typedef struct xcb_dri2_swap_interval_request_t {
478 uint8_t major_opcode;
479 uint8_t minor_opcode;
480 uint16_t length;
481 xcb_drawable_t drawable;
482 uint32_t interval;
483} xcb_dri2_swap_interval_request_t;
484
488 typedef struct xcb_dri2_get_param_cookie_t {
489 unsigned int sequence;
490} xcb_dri2_get_param_cookie_t;
491
493#define XCB_DRI2_GET_PARAM 13
494
498 typedef struct xcb_dri2_get_param_request_t {
499 uint8_t major_opcode;
500 uint8_t minor_opcode;
501 uint16_t length;
502 xcb_drawable_t drawable;
503 uint32_t param;
504} xcb_dri2_get_param_request_t;
505
509 typedef struct xcb_dri2_get_param_reply_t {
510 uint8_t response_type;
511 uint8_t is_param_recognized;
512 uint16_t sequence;
513 uint32_t length;
514 uint32_t value_hi;
515 uint32_t value_lo;
516} xcb_dri2_get_param_reply_t;
517
519#define XCB_DRI2_BUFFER_SWAP_COMPLETE 0
520
524 typedef struct xcb_dri2_buffer_swap_complete_event_t {
525 uint8_t response_type;
526 uint8_t pad0;
527 uint16_t sequence;
528 uint16_t event_type;
529 uint8_t pad1[2];
530 xcb_drawable_t drawable;
531 uint32_t ust_hi;
532 uint32_t ust_lo;
533 uint32_t msc_hi;
534 uint32_t msc_lo;
535 uint32_t sbc;
536} xcb_dri2_buffer_swap_complete_event_t;
537
539#define XCB_DRI2_INVALIDATE_BUFFERS 1
540
544 typedef struct xcb_dri2_invalidate_buffers_event_t {
545 uint8_t response_type;
546 uint8_t pad0;
547 uint16_t sequence;
548 xcb_drawable_t drawable;
549} xcb_dri2_invalidate_buffers_event_t;
550
559 void
560 xcb_dri2_dri2_buffer_next (xcb_dri2_dri2_buffer_iterator_t *i);
561
571 xcb_generic_iterator_t
572 xcb_dri2_dri2_buffer_end (xcb_dri2_dri2_buffer_iterator_t i);
573
582 void
583 xcb_dri2_attach_format_next (xcb_dri2_attach_format_iterator_t *i);
584
594 xcb_generic_iterator_t
595 xcb_dri2_attach_format_end (xcb_dri2_attach_format_iterator_t i);
596
605 xcb_dri2_query_version_cookie_t
606 xcb_dri2_query_version (xcb_connection_t *c,
607 uint32_t major_version,
608 uint32_t minor_version);
609
621 xcb_dri2_query_version_cookie_t
622 xcb_dri2_query_version_unchecked (xcb_connection_t *c,
623 uint32_t major_version,
624 uint32_t minor_version);
625
640 xcb_dri2_query_version_reply_t *
641 xcb_dri2_query_version_reply (xcb_connection_t *c,
642 xcb_dri2_query_version_cookie_t cookie ,
643 xcb_generic_error_t **e);
644
645 int
646xcb_dri2_connect_sizeof (const void *_buffer);
647
656 xcb_dri2_connect_cookie_t
657 xcb_dri2_connect (xcb_connection_t *c,
658 xcb_window_t window,
659 uint32_t driver_type);
660
672 xcb_dri2_connect_cookie_t
673 xcb_dri2_connect_unchecked (xcb_connection_t *c,
674 xcb_window_t window,
675 uint32_t driver_type);
676
677 char *
678xcb_dri2_connect_driver_name (const xcb_dri2_connect_reply_t *R);
679
680 int
681xcb_dri2_connect_driver_name_length (const xcb_dri2_connect_reply_t *R);
682
683 xcb_generic_iterator_t
684xcb_dri2_connect_driver_name_end (const xcb_dri2_connect_reply_t *R);
685
686 void *
687xcb_dri2_connect_alignment_pad (const xcb_dri2_connect_reply_t *R);
688
689 int
690xcb_dri2_connect_alignment_pad_length (const xcb_dri2_connect_reply_t *R);
691
692 xcb_generic_iterator_t
693xcb_dri2_connect_alignment_pad_end (const xcb_dri2_connect_reply_t *R);
694
695 char *
696xcb_dri2_connect_device_name (const xcb_dri2_connect_reply_t *R);
697
698 int
699xcb_dri2_connect_device_name_length (const xcb_dri2_connect_reply_t *R);
700
701 xcb_generic_iterator_t
702xcb_dri2_connect_device_name_end (const xcb_dri2_connect_reply_t *R);
703
718 xcb_dri2_connect_reply_t *
719 xcb_dri2_connect_reply (xcb_connection_t *c,
720 xcb_dri2_connect_cookie_t cookie ,
721 xcb_generic_error_t **e);
722
731 xcb_dri2_authenticate_cookie_t
732 xcb_dri2_authenticate (xcb_connection_t *c,
733 xcb_window_t window,
734 uint32_t magic);
735
747 xcb_dri2_authenticate_cookie_t
748 xcb_dri2_authenticate_unchecked (xcb_connection_t *c,
749 xcb_window_t window,
750 uint32_t magic);
751
766 xcb_dri2_authenticate_reply_t *
767 xcb_dri2_authenticate_reply (xcb_connection_t *c,
768 xcb_dri2_authenticate_cookie_t cookie ,
769 xcb_generic_error_t **e);
770
782 xcb_void_cookie_t
783 xcb_dri2_create_drawable_checked (xcb_connection_t *c,
784 xcb_drawable_t drawable);
785
794 xcb_void_cookie_t
795 xcb_dri2_create_drawable (xcb_connection_t *c,
796 xcb_drawable_t drawable);
797
809 xcb_void_cookie_t
810 xcb_dri2_destroy_drawable_checked (xcb_connection_t *c,
811 xcb_drawable_t drawable);
812
821 xcb_void_cookie_t
822 xcb_dri2_destroy_drawable (xcb_connection_t *c,
823 xcb_drawable_t drawable);
824
825 int
826xcb_dri2_get_buffers_sizeof (const void *_buffer,
827 uint32_t attachments_len);
828
837 xcb_dri2_get_buffers_cookie_t
838 xcb_dri2_get_buffers (xcb_connection_t *c,
839 xcb_drawable_t drawable,
840 uint32_t count,
841 uint32_t attachments_len,
842 const uint32_t *attachments);
843
855 xcb_dri2_get_buffers_cookie_t
856 xcb_dri2_get_buffers_unchecked (xcb_connection_t *c,
857 xcb_drawable_t drawable,
858 uint32_t count,
859 uint32_t attachments_len,
860 const uint32_t *attachments);
861
862 xcb_dri2_dri2_buffer_t *
863xcb_dri2_get_buffers_buffers (const xcb_dri2_get_buffers_reply_t *R);
864
865 int
866xcb_dri2_get_buffers_buffers_length (const xcb_dri2_get_buffers_reply_t *R);
867
868 xcb_dri2_dri2_buffer_iterator_t
869xcb_dri2_get_buffers_buffers_iterator (const xcb_dri2_get_buffers_reply_t *R);
870
885 xcb_dri2_get_buffers_reply_t *
886 xcb_dri2_get_buffers_reply (xcb_connection_t *c,
887 xcb_dri2_get_buffers_cookie_t cookie ,
888 xcb_generic_error_t **e);
889
898 xcb_dri2_copy_region_cookie_t
899 xcb_dri2_copy_region (xcb_connection_t *c,
900 xcb_drawable_t drawable,
901 uint32_t region,
902 uint32_t dest,
903 uint32_t src);
904
916 xcb_dri2_copy_region_cookie_t
917 xcb_dri2_copy_region_unchecked (xcb_connection_t *c,
918 xcb_drawable_t drawable,
919 uint32_t region,
920 uint32_t dest,
921 uint32_t src);
922
937 xcb_dri2_copy_region_reply_t *
938 xcb_dri2_copy_region_reply (xcb_connection_t *c,
939 xcb_dri2_copy_region_cookie_t cookie ,
940 xcb_generic_error_t **e);
941
942 int
943xcb_dri2_get_buffers_with_format_sizeof (const void *_buffer,
944 uint32_t attachments_len);
945
954 xcb_dri2_get_buffers_with_format_cookie_t
955 xcb_dri2_get_buffers_with_format (xcb_connection_t *c,
956 xcb_drawable_t drawable,
957 uint32_t count,
958 uint32_t attachments_len,
959 const xcb_dri2_attach_format_t *attachments);
960
972 xcb_dri2_get_buffers_with_format_cookie_t
973 xcb_dri2_get_buffers_with_format_unchecked (xcb_connection_t *c,
974 xcb_drawable_t drawable,
975 uint32_t count,
976 uint32_t attachments_len,
977 const xcb_dri2_attach_format_t *attachments);
978
979 xcb_dri2_dri2_buffer_t *
980xcb_dri2_get_buffers_with_format_buffers (const xcb_dri2_get_buffers_with_format_reply_t *R);
981
982 int
983xcb_dri2_get_buffers_with_format_buffers_length (const xcb_dri2_get_buffers_with_format_reply_t *R);
984
985 xcb_dri2_dri2_buffer_iterator_t
986xcb_dri2_get_buffers_with_format_buffers_iterator (const xcb_dri2_get_buffers_with_format_reply_t *R);
987
1002 xcb_dri2_get_buffers_with_format_reply_t *
1003 xcb_dri2_get_buffers_with_format_reply (xcb_connection_t *c,
1004 xcb_dri2_get_buffers_with_format_cookie_t cookie ,
1005 xcb_generic_error_t **e);
1006
1015 xcb_dri2_swap_buffers_cookie_t
1016 xcb_dri2_swap_buffers (xcb_connection_t *c,
1017 xcb_drawable_t drawable,
1018 uint32_t target_msc_hi,
1019 uint32_t target_msc_lo,
1020 uint32_t divisor_hi,
1021 uint32_t divisor_lo,
1022 uint32_t remainder_hi,
1023 uint32_t remainder_lo);
1024
1036 xcb_dri2_swap_buffers_cookie_t
1037 xcb_dri2_swap_buffers_unchecked (xcb_connection_t *c,
1038 xcb_drawable_t drawable,
1039 uint32_t target_msc_hi,
1040 uint32_t target_msc_lo,
1041 uint32_t divisor_hi,
1042 uint32_t divisor_lo,
1043 uint32_t remainder_hi,
1044 uint32_t remainder_lo);
1045
1060 xcb_dri2_swap_buffers_reply_t *
1061 xcb_dri2_swap_buffers_reply (xcb_connection_t *c,
1062 xcb_dri2_swap_buffers_cookie_t cookie ,
1063 xcb_generic_error_t **e);
1064
1073 xcb_dri2_get_msc_cookie_t
1074 xcb_dri2_get_msc (xcb_connection_t *c,
1075 xcb_drawable_t drawable);
1076
1088 xcb_dri2_get_msc_cookie_t
1089 xcb_dri2_get_msc_unchecked (xcb_connection_t *c,
1090 xcb_drawable_t drawable);
1091
1106 xcb_dri2_get_msc_reply_t *
1107 xcb_dri2_get_msc_reply (xcb_connection_t *c,
1108 xcb_dri2_get_msc_cookie_t cookie ,
1109 xcb_generic_error_t **e);
1110
1119 xcb_dri2_wait_msc_cookie_t
1120 xcb_dri2_wait_msc (xcb_connection_t *c,
1121 xcb_drawable_t drawable,
1122 uint32_t target_msc_hi,
1123 uint32_t target_msc_lo,
1124 uint32_t divisor_hi,
1125 uint32_t divisor_lo,
1126 uint32_t remainder_hi,
1127 uint32_t remainder_lo);
1128
1140 xcb_dri2_wait_msc_cookie_t
1141 xcb_dri2_wait_msc_unchecked (xcb_connection_t *c,
1142 xcb_drawable_t drawable,
1143 uint32_t target_msc_hi,
1144 uint32_t target_msc_lo,
1145 uint32_t divisor_hi,
1146 uint32_t divisor_lo,
1147 uint32_t remainder_hi,
1148 uint32_t remainder_lo);
1149
1164 xcb_dri2_wait_msc_reply_t *
1165 xcb_dri2_wait_msc_reply (xcb_connection_t *c,
1166 xcb_dri2_wait_msc_cookie_t cookie ,
1167 xcb_generic_error_t **e);
1168
1177 xcb_dri2_wait_sbc_cookie_t
1178 xcb_dri2_wait_sbc (xcb_connection_t *c,
1179 xcb_drawable_t drawable,
1180 uint32_t target_sbc_hi,
1181 uint32_t target_sbc_lo);
1182
1194 xcb_dri2_wait_sbc_cookie_t
1195 xcb_dri2_wait_sbc_unchecked (xcb_connection_t *c,
1196 xcb_drawable_t drawable,
1197 uint32_t target_sbc_hi,
1198 uint32_t target_sbc_lo);
1199
1214 xcb_dri2_wait_sbc_reply_t *
1215 xcb_dri2_wait_sbc_reply (xcb_connection_t *c,
1216 xcb_dri2_wait_sbc_cookie_t cookie ,
1217 xcb_generic_error_t **e);
1218
1230 xcb_void_cookie_t
1231 xcb_dri2_swap_interval_checked (xcb_connection_t *c,
1232 xcb_drawable_t drawable,
1233 uint32_t interval);
1234
1243 xcb_void_cookie_t
1244 xcb_dri2_swap_interval (xcb_connection_t *c,
1245 xcb_drawable_t drawable,
1246 uint32_t interval);
1247
1256 xcb_dri2_get_param_cookie_t
1257 xcb_dri2_get_param (xcb_connection_t *c,
1258 xcb_drawable_t drawable,
1259 uint32_t param);
1260
1272 xcb_dri2_get_param_cookie_t
1273 xcb_dri2_get_param_unchecked (xcb_connection_t *c,
1274 xcb_drawable_t drawable,
1275 uint32_t param);
1276
1291 xcb_dri2_get_param_reply_t *
1292 xcb_dri2_get_param_reply (xcb_connection_t *c,
1293 xcb_dri2_get_param_cookie_t cookie ,
1294 xcb_generic_error_t **e);
1295
1296
1297#ifdef __cplusplus
1298}
1299#endif
1300
1301#endif
1302
xcb_dri2_query_version
xcb_dri2_query_version_cookie_t xcb_dri2_query_version(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition dri2.c:58
xcb_dri2_wait_sbc
xcb_dri2_wait_sbc_cookie_t xcb_dri2_wait_sbc(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_sbc_hi, uint32_t target_sbc_lo)
Definition dri2.c:1041
xcb_dri2_copy_region_unchecked
xcb_dri2_copy_region_cookie_t xcb_dri2_copy_region_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t region, uint32_t dest, uint32_t src)
Definition dri2.c:642
xcb_dri2_wait_msc
xcb_dri2_wait_msc_cookie_t xcb_dri2_wait_msc(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_msc_hi, uint32_t target_msc_lo, uint32_t divisor_hi, uint32_t divisor_lo, uint32_t remainder_hi, uint32_t remainder_lo)
Definition dri2.c:957
xcb_dri2_attach_format_next
void xcb_dri2_attach_format_next(xcb_dri2_attach_format_iterator_t *i)
Definition dri2.c:40
xcb_dri2_create_drawable
xcb_void_cookie_t xcb_dri2_create_drawable(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:401
xcb_dri2_get_param
xcb_dri2_get_param_cookie_t xcb_dri2_get_param(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t param)
Definition dri2.c:1165
xcb_dri2_dri2_buffer_next
void xcb_dri2_dri2_buffer_next(xcb_dri2_dri2_buffer_iterator_t *i)
Definition dri2.c:22
xcb_dri2_attach_format_end
xcb_generic_iterator_t xcb_dri2_attach_format_end(xcb_dri2_attach_format_iterator_t i)
Definition dri2.c:48
xcb_dri2_get_buffers_with_format
xcb_dri2_get_buffers_with_format_cookie_t xcb_dri2_get_buffers_with_format(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t count, uint32_t attachments_len, const xcb_dri2_attach_format_t *attachments)
Definition dri2.c:713
xcb_dri2_authenticate_unchecked
xcb_dri2_authenticate_cookie_t xcb_dri2_authenticate_unchecked(xcb_connection_t *c, xcb_window_t window, uint32_t magic)
Definition dri2.c:339
xcb_dri2_get_msc_unchecked
xcb_dri2_get_msc_cookie_t xcb_dri2_get_msc_unchecked(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:923
xcb_dri2_swap_interval_checked
xcb_void_cookie_t xcb_dri2_swap_interval_checked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t interval)
Definition dri2.c:1109
xcb_dri2_connect
xcb_dri2_connect_cookie_t xcb_dri2_connect(xcb_connection_t *c, xcb_window_t window, uint32_t driver_type)
Definition dri2.c:177
xcb_dri2_dri2_buffer_end
xcb_generic_iterator_t xcb_dri2_dri2_buffer_end(xcb_dri2_dri2_buffer_iterator_t i)
Definition dri2.c:30
xcb_dri2_query_version_reply
xcb_dri2_query_version_reply_t * xcb_dri2_query_version_reply(xcb_connection_t *c, xcb_dri2_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:114
xcb_dri2_get_param_reply
xcb_dri2_get_param_reply_t * xcb_dri2_get_param_reply(xcb_connection_t *c, xcb_dri2_get_param_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:1221
xcb_dri2_swap_buffers_unchecked
xcb_dri2_swap_buffers_cookie_t xcb_dri2_swap_buffers_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_msc_hi, uint32_t target_msc_lo, uint32_t divisor_hi, uint32_t divisor_lo, uint32_t remainder_hi, uint32_t remainder_lo)
Definition dri2.c:851
xcb_dri2_wait_msc_unchecked
xcb_dri2_wait_msc_cookie_t xcb_dri2_wait_msc_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_msc_hi, uint32_t target_msc_lo, uint32_t divisor_hi, uint32_t divisor_lo, uint32_t remainder_hi, uint32_t remainder_lo)
Definition dri2.c:995
xcb_dri2_wait_sbc_unchecked
xcb_dri2_wait_sbc_cookie_t xcb_dri2_wait_sbc_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_sbc_hi, uint32_t target_sbc_lo)
Definition dri2.c:1071
xcb_dri2_get_msc_reply
xcb_dri2_get_msc_reply_t * xcb_dri2_get_msc_reply(xcb_connection_t *c, xcb_dri2_get_msc_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:949
xcb_dri2_get_buffers_unchecked
xcb_dri2_get_buffers_cookie_t xcb_dri2_get_buffers_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t count, uint32_t attachments_len, const uint32_t *attachments)
Definition dri2.c:545
xcb_dri2_authenticate_reply
xcb_dri2_authenticate_reply_t * xcb_dri2_authenticate_reply(xcb_connection_t *c, xcb_dri2_authenticate_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:367
xcb_dri2_copy_region
xcb_dri2_copy_region_cookie_t xcb_dri2_copy_region(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t region, uint32_t dest, uint32_t src)
Definition dri2.c:610
xcb_dri2_authenticate
xcb_dri2_authenticate_cookie_t xcb_dri2_authenticate(xcb_connection_t *c, xcb_window_t window, uint32_t magic)
Definition dri2.c:311
xcb_dri2_get_buffers_with_format_unchecked
xcb_dri2_get_buffers_with_format_cookie_t xcb_dri2_get_buffers_with_format_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t count, uint32_t attachments_len, const xcb_dri2_attach_format_t *attachments)
Definition dri2.c:748
xcb_dri2_destroy_drawable_checked
xcb_void_cookie_t xcb_dri2_destroy_drawable_checked(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:427
xcb_dri2_wait_sbc_reply
xcb_dri2_wait_sbc_reply_t * xcb_dri2_wait_sbc_reply(xcb_connection_t *c, xcb_dri2_wait_sbc_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:1101
xcb_dri2_get_msc
xcb_dri2_get_msc_cookie_t xcb_dri2_get_msc(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:897
xcb_dri2_copy_region_reply
xcb_dri2_copy_region_reply_t * xcb_dri2_copy_region_reply(xcb_connection_t *c, xcb_dri2_copy_region_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:674
xcb_dri2_swap_buffers_reply
xcb_dri2_swap_buffers_reply_t * xcb_dri2_swap_buffers_reply(xcb_connection_t *c, xcb_dri2_swap_buffers_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:889
xcb_dri2_query_version_unchecked
xcb_dri2_query_version_cookie_t xcb_dri2_query_version_unchecked(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition dri2.c:86
xcb_dri2_connect_unchecked
xcb_dri2_connect_cookie_t xcb_dri2_connect_unchecked(xcb_connection_t *c, xcb_window_t window, uint32_t driver_type)
Definition dri2.c:205
xcb_dri2_get_param_unchecked
xcb_dri2_get_param_cookie_t xcb_dri2_get_param_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t param)
Definition dri2.c:1193
xcb_dri2_get_buffers_reply
xcb_dri2_get_buffers_reply_t * xcb_dri2_get_buffers_reply(xcb_connection_t *c, xcb_dri2_get_buffers_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:602
xcb_dri2_get_buffers_with_format_reply
xcb_dri2_get_buffers_with_format_reply_t * xcb_dri2_get_buffers_with_format_reply(xcb_connection_t *c, xcb_dri2_get_buffers_with_format_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:805
xcb_dri2_wait_msc_reply
xcb_dri2_wait_msc_reply_t * xcb_dri2_wait_msc_reply(xcb_connection_t *c, xcb_dri2_wait_msc_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:1033
xcb_dri2_swap_buffers
xcb_dri2_swap_buffers_cookie_t xcb_dri2_swap_buffers(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t target_msc_hi, uint32_t target_msc_lo, uint32_t divisor_hi, uint32_t divisor_lo, uint32_t remainder_hi, uint32_t remainder_lo)
Definition dri2.c:813
xcb_dri2_destroy_drawable
xcb_void_cookie_t xcb_dri2_destroy_drawable(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:453
xcb_dri2_connect_reply
xcb_dri2_connect_reply_t * xcb_dri2_connect_reply(xcb_connection_t *c, xcb_dri2_connect_cookie_t cookie, xcb_generic_error_t **e)
Definition dri2.c:303
xcb_dri2_get_buffers
xcb_dri2_get_buffers_cookie_t xcb_dri2_get_buffers(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t count, uint32_t attachments_len, const uint32_t *attachments)
Definition dri2.c:510
xcb_dri2_swap_interval
xcb_void_cookie_t xcb_dri2_swap_interval(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t interval)
Definition dri2.c:1137
xcb_dri2_create_drawable_checked
xcb_void_cookie_t xcb_dri2_create_drawable_checked(xcb_connection_t *c, xcb_drawable_t drawable)
Definition dri2.c:375
xcb_connection_t
Definition xcbint.h:208
xcb_dri2_attach_format_iterator_t
xcb_dri2_attach_format_iterator_t
Definition dri2.h:83
xcb_dri2_attach_format_t
xcb_dri2_attach_format_t
Definition dri2.h:75
xcb_dri2_authenticate_cookie_t
xcb_dri2_authenticate_cookie_t
Definition dri2.h:159
xcb_dri2_authenticate_reply_t
xcb_dri2_authenticate_reply_t
Definition dri2.h:180
xcb_dri2_authenticate_request_t
xcb_dri2_authenticate_request_t
Definition dri2.h:169
xcb_dri2_buffer_swap_complete_event_t
xcb_dri2_buffer_swap_complete_event_t
Definition dri2.h:524
xcb_dri2_connect_cookie_t
xcb_dri2_connect_cookie_t
Definition dri2.h:125
xcb_dri2_connect_reply_t
xcb_dri2_connect_reply_t
Definition dri2.h:146
xcb_dri2_connect_request_t
xcb_dri2_connect_request_t
Definition dri2.h:135
xcb_dri2_copy_region_cookie_t
xcb_dri2_copy_region_cookie_t
Definition dri2.h:252
xcb_dri2_copy_region_reply_t
xcb_dri2_copy_region_reply_t
Definition dri2.h:275
xcb_dri2_copy_region_request_t
xcb_dri2_copy_region_request_t
Definition dri2.h:262
xcb_dri2_create_drawable_request_t
xcb_dri2_create_drawable_request_t
Definition dri2.h:194
xcb_dri2_destroy_drawable_request_t
xcb_dri2_destroy_drawable_request_t
Definition dri2.h:207
xcb_dri2_dri2_buffer_iterator_t
xcb_dri2_dri2_buffer_iterator_t
Definition dri2.h:66
xcb_dri2_dri2_buffer_t
xcb_dri2_dri2_buffer_t
Definition dri2.h:55
xcb_dri2_get_buffers_cookie_t
xcb_dri2_get_buffers_cookie_t
Definition dri2.h:217
xcb_dri2_get_buffers_reply_t
xcb_dri2_get_buffers_reply_t
Definition dri2.h:238
xcb_dri2_get_buffers_request_t
xcb_dri2_get_buffers_request_t
Definition dri2.h:227
xcb_dri2_get_buffers_with_format_cookie_t
xcb_dri2_get_buffers_with_format_cookie_t
Definition dri2.h:285
xcb_dri2_get_buffers_with_format_reply_t
xcb_dri2_get_buffers_with_format_reply_t
Definition dri2.h:306
xcb_dri2_get_buffers_with_format_request_t
xcb_dri2_get_buffers_with_format_request_t
Definition dri2.h:295
xcb_dri2_get_msc_cookie_t
xcb_dri2_get_msc_cookie_t
Definition dri2.h:358
xcb_dri2_get_msc_reply_t
xcb_dri2_get_msc_reply_t
Definition dri2.h:378
xcb_dri2_get_msc_request_t
xcb_dri2_get_msc_request_t
Definition dri2.h:368
xcb_dri2_get_param_cookie_t
xcb_dri2_get_param_cookie_t
Definition dri2.h:488
xcb_dri2_get_param_reply_t
xcb_dri2_get_param_reply_t
Definition dri2.h:509
xcb_dri2_get_param_request_t
xcb_dri2_get_param_request_t
Definition dri2.h:498
xcb_dri2_invalidate_buffers_event_t
xcb_dri2_invalidate_buffers_event_t
Definition dri2.h:544
xcb_dri2_query_version_cookie_t
xcb_dri2_query_version_cookie_t
Definition dri2.h:92
xcb_dri2_query_version_reply_t
xcb_dri2_query_version_reply_t
Definition dri2.h:113
xcb_dri2_query_version_request_t
xcb_dri2_query_version_request_t
Definition dri2.h:102
xcb_dri2_swap_buffers_cookie_t
xcb_dri2_swap_buffers_cookie_t
Definition dri2.h:320
xcb_dri2_swap_buffers_reply_t
xcb_dri2_swap_buffers_reply_t
Definition dri2.h:346
xcb_dri2_swap_buffers_request_t
xcb_dri2_swap_buffers_request_t
Definition dri2.h:330
xcb_dri2_swap_interval_request_t
xcb_dri2_swap_interval_request_t
Definition dri2.h:477
xcb_dri2_wait_msc_cookie_t
xcb_dri2_wait_msc_cookie_t
Definition dri2.h:394
xcb_dri2_wait_msc_reply_t
xcb_dri2_wait_msc_reply_t
Definition dri2.h:420
xcb_dri2_wait_msc_request_t
xcb_dri2_wait_msc_request_t
Definition dri2.h:404
xcb_dri2_wait_sbc_cookie_t
xcb_dri2_wait_sbc_cookie_t
Definition dri2.h:436
xcb_dri2_wait_sbc_reply_t
xcb_dri2_wait_sbc_reply_t
Definition dri2.h:458
xcb_dri2_wait_sbc_request_t
xcb_dri2_wait_sbc_request_t
Definition dri2.h:446
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