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
30 typedef struct xcb_dri3_query_version_cookie_t {
31 unsigned int sequence;
32 } xcb_dri3_query_version_cookie_t;
33
35 #define XCB_DRI3_QUERY_VERSION 0
36
40 typedef struct xcb_dri3_query_version_request_t {
41 uint8_t major_opcode;
42 uint8_t minor_opcode;
43 uint16_t length;
44 uint32_t major_version;
45 uint32_t minor_version;
46 } xcb_dri3_query_version_request_t;
47
51 typedef struct xcb_dri3_query_version_reply_t {
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;
58 } xcb_dri3_query_version_reply_t;
59
63 typedef struct xcb_dri3_open_cookie_t {
64 unsigned int sequence;
65 } xcb_dri3_open_cookie_t;
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;
79 } xcb_dri3_open_request_t;
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];
90 } xcb_dri3_open_reply_t;
91
93 #define XCB_DRI3_PIXMAP_FROM_BUFFER 2
94
98 typedef struct xcb_dri3_pixmap_from_buffer_request_t {
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;
110 } xcb_dri3_pixmap_from_buffer_request_t;
111
115 typedef struct xcb_dri3_buffer_from_pixmap_cookie_t {
116 unsigned int sequence;
117 } xcb_dri3_buffer_from_pixmap_cookie_t;
118
120 #define XCB_DRI3_BUFFER_FROM_PIXMAP 3
121
125 typedef struct xcb_dri3_buffer_from_pixmap_request_t {
126 uint8_t major_opcode;
127 uint8_t minor_opcode;
128 uint16_t length;
129 xcb_pixmap_t pixmap;
130 } xcb_dri3_buffer_from_pixmap_request_t;
131
135 typedef struct xcb_dri3_buffer_from_pixmap_reply_t {
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];
147 } xcb_dri3_buffer_from_pixmap_reply_t;
148
150 #define XCB_DRI3_FENCE_FROM_FD 4
151
155 typedef struct xcb_dri3_fence_from_fd_request_t {
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];
163 } xcb_dri3_fence_from_fd_request_t;
164
168 typedef struct xcb_dri3_fd_from_fence_cookie_t {
169 unsigned int sequence;
170 } xcb_dri3_fd_from_fence_cookie_t;
171
173 #define XCB_DRI3_FD_FROM_FENCE 5
174
178 typedef struct xcb_dri3_fd_from_fence_request_t {
179 uint8_t major_opcode;
180 uint8_t minor_opcode;
181 uint16_t length;
182 xcb_drawable_t drawable;
183 uint32_t fence;
184 } xcb_dri3_fd_from_fence_request_t;
185
189 typedef struct xcb_dri3_fd_from_fence_reply_t {
190 uint8_t response_type;
191 uint8_t nfd;
192 uint16_t sequence;
193 uint32_t length;
194 uint8_t pad0[24];
195 } xcb_dri3_fd_from_fence_reply_t;
196
205 xcb_dri3_query_version_cookie_t
206 xcb_dri3_query_version (xcb_connection_t *c,
207 uint32_t major_version,
208 uint32_t minor_version);
209
221 xcb_dri3_query_version_cookie_t
222 xcb_dri3_query_version_unchecked (xcb_connection_t *c,
223 uint32_t major_version,
224 uint32_t minor_version);
225
240 xcb_dri3_query_version_reply_t *
241 xcb_dri3_query_version_reply (xcb_connection_t *c,
242 xcb_dri3_query_version_cookie_t cookie ,
243 xcb_generic_error_t **e);
244
253 xcb_dri3_open_cookie_t
254 xcb_dri3_open (xcb_connection_t *c,
255 xcb_drawable_t drawable,
256 uint32_t provider);
257
269 xcb_dri3_open_cookie_t
270 xcb_dri3_open_unchecked (xcb_connection_t *c,
271 xcb_drawable_t drawable,
272 uint32_t provider);
273
288 xcb_dri3_open_reply_t *
289 xcb_dri3_open_reply (xcb_connection_t *c,
290 xcb_dri3_open_cookie_t cookie ,
291 xcb_generic_error_t **e);
292
302 int *
303 xcb_dri3_open_reply_fds (xcb_connection_t *c ,
304 xcb_dri3_open_reply_t *reply);
305
317 xcb_void_cookie_t
318 xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c,
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
337 xcb_void_cookie_t
338 xcb_dri3_pixmap_from_buffer (xcb_connection_t *c,
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
357 xcb_dri3_buffer_from_pixmap_cookie_t
358 xcb_dri3_buffer_from_pixmap (xcb_connection_t *c,
359 xcb_pixmap_t pixmap);
360
372 xcb_dri3_buffer_from_pixmap_cookie_t
373 xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c,
374 xcb_pixmap_t pixmap);
375
390 xcb_dri3_buffer_from_pixmap_reply_t *
391 xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t *c,
392 xcb_dri3_buffer_from_pixmap_cookie_t cookie ,
393 xcb_generic_error_t **e);
394
404 int *
405 xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t *c ,
406 xcb_dri3_buffer_from_pixmap_reply_t *reply);
407
419 xcb_void_cookie_t
420 xcb_dri3_fence_from_fd_checked (xcb_connection_t *c,
421 xcb_drawable_t drawable,
422 uint32_t fence,
423 uint8_t initially_triggered,
424 int32_t fence_fd);
425
434 xcb_void_cookie_t
435 xcb_dri3_fence_from_fd (xcb_connection_t *c,
436 xcb_drawable_t drawable,
437 uint32_t fence,
438 uint8_t initially_triggered,
439 int32_t fence_fd);
440
449 xcb_dri3_fd_from_fence_cookie_t
450 xcb_dri3_fd_from_fence (xcb_connection_t *c,
451 xcb_drawable_t drawable,
452 uint32_t fence);
453
465 xcb_dri3_fd_from_fence_cookie_t
466 xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c,
467 xcb_drawable_t drawable,
468 uint32_t fence);
469
484 xcb_dri3_fd_from_fence_reply_t *
485 xcb_dri3_fd_from_fence_reply (xcb_connection_t *c,
486 xcb_dri3_fd_from_fence_cookie_t cookie ,
487 xcb_generic_error_t **e);
488
498 int *
499 xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t *c ,
500 xcb_dri3_fd_from_fence_reply_t *reply);
501
502
503 #ifdef __cplusplus
504 }
505 #endif
506
507 #endif
508
xcb_generic_error_t
Generic error.
Definition: xcb.h:170
xcb_dri3_query_version_reply
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
xcb_dri3_buffer_from_pixmap_reply_t
Definition: dri3.h:135
xcb_dri3_buffer_from_pixmap_unchecked
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
xcb_dri3_fd_from_fence_request_t
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
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
xcb_dri3_pixmap_from_buffer_request_t
Definition: dri3.h:98
xcb_dri3_open_request_t
struct xcb_dri3_open_request_t xcb_dri3_open_request_t
xcb_dri3_open_request_t
xcb_dri3_pixmap_from_buffer_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_unchecked
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_unchecked
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
xcb_dri3_buffer_from_pixmap_request_t
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
xcb_dri3_fence_from_fd_request_t
Definition: dri3.h:155
xcb_extension_t
Definition: xcbext.h:39
xcb_dri3_query_version_cookie_t
struct xcb_dri3_query_version_cookie_t xcb_dri3_query_version_cookie_t
xcb_dri3_query_version_cookie_t
xcb_dri3_fd_from_fence_reply_fds
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
xcb_dri3_query_version_request_t
Definition: dri3.h:40
xcb_dri3_open_cookie_t
struct xcb_dri3_open_cookie_t xcb_dri3_open_cookie_t
xcb_dri3_open_cookie_t
xcb_dri3_buffer_from_pixmap
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_unchecked
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_dri3_fence_from_fd
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_dri3_pixmap_from_buffer
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
xcb_dri3_fd_from_fence_request_t
Definition: dri3.h:178
xcb_dri3_fd_from_fence
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
xcb_dri3_buffer_from_pixmap_cookie_t
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
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
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
xcb_dri3_buffer_from_pixmap_reply_t
struct xcb_dri3_buffer_from_pixmap_reply_t xcb_dri3_buffer_from_pixmap_reply_t
xcb_dri3_buffer_from_pixmap_reply_t
xcb_dri3_open_reply_t
struct xcb_dri3_open_reply_t xcb_dri3_open_reply_t
xcb_dri3_open_reply_t
xcb_dri3_open_request_t
xcb_dri3_open_request_t
Definition: dri3.h:73
xcb_dri3_fd_from_fence_reply_t
struct xcb_dri3_fd_from_fence_reply_t xcb_dri3_fd_from_fence_reply_t
xcb_dri3_fd_from_fence_reply_t
xcb_dri3_query_version_request_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
xcb_dri3_query_version_reply_t
Definition: dri3.h:51
xcb_dri3_buffer_from_pixmap_request_t
xcb_dri3_buffer_from_pixmap_request_t
Definition: dri3.h:125
xcb_dri3_pixmap_from_buffer_checked
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
xcb_dri3_open_reply_t
Definition: dri3.h:84
xcb_dri3_fd_from_fence_cookie_t
struct xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence_cookie_t
xcb_dri3_fd_from_fence_cookie_t
xcb_dri3_open_reply_fds
int * xcb_dri3_open_reply_fds(xcb_connection_t *c, xcb_dri3_open_reply_t *reply)
Definition: dri3.c:150
xcb_dri3_buffer_from_pixmap_cookie_t
xcb_dri3_buffer_from_pixmap_cookie_t
Definition: dri3.h:115
xcb_dri3_fence_from_fd_request_t
struct xcb_dri3_fence_from_fd_request_t xcb_dri3_fence_from_fd_request_t
xcb_dri3_fence_from_fd_request_t
xcb_dri3_open_cookie_t
xcb_dri3_open_cookie_t
Definition: dri3.h:63
xcb.h
xcb_dri3_fd_from_fence_reply_t
xcb_dri3_fd_from_fence_reply_t
Definition: dri3.h:189
xcb_dri3_query_version_cookie_t
xcb_dri3_query_version_cookie_t
Definition: dri3.h:30
xcb_dri3_fence_from_fd_checked
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
xcb_connection_t
Definition: xcbint.h:195
xcb_dri3_query_version_reply_t
struct xcb_dri3_query_version_reply_t xcb_dri3_query_version_reply_t
xcb_dri3_query_version_reply_t
xcb_void_cookie_t
Generic cookie.
Definition: xcb.h:187
xcb_dri3_fd_from_fence_reply
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
xcb_dri3_buffer_from_pixmap_reply_fds
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
xcb_dri3_open_cookie_t xcb_dri3_open(xcb_connection_t *c, xcb_drawable_t drawable, uint32_t provider)
Definition: dri3.c:86
xcb_dri3_fd_from_fence_cookie_t
xcb_dri3_fd_from_fence_cookie_t
Definition: dri3.h:168