XCB  1.12
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 
207  uint32_t major_version,
208  uint32_t minor_version);
209 
223  uint32_t major_version,
224  uint32_t minor_version);
225 
243  xcb_generic_error_t **e);
244 
255  xcb_drawable_t drawable,
256  uint32_t provider);
257 
271  xcb_drawable_t drawable,
272  uint32_t provider);
273 
290  xcb_dri3_open_cookie_t cookie ,
291  xcb_generic_error_t **e);
292 
302 int *
304  xcb_dri3_open_reply_t *reply);
305 
319  xcb_pixmap_t pixmap,
320  xcb_drawable_t drawable,
321  uint32_t size,
322  uint16_t width,
323  uint16_t height,
324  uint16_t stride,
325  uint8_t depth,
326  uint8_t bpp,
327  int32_t pixmap_fd);
328 
339  xcb_pixmap_t pixmap,
340  xcb_drawable_t drawable,
341  uint32_t size,
342  uint16_t width,
343  uint16_t height,
344  uint16_t stride,
345  uint8_t depth,
346  uint8_t bpp,
347  int32_t pixmap_fd);
348 
359  xcb_pixmap_t pixmap);
360 
374  xcb_pixmap_t pixmap);
375 
393  xcb_generic_error_t **e);
394 
404 int *
407 
421  xcb_drawable_t drawable,
422  uint32_t fence,
423  uint8_t initially_triggered,
424  int32_t fence_fd);
425 
436  xcb_drawable_t drawable,
437  uint32_t fence,
438  uint8_t initially_triggered,
439  int32_t fence_fd);
440 
451  xcb_drawable_t drawable,
452  uint32_t fence);
453 
467  xcb_drawable_t drawable,
468  uint32_t fence);
469 
487  xcb_generic_error_t **e);
488 
498 int *
501 
502 
503 #ifdef __cplusplus
504 }
505 #endif
506 
507 #endif
508 
Generic error.
Definition: xcb.h:170
xcb_dri3_query_version_reply_t * xcb_dri3_query_version_reply(xcb_connection_t *c, xcb_dri3_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: dri3.c:78
xcb_dri3_buffer_from_pixmap_reply_t
Definition: dri3.h:135
xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap_unchecked(xcb_connection_t *c, xcb_pixmap_t pixmap)
Definition: dri3.c:269
struct xcb_dri3_fd_from_fence_request_t xcb_dri3_fd_from_fence_request_t
xcb_dri3_fd_from_fence_request_t
xcb_dri3_query_version_cookie_t xcb_dri3_query_version(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition: dri3.c:22
xcb_dri3_pixmap_from_buffer_request_t
Definition: dri3.h:98
struct xcb_dri3_open_request_t xcb_dri3_open_request_t
xcb_dri3_open_request_t
struct xcb_dri3_pixmap_from_buffer_request_t xcb_dri3_pixmap_from_buffer_request_t
xcb_dri3_pixmap_from_buffer_request_t
xcb_dri3_open_cookie_t xcb_dri3_open_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t provider)
Definition: dri3.c:114
xcb_dri3_query_version_cookie_t xcb_dri3_query_version_unchecked(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition: dri3.c:50
struct xcb_dri3_buffer_from_pixmap_request_t xcb_dri3_buffer_from_pixmap_request_t
xcb_dri3_buffer_from_pixmap_request_t
xcb_dri3_fence_from_fd_request_t
Definition: dri3.h:155
Definition: xcbext.h:39
struct xcb_dri3_query_version_cookie_t xcb_dri3_query_version_cookie_t
xcb_dri3_query_version_cookie_t
int * xcb_dri3_fd_from_fence_reply_fds(xcb_connection_t *c, xcb_dri3_fd_from_fence_reply_t *reply)
Definition: dri3.c:442
xcb_dri3_query_version_request_t
Definition: dri3.h:40
struct xcb_dri3_open_cookie_t xcb_dri3_open_cookie_t
xcb_dri3_open_cookie_t
xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap(xcb_connection_t *c, xcb_pixmap_t pixmap)
Definition: dri3.c:243
xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence_unchecked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t fence)
Definition: dri3.c:406
xcb_void_cookie_t xcb_dri3_fence_from_fd(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t fence, uint8_t initially_triggered, int32_t fence_fd)
Definition: dri3.c:344
xcb_void_cookie_t xcb_dri3_pixmap_from_buffer(xcb_connection_t *c, xcb_pixmap_t pixmap, xcb_drawable_t drawable, uint32_t size, uint16_t width, uint16_t height, uint16_t stride, uint8_t depth, uint8_t bpp, int32_t pixmap_fd)
Definition: dri3.c:200
xcb_dri3_fd_from_fence_request_t
Definition: dri3.h:178
xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t fence)
Definition: dri3.c:378
struct xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap_cookie_t
xcb_dri3_buffer_from_pixmap_cookie_t
xcb_dri3_open_reply_t * xcb_dri3_open_reply(xcb_connection_t *c, xcb_dri3_open_cookie_t cookie, xcb_generic_error_t **e)
Definition: dri3.c:142
xcb_dri3_buffer_from_pixmap_reply_t * xcb_dri3_buffer_from_pixmap_reply(xcb_connection_t *c, xcb_dri3_buffer_from_pixmap_cookie_t cookie, xcb_generic_error_t **e)
Definition: dri3.c:295
struct xcb_dri3_buffer_from_pixmap_reply_t xcb_dri3_buffer_from_pixmap_reply_t
xcb_dri3_buffer_from_pixmap_reply_t
struct xcb_dri3_open_reply_t xcb_dri3_open_reply_t
xcb_dri3_open_reply_t
xcb_dri3_open_request_t
Definition: dri3.h:73
struct xcb_dri3_fd_from_fence_reply_t xcb_dri3_fd_from_fence_reply_t
xcb_dri3_fd_from_fence_reply_t
struct xcb_dri3_query_version_request_t xcb_dri3_query_version_request_t
xcb_dri3_query_version_request_t
xcb_dri3_query_version_reply_t
Definition: dri3.h:51
xcb_dri3_buffer_from_pixmap_request_t
Definition: dri3.h:125
xcb_void_cookie_t xcb_dri3_pixmap_from_buffer_checked(xcb_connection_t *c, xcb_pixmap_t pixmap, xcb_drawable_t drawable, uint32_t size, uint16_t width, uint16_t height, uint16_t stride, uint8_t depth, uint8_t bpp, int32_t pixmap_fd)
Definition: dri3.c:157
xcb_dri3_open_reply_t
Definition: dri3.h:84
struct xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence_cookie_t
xcb_dri3_fd_from_fence_cookie_t
int * xcb_dri3_open_reply_fds(xcb_connection_t *c, xcb_dri3_open_reply_t *reply)
Definition: dri3.c:150
struct xcb_dri3_fence_from_fd_request_t xcb_dri3_fence_from_fd_request_t
xcb_dri3_fence_from_fd_request_t
xcb_dri3_fd_from_fence_reply_t
Definition: dri3.h:189
xcb_void_cookie_t xcb_dri3_fence_from_fd_checked(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t fence, uint8_t initially_triggered, int32_t fence_fd)
Definition: dri3.c:310
Definition: xcbint.h:198
struct xcb_dri3_query_version_reply_t xcb_dri3_query_version_reply_t
xcb_dri3_query_version_reply_t
xcb_dri3_fd_from_fence_reply_t * xcb_dri3_fd_from_fence_reply(xcb_connection_t *c, xcb_dri3_fd_from_fence_cookie_t cookie, xcb_generic_error_t **e)
Definition: dri3.c:434
int * xcb_dri3_buffer_from_pixmap_reply_fds(xcb_connection_t *c, xcb_dri3_buffer_from_pixmap_reply_t *reply)
Definition: dri3.c:303
xcb_dri3_open_cookie_t xcb_dri3_open(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t provider)
Definition: dri3.c:86