XCB  1.10
dri3.h
1 /*
2  * This file generated automatically from dri3.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __DRI3_H
13 #define __DRI3_H
14 
15 #include "xcb.h"
16 #include "xproto.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_DRI3_MAJOR_VERSION 1
23 #define XCB_DRI3_MINOR_VERSION 0
24 
25 extern xcb_extension_t xcb_dri3_id;
26 
31  unsigned int sequence;
33 
35 #define XCB_DRI3_QUERY_VERSION 0
36 
41  uint8_t major_opcode;
42  uint8_t minor_opcode;
43  uint16_t length;
44  uint32_t major_version;
45  uint32_t minor_version;
47 
52  uint8_t response_type;
53  uint8_t pad0;
54  uint16_t sequence;
55  uint32_t length;
56  uint32_t major_version;
57  uint32_t minor_version;
59 
63 typedef struct xcb_dri3_open_cookie_t {
64  unsigned int sequence;
66 
68 #define XCB_DRI3_OPEN 1
69 
73 typedef struct xcb_dri3_open_request_t {
74  uint8_t major_opcode;
75  uint8_t minor_opcode;
76  uint16_t length;
77  xcb_drawable_t drawable;
78  uint32_t provider;
80 
84 typedef struct xcb_dri3_open_reply_t {
85  uint8_t response_type;
86  uint8_t nfd;
87  uint16_t sequence;
88  uint32_t length;
89  uint8_t pad0[24];
91 
93 #define XCB_DRI3_PIXMAP_FROM_BUFFER 2
94 
99  uint8_t major_opcode;
100  uint8_t minor_opcode;
101  uint16_t length;
102  xcb_pixmap_t pixmap;
103  xcb_drawable_t drawable;
104  uint32_t size;
105  uint16_t width;
106  uint16_t height;
107  uint16_t stride;
108  uint8_t depth;
109  uint8_t bpp;
111 
116  unsigned int sequence;
118 
120 #define XCB_DRI3_BUFFER_FROM_PIXMAP 3
121 
126  uint8_t major_opcode;
127  uint8_t minor_opcode;
128  uint16_t length;
129  xcb_pixmap_t pixmap;
131 
136  uint8_t response_type;
137  uint8_t nfd;
138  uint16_t sequence;
139  uint32_t length;
140  uint32_t size;
141  uint16_t width;
142  uint16_t height;
143  uint16_t stride;
144  uint8_t depth;
145  uint8_t bpp;
146  uint8_t pad0[12];
148 
150 #define XCB_DRI3_FENCE_FROM_FD 4
151 
156  uint8_t major_opcode;
157  uint8_t minor_opcode;
158  uint16_t length;
159  xcb_drawable_t drawable;
160  uint32_t fence;
161  uint8_t initially_triggered;
162  uint8_t pad0[3];
164 
169  unsigned int sequence;
171 
173 #define XCB_DRI3_FD_FROM_FENCE 5
174 
179  uint8_t major_opcode;
180  uint8_t minor_opcode;
181  uint16_t length;
182  xcb_drawable_t drawable;
183  uint32_t fence;
185 
190  uint8_t response_type;
191  uint8_t nfd;
192  uint16_t sequence;
193  uint32_t length;
194  uint8_t pad0[24];
196 
206 /*****************************************************************************
207  **
208  ** xcb_dri3_query_version_cookie_t xcb_dri3_query_version
209  **
210  ** @param xcb_connection_t *c
211  ** @param uint32_t major_version
212  ** @param uint32_t minor_version
213  ** @returns xcb_dri3_query_version_cookie_t
214  **
215  *****************************************************************************/
216 
219  uint32_t major_version ,
220  uint32_t minor_version );
221 
234 /*****************************************************************************
235  **
236  ** xcb_dri3_query_version_cookie_t xcb_dri3_query_version_unchecked
237  **
238  ** @param xcb_connection_t *c
239  ** @param uint32_t major_version
240  ** @param uint32_t minor_version
241  ** @returns xcb_dri3_query_version_cookie_t
242  **
243  *****************************************************************************/
244 
247  uint32_t major_version ,
248  uint32_t minor_version );
249 
265 /*****************************************************************************
266  **
267  ** xcb_dri3_query_version_reply_t * xcb_dri3_query_version_reply
268  **
269  ** @param xcb_connection_t *c
270  ** @param xcb_dri3_query_version_cookie_t cookie
271  ** @param xcb_generic_error_t **e
272  ** @returns xcb_dri3_query_version_reply_t *
273  **
274  *****************************************************************************/
275 
279  xcb_generic_error_t **e );
280 
290 /*****************************************************************************
291  **
292  ** xcb_dri3_open_cookie_t xcb_dri3_open
293  **
294  ** @param xcb_connection_t *c
295  ** @param xcb_drawable_t drawable
296  ** @param uint32_t provider
297  ** @returns xcb_dri3_open_cookie_t
298  **
299  *****************************************************************************/
300 
303  xcb_drawable_t drawable ,
304  uint32_t provider );
305 
318 /*****************************************************************************
319  **
320  ** xcb_dri3_open_cookie_t xcb_dri3_open_unchecked
321  **
322  ** @param xcb_connection_t *c
323  ** @param xcb_drawable_t drawable
324  ** @param uint32_t provider
325  ** @returns xcb_dri3_open_cookie_t
326  **
327  *****************************************************************************/
328 
331  xcb_drawable_t drawable ,
332  uint32_t provider );
333 
349 /*****************************************************************************
350  **
351  ** xcb_dri3_open_reply_t * xcb_dri3_open_reply
352  **
353  ** @param xcb_connection_t *c
354  ** @param xcb_dri3_open_cookie_t cookie
355  ** @param xcb_generic_error_t **e
356  ** @returns xcb_dri3_open_reply_t *
357  **
358  *****************************************************************************/
359 
362  xcb_dri3_open_cookie_t cookie ,
363  xcb_generic_error_t **e );
364 
375 /*****************************************************************************
376  **
377  ** int * xcb_dri3_open_reply_fds
378  **
379  ** @param xcb_connection_t *c
380  ** @param xcb_dri3_open_reply_t *reply
381  ** @returns int *
382  **
383  *****************************************************************************/
384 
385 int *
387  xcb_dri3_open_reply_t *reply );
388 
401 /*****************************************************************************
402  **
403  ** xcb_void_cookie_t xcb_dri3_pixmap_from_buffer_checked
404  **
405  ** @param xcb_connection_t *c
406  ** @param xcb_pixmap_t pixmap
407  ** @param xcb_drawable_t drawable
408  ** @param uint32_t size
409  ** @param uint16_t width
410  ** @param uint16_t height
411  ** @param uint16_t stride
412  ** @param uint8_t depth
413  ** @param uint8_t bpp
414  ** @param int32_t pixmap_fd
415  ** @returns xcb_void_cookie_t
416  **
417  *****************************************************************************/
418 
421  xcb_pixmap_t pixmap ,
422  xcb_drawable_t drawable ,
423  uint32_t size ,
424  uint16_t width ,
425  uint16_t height ,
426  uint16_t stride ,
427  uint8_t depth ,
428  uint8_t bpp ,
429  int32_t pixmap_fd );
430 
440 /*****************************************************************************
441  **
442  ** xcb_void_cookie_t xcb_dri3_pixmap_from_buffer
443  **
444  ** @param xcb_connection_t *c
445  ** @param xcb_pixmap_t pixmap
446  ** @param xcb_drawable_t drawable
447  ** @param uint32_t size
448  ** @param uint16_t width
449  ** @param uint16_t height
450  ** @param uint16_t stride
451  ** @param uint8_t depth
452  ** @param uint8_t bpp
453  ** @param int32_t pixmap_fd
454  ** @returns xcb_void_cookie_t
455  **
456  *****************************************************************************/
457 
460  xcb_pixmap_t pixmap ,
461  xcb_drawable_t drawable ,
462  uint32_t size ,
463  uint16_t width ,
464  uint16_t height ,
465  uint16_t stride ,
466  uint8_t depth ,
467  uint8_t bpp ,
468  int32_t pixmap_fd );
469 
479 /*****************************************************************************
480  **
481  ** xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap
482  **
483  ** @param xcb_connection_t *c
484  ** @param xcb_pixmap_t pixmap
485  ** @returns xcb_dri3_buffer_from_pixmap_cookie_t
486  **
487  *****************************************************************************/
488 
491  xcb_pixmap_t pixmap );
492 
505 /*****************************************************************************
506  **
507  ** xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap_unchecked
508  **
509  ** @param xcb_connection_t *c
510  ** @param xcb_pixmap_t pixmap
511  ** @returns xcb_dri3_buffer_from_pixmap_cookie_t
512  **
513  *****************************************************************************/
514 
517  xcb_pixmap_t pixmap );
518 
534 /*****************************************************************************
535  **
536  ** xcb_dri3_buffer_from_pixmap_reply_t * xcb_dri3_buffer_from_pixmap_reply
537  **
538  ** @param xcb_connection_t *c
539  ** @param xcb_dri3_buffer_from_pixmap_cookie_t cookie
540  ** @param xcb_generic_error_t **e
541  ** @returns xcb_dri3_buffer_from_pixmap_reply_t *
542  **
543  *****************************************************************************/
544 
548  xcb_generic_error_t **e );
549 
560 /*****************************************************************************
561  **
562  ** int * xcb_dri3_buffer_from_pixmap_reply_fds
563  **
564  ** @param xcb_connection_t *c
565  ** @param xcb_dri3_buffer_from_pixmap_reply_t *reply
566  ** @returns int *
567  **
568  *****************************************************************************/
569 
570 int *
573 
586 /*****************************************************************************
587  **
588  ** xcb_void_cookie_t xcb_dri3_fence_from_fd_checked
589  **
590  ** @param xcb_connection_t *c
591  ** @param xcb_drawable_t drawable
592  ** @param uint32_t fence
593  ** @param uint8_t initially_triggered
594  ** @param int32_t fence_fd
595  ** @returns xcb_void_cookie_t
596  **
597  *****************************************************************************/
598 
601  xcb_drawable_t drawable ,
602  uint32_t fence ,
603  uint8_t initially_triggered ,
604  int32_t fence_fd );
605 
615 /*****************************************************************************
616  **
617  ** xcb_void_cookie_t xcb_dri3_fence_from_fd
618  **
619  ** @param xcb_connection_t *c
620  ** @param xcb_drawable_t drawable
621  ** @param uint32_t fence
622  ** @param uint8_t initially_triggered
623  ** @param int32_t fence_fd
624  ** @returns xcb_void_cookie_t
625  **
626  *****************************************************************************/
627 
630  xcb_drawable_t drawable ,
631  uint32_t fence ,
632  uint8_t initially_triggered ,
633  int32_t fence_fd );
634 
644 /*****************************************************************************
645  **
646  ** xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence
647  **
648  ** @param xcb_connection_t *c
649  ** @param xcb_drawable_t drawable
650  ** @param uint32_t fence
651  ** @returns xcb_dri3_fd_from_fence_cookie_t
652  **
653  *****************************************************************************/
654 
657  xcb_drawable_t drawable ,
658  uint32_t fence );
659 
672 /*****************************************************************************
673  **
674  ** xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence_unchecked
675  **
676  ** @param xcb_connection_t *c
677  ** @param xcb_drawable_t drawable
678  ** @param uint32_t fence
679  ** @returns xcb_dri3_fd_from_fence_cookie_t
680  **
681  *****************************************************************************/
682 
685  xcb_drawable_t drawable ,
686  uint32_t fence );
687 
703 /*****************************************************************************
704  **
705  ** xcb_dri3_fd_from_fence_reply_t * xcb_dri3_fd_from_fence_reply
706  **
707  ** @param xcb_connection_t *c
708  ** @param xcb_dri3_fd_from_fence_cookie_t cookie
709  ** @param xcb_generic_error_t **e
710  ** @returns xcb_dri3_fd_from_fence_reply_t *
711  **
712  *****************************************************************************/
713 
717  xcb_generic_error_t **e );
718 
729 /*****************************************************************************
730  **
731  ** int * xcb_dri3_fd_from_fence_reply_fds
732  **
733  ** @param xcb_connection_t *c
734  ** @param xcb_dri3_fd_from_fence_reply_t *reply
735  ** @returns int *
736  **
737  *****************************************************************************/
738 
739 int *
742 
743 
744 #ifdef __cplusplus
745 }
746 #endif
747 
748 #endif
749