jpayne@69
|
1 /*
|
jpayne@69
|
2 * This file generated automatically from dri3.xml by c_client.py.
|
jpayne@69
|
3 * Edit at your peril.
|
jpayne@69
|
4 */
|
jpayne@69
|
5
|
jpayne@69
|
6 /**
|
jpayne@69
|
7 * @defgroup XCB_DRI3_API XCB DRI3 API
|
jpayne@69
|
8 * @brief DRI3 XCB Protocol Implementation.
|
jpayne@69
|
9 * @{
|
jpayne@69
|
10 **/
|
jpayne@69
|
11
|
jpayne@69
|
12 #ifndef __DRI3_H
|
jpayne@69
|
13 #define __DRI3_H
|
jpayne@69
|
14
|
jpayne@69
|
15 #include "xcb.h"
|
jpayne@69
|
16 #include "xproto.h"
|
jpayne@69
|
17
|
jpayne@69
|
18 #ifdef __cplusplus
|
jpayne@69
|
19 extern "C" {
|
jpayne@69
|
20 #endif
|
jpayne@69
|
21
|
jpayne@69
|
22 #define XCB_DRI3_MAJOR_VERSION 1
|
jpayne@69
|
23 #define XCB_DRI3_MINOR_VERSION 4
|
jpayne@69
|
24
|
jpayne@69
|
25 extern xcb_extension_t xcb_dri3_id;
|
jpayne@69
|
26
|
jpayne@69
|
27 typedef uint32_t xcb_dri3_syncobj_t;
|
jpayne@69
|
28
|
jpayne@69
|
29 /**
|
jpayne@69
|
30 * @brief xcb_dri3_syncobj_iterator_t
|
jpayne@69
|
31 **/
|
jpayne@69
|
32 typedef struct xcb_dri3_syncobj_iterator_t {
|
jpayne@69
|
33 xcb_dri3_syncobj_t *data;
|
jpayne@69
|
34 int rem;
|
jpayne@69
|
35 int index;
|
jpayne@69
|
36 } xcb_dri3_syncobj_iterator_t;
|
jpayne@69
|
37
|
jpayne@69
|
38 /**
|
jpayne@69
|
39 * @brief xcb_dri3_query_version_cookie_t
|
jpayne@69
|
40 **/
|
jpayne@69
|
41 typedef struct xcb_dri3_query_version_cookie_t {
|
jpayne@69
|
42 unsigned int sequence;
|
jpayne@69
|
43 } xcb_dri3_query_version_cookie_t;
|
jpayne@69
|
44
|
jpayne@69
|
45 /** Opcode for xcb_dri3_query_version. */
|
jpayne@69
|
46 #define XCB_DRI3_QUERY_VERSION 0
|
jpayne@69
|
47
|
jpayne@69
|
48 /**
|
jpayne@69
|
49 * @brief xcb_dri3_query_version_request_t
|
jpayne@69
|
50 **/
|
jpayne@69
|
51 typedef struct xcb_dri3_query_version_request_t {
|
jpayne@69
|
52 uint8_t major_opcode;
|
jpayne@69
|
53 uint8_t minor_opcode;
|
jpayne@69
|
54 uint16_t length;
|
jpayne@69
|
55 uint32_t major_version;
|
jpayne@69
|
56 uint32_t minor_version;
|
jpayne@69
|
57 } xcb_dri3_query_version_request_t;
|
jpayne@69
|
58
|
jpayne@69
|
59 /**
|
jpayne@69
|
60 * @brief xcb_dri3_query_version_reply_t
|
jpayne@69
|
61 **/
|
jpayne@69
|
62 typedef struct xcb_dri3_query_version_reply_t {
|
jpayne@69
|
63 uint8_t response_type;
|
jpayne@69
|
64 uint8_t pad0;
|
jpayne@69
|
65 uint16_t sequence;
|
jpayne@69
|
66 uint32_t length;
|
jpayne@69
|
67 uint32_t major_version;
|
jpayne@69
|
68 uint32_t minor_version;
|
jpayne@69
|
69 } xcb_dri3_query_version_reply_t;
|
jpayne@69
|
70
|
jpayne@69
|
71 /**
|
jpayne@69
|
72 * @brief xcb_dri3_open_cookie_t
|
jpayne@69
|
73 **/
|
jpayne@69
|
74 typedef struct xcb_dri3_open_cookie_t {
|
jpayne@69
|
75 unsigned int sequence;
|
jpayne@69
|
76 } xcb_dri3_open_cookie_t;
|
jpayne@69
|
77
|
jpayne@69
|
78 /** Opcode for xcb_dri3_open. */
|
jpayne@69
|
79 #define XCB_DRI3_OPEN 1
|
jpayne@69
|
80
|
jpayne@69
|
81 /**
|
jpayne@69
|
82 * @brief xcb_dri3_open_request_t
|
jpayne@69
|
83 **/
|
jpayne@69
|
84 typedef struct xcb_dri3_open_request_t {
|
jpayne@69
|
85 uint8_t major_opcode;
|
jpayne@69
|
86 uint8_t minor_opcode;
|
jpayne@69
|
87 uint16_t length;
|
jpayne@69
|
88 xcb_drawable_t drawable;
|
jpayne@69
|
89 uint32_t provider;
|
jpayne@69
|
90 } xcb_dri3_open_request_t;
|
jpayne@69
|
91
|
jpayne@69
|
92 /**
|
jpayne@69
|
93 * @brief xcb_dri3_open_reply_t
|
jpayne@69
|
94 **/
|
jpayne@69
|
95 typedef struct xcb_dri3_open_reply_t {
|
jpayne@69
|
96 uint8_t response_type;
|
jpayne@69
|
97 uint8_t nfd;
|
jpayne@69
|
98 uint16_t sequence;
|
jpayne@69
|
99 uint32_t length;
|
jpayne@69
|
100 uint8_t pad0[24];
|
jpayne@69
|
101 } xcb_dri3_open_reply_t;
|
jpayne@69
|
102
|
jpayne@69
|
103 /** Opcode for xcb_dri3_pixmap_from_buffer. */
|
jpayne@69
|
104 #define XCB_DRI3_PIXMAP_FROM_BUFFER 2
|
jpayne@69
|
105
|
jpayne@69
|
106 /**
|
jpayne@69
|
107 * @brief xcb_dri3_pixmap_from_buffer_request_t
|
jpayne@69
|
108 **/
|
jpayne@69
|
109 typedef struct xcb_dri3_pixmap_from_buffer_request_t {
|
jpayne@69
|
110 uint8_t major_opcode;
|
jpayne@69
|
111 uint8_t minor_opcode;
|
jpayne@69
|
112 uint16_t length;
|
jpayne@69
|
113 xcb_pixmap_t pixmap;
|
jpayne@69
|
114 xcb_drawable_t drawable;
|
jpayne@69
|
115 uint32_t size;
|
jpayne@69
|
116 uint16_t width;
|
jpayne@69
|
117 uint16_t height;
|
jpayne@69
|
118 uint16_t stride;
|
jpayne@69
|
119 uint8_t depth;
|
jpayne@69
|
120 uint8_t bpp;
|
jpayne@69
|
121 } xcb_dri3_pixmap_from_buffer_request_t;
|
jpayne@69
|
122
|
jpayne@69
|
123 /**
|
jpayne@69
|
124 * @brief xcb_dri3_buffer_from_pixmap_cookie_t
|
jpayne@69
|
125 **/
|
jpayne@69
|
126 typedef struct xcb_dri3_buffer_from_pixmap_cookie_t {
|
jpayne@69
|
127 unsigned int sequence;
|
jpayne@69
|
128 } xcb_dri3_buffer_from_pixmap_cookie_t;
|
jpayne@69
|
129
|
jpayne@69
|
130 /** Opcode for xcb_dri3_buffer_from_pixmap. */
|
jpayne@69
|
131 #define XCB_DRI3_BUFFER_FROM_PIXMAP 3
|
jpayne@69
|
132
|
jpayne@69
|
133 /**
|
jpayne@69
|
134 * @brief xcb_dri3_buffer_from_pixmap_request_t
|
jpayne@69
|
135 **/
|
jpayne@69
|
136 typedef struct xcb_dri3_buffer_from_pixmap_request_t {
|
jpayne@69
|
137 uint8_t major_opcode;
|
jpayne@69
|
138 uint8_t minor_opcode;
|
jpayne@69
|
139 uint16_t length;
|
jpayne@69
|
140 xcb_pixmap_t pixmap;
|
jpayne@69
|
141 } xcb_dri3_buffer_from_pixmap_request_t;
|
jpayne@69
|
142
|
jpayne@69
|
143 /**
|
jpayne@69
|
144 * @brief xcb_dri3_buffer_from_pixmap_reply_t
|
jpayne@69
|
145 **/
|
jpayne@69
|
146 typedef struct xcb_dri3_buffer_from_pixmap_reply_t {
|
jpayne@69
|
147 uint8_t response_type;
|
jpayne@69
|
148 uint8_t nfd;
|
jpayne@69
|
149 uint16_t sequence;
|
jpayne@69
|
150 uint32_t length;
|
jpayne@69
|
151 uint32_t size;
|
jpayne@69
|
152 uint16_t width;
|
jpayne@69
|
153 uint16_t height;
|
jpayne@69
|
154 uint16_t stride;
|
jpayne@69
|
155 uint8_t depth;
|
jpayne@69
|
156 uint8_t bpp;
|
jpayne@69
|
157 uint8_t pad0[12];
|
jpayne@69
|
158 } xcb_dri3_buffer_from_pixmap_reply_t;
|
jpayne@69
|
159
|
jpayne@69
|
160 /** Opcode for xcb_dri3_fence_from_fd. */
|
jpayne@69
|
161 #define XCB_DRI3_FENCE_FROM_FD 4
|
jpayne@69
|
162
|
jpayne@69
|
163 /**
|
jpayne@69
|
164 * @brief xcb_dri3_fence_from_fd_request_t
|
jpayne@69
|
165 **/
|
jpayne@69
|
166 typedef struct xcb_dri3_fence_from_fd_request_t {
|
jpayne@69
|
167 uint8_t major_opcode;
|
jpayne@69
|
168 uint8_t minor_opcode;
|
jpayne@69
|
169 uint16_t length;
|
jpayne@69
|
170 xcb_drawable_t drawable;
|
jpayne@69
|
171 uint32_t fence;
|
jpayne@69
|
172 uint8_t initially_triggered;
|
jpayne@69
|
173 uint8_t pad0[3];
|
jpayne@69
|
174 } xcb_dri3_fence_from_fd_request_t;
|
jpayne@69
|
175
|
jpayne@69
|
176 /**
|
jpayne@69
|
177 * @brief xcb_dri3_fd_from_fence_cookie_t
|
jpayne@69
|
178 **/
|
jpayne@69
|
179 typedef struct xcb_dri3_fd_from_fence_cookie_t {
|
jpayne@69
|
180 unsigned int sequence;
|
jpayne@69
|
181 } xcb_dri3_fd_from_fence_cookie_t;
|
jpayne@69
|
182
|
jpayne@69
|
183 /** Opcode for xcb_dri3_fd_from_fence. */
|
jpayne@69
|
184 #define XCB_DRI3_FD_FROM_FENCE 5
|
jpayne@69
|
185
|
jpayne@69
|
186 /**
|
jpayne@69
|
187 * @brief xcb_dri3_fd_from_fence_request_t
|
jpayne@69
|
188 **/
|
jpayne@69
|
189 typedef struct xcb_dri3_fd_from_fence_request_t {
|
jpayne@69
|
190 uint8_t major_opcode;
|
jpayne@69
|
191 uint8_t minor_opcode;
|
jpayne@69
|
192 uint16_t length;
|
jpayne@69
|
193 xcb_drawable_t drawable;
|
jpayne@69
|
194 uint32_t fence;
|
jpayne@69
|
195 } xcb_dri3_fd_from_fence_request_t;
|
jpayne@69
|
196
|
jpayne@69
|
197 /**
|
jpayne@69
|
198 * @brief xcb_dri3_fd_from_fence_reply_t
|
jpayne@69
|
199 **/
|
jpayne@69
|
200 typedef struct xcb_dri3_fd_from_fence_reply_t {
|
jpayne@69
|
201 uint8_t response_type;
|
jpayne@69
|
202 uint8_t nfd;
|
jpayne@69
|
203 uint16_t sequence;
|
jpayne@69
|
204 uint32_t length;
|
jpayne@69
|
205 uint8_t pad0[24];
|
jpayne@69
|
206 } xcb_dri3_fd_from_fence_reply_t;
|
jpayne@69
|
207
|
jpayne@69
|
208 /**
|
jpayne@69
|
209 * @brief xcb_dri3_get_supported_modifiers_cookie_t
|
jpayne@69
|
210 **/
|
jpayne@69
|
211 typedef struct xcb_dri3_get_supported_modifiers_cookie_t {
|
jpayne@69
|
212 unsigned int sequence;
|
jpayne@69
|
213 } xcb_dri3_get_supported_modifiers_cookie_t;
|
jpayne@69
|
214
|
jpayne@69
|
215 /** Opcode for xcb_dri3_get_supported_modifiers. */
|
jpayne@69
|
216 #define XCB_DRI3_GET_SUPPORTED_MODIFIERS 6
|
jpayne@69
|
217
|
jpayne@69
|
218 /**
|
jpayne@69
|
219 * @brief xcb_dri3_get_supported_modifiers_request_t
|
jpayne@69
|
220 **/
|
jpayne@69
|
221 typedef struct xcb_dri3_get_supported_modifiers_request_t {
|
jpayne@69
|
222 uint8_t major_opcode;
|
jpayne@69
|
223 uint8_t minor_opcode;
|
jpayne@69
|
224 uint16_t length;
|
jpayne@69
|
225 uint32_t window;
|
jpayne@69
|
226 uint8_t depth;
|
jpayne@69
|
227 uint8_t bpp;
|
jpayne@69
|
228 uint8_t pad0[2];
|
jpayne@69
|
229 } xcb_dri3_get_supported_modifiers_request_t;
|
jpayne@69
|
230
|
jpayne@69
|
231 /**
|
jpayne@69
|
232 * @brief xcb_dri3_get_supported_modifiers_reply_t
|
jpayne@69
|
233 **/
|
jpayne@69
|
234 typedef struct xcb_dri3_get_supported_modifiers_reply_t {
|
jpayne@69
|
235 uint8_t response_type;
|
jpayne@69
|
236 uint8_t pad0;
|
jpayne@69
|
237 uint16_t sequence;
|
jpayne@69
|
238 uint32_t length;
|
jpayne@69
|
239 uint32_t num_window_modifiers;
|
jpayne@69
|
240 uint32_t num_screen_modifiers;
|
jpayne@69
|
241 uint8_t pad1[16];
|
jpayne@69
|
242 } xcb_dri3_get_supported_modifiers_reply_t;
|
jpayne@69
|
243
|
jpayne@69
|
244 /** Opcode for xcb_dri3_pixmap_from_buffers. */
|
jpayne@69
|
245 #define XCB_DRI3_PIXMAP_FROM_BUFFERS 7
|
jpayne@69
|
246
|
jpayne@69
|
247 /**
|
jpayne@69
|
248 * @brief xcb_dri3_pixmap_from_buffers_request_t
|
jpayne@69
|
249 **/
|
jpayne@69
|
250 typedef struct xcb_dri3_pixmap_from_buffers_request_t {
|
jpayne@69
|
251 uint8_t major_opcode;
|
jpayne@69
|
252 uint8_t minor_opcode;
|
jpayne@69
|
253 uint16_t length;
|
jpayne@69
|
254 xcb_pixmap_t pixmap;
|
jpayne@69
|
255 xcb_window_t window;
|
jpayne@69
|
256 uint8_t num_buffers;
|
jpayne@69
|
257 uint8_t pad0[3];
|
jpayne@69
|
258 uint16_t width;
|
jpayne@69
|
259 uint16_t height;
|
jpayne@69
|
260 uint32_t stride0;
|
jpayne@69
|
261 uint32_t offset0;
|
jpayne@69
|
262 uint32_t stride1;
|
jpayne@69
|
263 uint32_t offset1;
|
jpayne@69
|
264 uint32_t stride2;
|
jpayne@69
|
265 uint32_t offset2;
|
jpayne@69
|
266 uint32_t stride3;
|
jpayne@69
|
267 uint32_t offset3;
|
jpayne@69
|
268 uint8_t depth;
|
jpayne@69
|
269 uint8_t bpp;
|
jpayne@69
|
270 uint8_t pad1[2];
|
jpayne@69
|
271 uint64_t modifier;
|
jpayne@69
|
272 } xcb_dri3_pixmap_from_buffers_request_t;
|
jpayne@69
|
273
|
jpayne@69
|
274 /**
|
jpayne@69
|
275 * @brief xcb_dri3_buffers_from_pixmap_cookie_t
|
jpayne@69
|
276 **/
|
jpayne@69
|
277 typedef struct xcb_dri3_buffers_from_pixmap_cookie_t {
|
jpayne@69
|
278 unsigned int sequence;
|
jpayne@69
|
279 } xcb_dri3_buffers_from_pixmap_cookie_t;
|
jpayne@69
|
280
|
jpayne@69
|
281 /** Opcode for xcb_dri3_buffers_from_pixmap. */
|
jpayne@69
|
282 #define XCB_DRI3_BUFFERS_FROM_PIXMAP 8
|
jpayne@69
|
283
|
jpayne@69
|
284 /**
|
jpayne@69
|
285 * @brief xcb_dri3_buffers_from_pixmap_request_t
|
jpayne@69
|
286 **/
|
jpayne@69
|
287 typedef struct xcb_dri3_buffers_from_pixmap_request_t {
|
jpayne@69
|
288 uint8_t major_opcode;
|
jpayne@69
|
289 uint8_t minor_opcode;
|
jpayne@69
|
290 uint16_t length;
|
jpayne@69
|
291 xcb_pixmap_t pixmap;
|
jpayne@69
|
292 } xcb_dri3_buffers_from_pixmap_request_t;
|
jpayne@69
|
293
|
jpayne@69
|
294 /**
|
jpayne@69
|
295 * @brief xcb_dri3_buffers_from_pixmap_reply_t
|
jpayne@69
|
296 **/
|
jpayne@69
|
297 typedef struct xcb_dri3_buffers_from_pixmap_reply_t {
|
jpayne@69
|
298 uint8_t response_type;
|
jpayne@69
|
299 uint8_t nfd;
|
jpayne@69
|
300 uint16_t sequence;
|
jpayne@69
|
301 uint32_t length;
|
jpayne@69
|
302 uint16_t width;
|
jpayne@69
|
303 uint16_t height;
|
jpayne@69
|
304 uint8_t pad0[4];
|
jpayne@69
|
305 uint64_t modifier;
|
jpayne@69
|
306 uint8_t depth;
|
jpayne@69
|
307 uint8_t bpp;
|
jpayne@69
|
308 uint8_t pad1[6];
|
jpayne@69
|
309 } xcb_dri3_buffers_from_pixmap_reply_t;
|
jpayne@69
|
310
|
jpayne@69
|
311 /** Opcode for xcb_dri3_set_drm_device_in_use. */
|
jpayne@69
|
312 #define XCB_DRI3_SET_DRM_DEVICE_IN_USE 9
|
jpayne@69
|
313
|
jpayne@69
|
314 /**
|
jpayne@69
|
315 * @brief xcb_dri3_set_drm_device_in_use_request_t
|
jpayne@69
|
316 **/
|
jpayne@69
|
317 typedef struct xcb_dri3_set_drm_device_in_use_request_t {
|
jpayne@69
|
318 uint8_t major_opcode;
|
jpayne@69
|
319 uint8_t minor_opcode;
|
jpayne@69
|
320 uint16_t length;
|
jpayne@69
|
321 xcb_window_t window;
|
jpayne@69
|
322 uint32_t drmMajor;
|
jpayne@69
|
323 uint32_t drmMinor;
|
jpayne@69
|
324 } xcb_dri3_set_drm_device_in_use_request_t;
|
jpayne@69
|
325
|
jpayne@69
|
326 /** Opcode for xcb_dri3_import_syncobj. */
|
jpayne@69
|
327 #define XCB_DRI3_IMPORT_SYNCOBJ 10
|
jpayne@69
|
328
|
jpayne@69
|
329 /**
|
jpayne@69
|
330 * @brief xcb_dri3_import_syncobj_request_t
|
jpayne@69
|
331 **/
|
jpayne@69
|
332 typedef struct xcb_dri3_import_syncobj_request_t {
|
jpayne@69
|
333 uint8_t major_opcode;
|
jpayne@69
|
334 uint8_t minor_opcode;
|
jpayne@69
|
335 uint16_t length;
|
jpayne@69
|
336 xcb_dri3_syncobj_t syncobj;
|
jpayne@69
|
337 xcb_drawable_t drawable;
|
jpayne@69
|
338 } xcb_dri3_import_syncobj_request_t;
|
jpayne@69
|
339
|
jpayne@69
|
340 /** Opcode for xcb_dri3_free_syncobj. */
|
jpayne@69
|
341 #define XCB_DRI3_FREE_SYNCOBJ 11
|
jpayne@69
|
342
|
jpayne@69
|
343 /**
|
jpayne@69
|
344 * @brief xcb_dri3_free_syncobj_request_t
|
jpayne@69
|
345 **/
|
jpayne@69
|
346 typedef struct xcb_dri3_free_syncobj_request_t {
|
jpayne@69
|
347 uint8_t major_opcode;
|
jpayne@69
|
348 uint8_t minor_opcode;
|
jpayne@69
|
349 uint16_t length;
|
jpayne@69
|
350 xcb_dri3_syncobj_t syncobj;
|
jpayne@69
|
351 } xcb_dri3_free_syncobj_request_t;
|
jpayne@69
|
352
|
jpayne@69
|
353 /**
|
jpayne@69
|
354 * Get the next element of the iterator
|
jpayne@69
|
355 * @param i Pointer to a xcb_dri3_syncobj_iterator_t
|
jpayne@69
|
356 *
|
jpayne@69
|
357 * Get the next element in the iterator. The member rem is
|
jpayne@69
|
358 * decreased by one. The member data points to the next
|
jpayne@69
|
359 * element. The member index is increased by sizeof(xcb_dri3_syncobj_t)
|
jpayne@69
|
360 */
|
jpayne@69
|
361 void
|
jpayne@69
|
362 xcb_dri3_syncobj_next (xcb_dri3_syncobj_iterator_t *i);
|
jpayne@69
|
363
|
jpayne@69
|
364 /**
|
jpayne@69
|
365 * Return the iterator pointing to the last element
|
jpayne@69
|
366 * @param i An xcb_dri3_syncobj_iterator_t
|
jpayne@69
|
367 * @return The iterator pointing to the last element
|
jpayne@69
|
368 *
|
jpayne@69
|
369 * Set the current element in the iterator to the last element.
|
jpayne@69
|
370 * The member rem is set to 0. The member data points to the
|
jpayne@69
|
371 * last element.
|
jpayne@69
|
372 */
|
jpayne@69
|
373 xcb_generic_iterator_t
|
jpayne@69
|
374 xcb_dri3_syncobj_end (xcb_dri3_syncobj_iterator_t i);
|
jpayne@69
|
375
|
jpayne@69
|
376 /**
|
jpayne@69
|
377 *
|
jpayne@69
|
378 * @param c The connection
|
jpayne@69
|
379 * @return A cookie
|
jpayne@69
|
380 *
|
jpayne@69
|
381 * Delivers a request to the X server.
|
jpayne@69
|
382 *
|
jpayne@69
|
383 */
|
jpayne@69
|
384 xcb_dri3_query_version_cookie_t
|
jpayne@69
|
385 xcb_dri3_query_version (xcb_connection_t *c,
|
jpayne@69
|
386 uint32_t major_version,
|
jpayne@69
|
387 uint32_t minor_version);
|
jpayne@69
|
388
|
jpayne@69
|
389 /**
|
jpayne@69
|
390 *
|
jpayne@69
|
391 * @param c The connection
|
jpayne@69
|
392 * @return A cookie
|
jpayne@69
|
393 *
|
jpayne@69
|
394 * Delivers a request to the X server.
|
jpayne@69
|
395 *
|
jpayne@69
|
396 * This form can be used only if the request will cause
|
jpayne@69
|
397 * a reply to be generated. Any returned error will be
|
jpayne@69
|
398 * placed in the event queue.
|
jpayne@69
|
399 */
|
jpayne@69
|
400 xcb_dri3_query_version_cookie_t
|
jpayne@69
|
401 xcb_dri3_query_version_unchecked (xcb_connection_t *c,
|
jpayne@69
|
402 uint32_t major_version,
|
jpayne@69
|
403 uint32_t minor_version);
|
jpayne@69
|
404
|
jpayne@69
|
405 /**
|
jpayne@69
|
406 * Return the reply
|
jpayne@69
|
407 * @param c The connection
|
jpayne@69
|
408 * @param cookie The cookie
|
jpayne@69
|
409 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
410 *
|
jpayne@69
|
411 * Returns the reply of the request asked by
|
jpayne@69
|
412 *
|
jpayne@69
|
413 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
414 * xcb_dri3_query_version_unchecked(). is used.
|
jpayne@69
|
415 * Otherwise, it stores the error if any.
|
jpayne@69
|
416 *
|
jpayne@69
|
417 * The returned value must be freed by the caller using free().
|
jpayne@69
|
418 */
|
jpayne@69
|
419 xcb_dri3_query_version_reply_t *
|
jpayne@69
|
420 xcb_dri3_query_version_reply (xcb_connection_t *c,
|
jpayne@69
|
421 xcb_dri3_query_version_cookie_t cookie /**< */,
|
jpayne@69
|
422 xcb_generic_error_t **e);
|
jpayne@69
|
423
|
jpayne@69
|
424 /**
|
jpayne@69
|
425 *
|
jpayne@69
|
426 * @param c The connection
|
jpayne@69
|
427 * @return A cookie
|
jpayne@69
|
428 *
|
jpayne@69
|
429 * Delivers a request to the X server.
|
jpayne@69
|
430 *
|
jpayne@69
|
431 */
|
jpayne@69
|
432 xcb_dri3_open_cookie_t
|
jpayne@69
|
433 xcb_dri3_open (xcb_connection_t *c,
|
jpayne@69
|
434 xcb_drawable_t drawable,
|
jpayne@69
|
435 uint32_t provider);
|
jpayne@69
|
436
|
jpayne@69
|
437 /**
|
jpayne@69
|
438 *
|
jpayne@69
|
439 * @param c The connection
|
jpayne@69
|
440 * @return A cookie
|
jpayne@69
|
441 *
|
jpayne@69
|
442 * Delivers a request to the X server.
|
jpayne@69
|
443 *
|
jpayne@69
|
444 * This form can be used only if the request will cause
|
jpayne@69
|
445 * a reply to be generated. Any returned error will be
|
jpayne@69
|
446 * placed in the event queue.
|
jpayne@69
|
447 */
|
jpayne@69
|
448 xcb_dri3_open_cookie_t
|
jpayne@69
|
449 xcb_dri3_open_unchecked (xcb_connection_t *c,
|
jpayne@69
|
450 xcb_drawable_t drawable,
|
jpayne@69
|
451 uint32_t provider);
|
jpayne@69
|
452
|
jpayne@69
|
453 /**
|
jpayne@69
|
454 * Return the reply
|
jpayne@69
|
455 * @param c The connection
|
jpayne@69
|
456 * @param cookie The cookie
|
jpayne@69
|
457 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
458 *
|
jpayne@69
|
459 * Returns the reply of the request asked by
|
jpayne@69
|
460 *
|
jpayne@69
|
461 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
462 * xcb_dri3_open_unchecked(). is used.
|
jpayne@69
|
463 * Otherwise, it stores the error if any.
|
jpayne@69
|
464 *
|
jpayne@69
|
465 * The returned value must be freed by the caller using free().
|
jpayne@69
|
466 */
|
jpayne@69
|
467 xcb_dri3_open_reply_t *
|
jpayne@69
|
468 xcb_dri3_open_reply (xcb_connection_t *c,
|
jpayne@69
|
469 xcb_dri3_open_cookie_t cookie /**< */,
|
jpayne@69
|
470 xcb_generic_error_t **e);
|
jpayne@69
|
471
|
jpayne@69
|
472 /**
|
jpayne@69
|
473 * Return the reply fds
|
jpayne@69
|
474 * @param c The connection
|
jpayne@69
|
475 * @param reply The reply
|
jpayne@69
|
476 *
|
jpayne@69
|
477 * Returns a pointer to the array of reply fds of the reply.
|
jpayne@69
|
478 *
|
jpayne@69
|
479 * The returned value points into the reply and must not be free().
|
jpayne@69
|
480 * The fds are not managed by xcb. You must close() them before freeing the reply.
|
jpayne@69
|
481 */
|
jpayne@69
|
482 int *
|
jpayne@69
|
483 xcb_dri3_open_reply_fds (xcb_connection_t *c /**< */,
|
jpayne@69
|
484 xcb_dri3_open_reply_t *reply);
|
jpayne@69
|
485
|
jpayne@69
|
486 /**
|
jpayne@69
|
487 *
|
jpayne@69
|
488 * @param c The connection
|
jpayne@69
|
489 * @return A cookie
|
jpayne@69
|
490 *
|
jpayne@69
|
491 * Delivers a request to the X server.
|
jpayne@69
|
492 *
|
jpayne@69
|
493 * This form can be used only if the request will not cause
|
jpayne@69
|
494 * a reply to be generated. Any returned error will be
|
jpayne@69
|
495 * saved for handling by xcb_request_check().
|
jpayne@69
|
496 */
|
jpayne@69
|
497 xcb_void_cookie_t
|
jpayne@69
|
498 xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c,
|
jpayne@69
|
499 xcb_pixmap_t pixmap,
|
jpayne@69
|
500 xcb_drawable_t drawable,
|
jpayne@69
|
501 uint32_t size,
|
jpayne@69
|
502 uint16_t width,
|
jpayne@69
|
503 uint16_t height,
|
jpayne@69
|
504 uint16_t stride,
|
jpayne@69
|
505 uint8_t depth,
|
jpayne@69
|
506 uint8_t bpp,
|
jpayne@69
|
507 int32_t pixmap_fd);
|
jpayne@69
|
508
|
jpayne@69
|
509 /**
|
jpayne@69
|
510 *
|
jpayne@69
|
511 * @param c The connection
|
jpayne@69
|
512 * @return A cookie
|
jpayne@69
|
513 *
|
jpayne@69
|
514 * Delivers a request to the X server.
|
jpayne@69
|
515 *
|
jpayne@69
|
516 */
|
jpayne@69
|
517 xcb_void_cookie_t
|
jpayne@69
|
518 xcb_dri3_pixmap_from_buffer (xcb_connection_t *c,
|
jpayne@69
|
519 xcb_pixmap_t pixmap,
|
jpayne@69
|
520 xcb_drawable_t drawable,
|
jpayne@69
|
521 uint32_t size,
|
jpayne@69
|
522 uint16_t width,
|
jpayne@69
|
523 uint16_t height,
|
jpayne@69
|
524 uint16_t stride,
|
jpayne@69
|
525 uint8_t depth,
|
jpayne@69
|
526 uint8_t bpp,
|
jpayne@69
|
527 int32_t pixmap_fd);
|
jpayne@69
|
528
|
jpayne@69
|
529 /**
|
jpayne@69
|
530 *
|
jpayne@69
|
531 * @param c The connection
|
jpayne@69
|
532 * @return A cookie
|
jpayne@69
|
533 *
|
jpayne@69
|
534 * Delivers a request to the X server.
|
jpayne@69
|
535 *
|
jpayne@69
|
536 */
|
jpayne@69
|
537 xcb_dri3_buffer_from_pixmap_cookie_t
|
jpayne@69
|
538 xcb_dri3_buffer_from_pixmap (xcb_connection_t *c,
|
jpayne@69
|
539 xcb_pixmap_t pixmap);
|
jpayne@69
|
540
|
jpayne@69
|
541 /**
|
jpayne@69
|
542 *
|
jpayne@69
|
543 * @param c The connection
|
jpayne@69
|
544 * @return A cookie
|
jpayne@69
|
545 *
|
jpayne@69
|
546 * Delivers a request to the X server.
|
jpayne@69
|
547 *
|
jpayne@69
|
548 * This form can be used only if the request will cause
|
jpayne@69
|
549 * a reply to be generated. Any returned error will be
|
jpayne@69
|
550 * placed in the event queue.
|
jpayne@69
|
551 */
|
jpayne@69
|
552 xcb_dri3_buffer_from_pixmap_cookie_t
|
jpayne@69
|
553 xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c,
|
jpayne@69
|
554 xcb_pixmap_t pixmap);
|
jpayne@69
|
555
|
jpayne@69
|
556 /**
|
jpayne@69
|
557 * Return the reply
|
jpayne@69
|
558 * @param c The connection
|
jpayne@69
|
559 * @param cookie The cookie
|
jpayne@69
|
560 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
561 *
|
jpayne@69
|
562 * Returns the reply of the request asked by
|
jpayne@69
|
563 *
|
jpayne@69
|
564 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
565 * xcb_dri3_buffer_from_pixmap_unchecked(). is used.
|
jpayne@69
|
566 * Otherwise, it stores the error if any.
|
jpayne@69
|
567 *
|
jpayne@69
|
568 * The returned value must be freed by the caller using free().
|
jpayne@69
|
569 */
|
jpayne@69
|
570 xcb_dri3_buffer_from_pixmap_reply_t *
|
jpayne@69
|
571 xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t *c,
|
jpayne@69
|
572 xcb_dri3_buffer_from_pixmap_cookie_t cookie /**< */,
|
jpayne@69
|
573 xcb_generic_error_t **e);
|
jpayne@69
|
574
|
jpayne@69
|
575 /**
|
jpayne@69
|
576 * Return the reply fds
|
jpayne@69
|
577 * @param c The connection
|
jpayne@69
|
578 * @param reply The reply
|
jpayne@69
|
579 *
|
jpayne@69
|
580 * Returns a pointer to the array of reply fds of the reply.
|
jpayne@69
|
581 *
|
jpayne@69
|
582 * The returned value points into the reply and must not be free().
|
jpayne@69
|
583 * The fds are not managed by xcb. You must close() them before freeing the reply.
|
jpayne@69
|
584 */
|
jpayne@69
|
585 int *
|
jpayne@69
|
586 xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t *c /**< */,
|
jpayne@69
|
587 xcb_dri3_buffer_from_pixmap_reply_t *reply);
|
jpayne@69
|
588
|
jpayne@69
|
589 /**
|
jpayne@69
|
590 *
|
jpayne@69
|
591 * @param c The connection
|
jpayne@69
|
592 * @return A cookie
|
jpayne@69
|
593 *
|
jpayne@69
|
594 * Delivers a request to the X server.
|
jpayne@69
|
595 *
|
jpayne@69
|
596 * This form can be used only if the request will not cause
|
jpayne@69
|
597 * a reply to be generated. Any returned error will be
|
jpayne@69
|
598 * saved for handling by xcb_request_check().
|
jpayne@69
|
599 */
|
jpayne@69
|
600 xcb_void_cookie_t
|
jpayne@69
|
601 xcb_dri3_fence_from_fd_checked (xcb_connection_t *c,
|
jpayne@69
|
602 xcb_drawable_t drawable,
|
jpayne@69
|
603 uint32_t fence,
|
jpayne@69
|
604 uint8_t initially_triggered,
|
jpayne@69
|
605 int32_t fence_fd);
|
jpayne@69
|
606
|
jpayne@69
|
607 /**
|
jpayne@69
|
608 *
|
jpayne@69
|
609 * @param c The connection
|
jpayne@69
|
610 * @return A cookie
|
jpayne@69
|
611 *
|
jpayne@69
|
612 * Delivers a request to the X server.
|
jpayne@69
|
613 *
|
jpayne@69
|
614 */
|
jpayne@69
|
615 xcb_void_cookie_t
|
jpayne@69
|
616 xcb_dri3_fence_from_fd (xcb_connection_t *c,
|
jpayne@69
|
617 xcb_drawable_t drawable,
|
jpayne@69
|
618 uint32_t fence,
|
jpayne@69
|
619 uint8_t initially_triggered,
|
jpayne@69
|
620 int32_t fence_fd);
|
jpayne@69
|
621
|
jpayne@69
|
622 /**
|
jpayne@69
|
623 *
|
jpayne@69
|
624 * @param c The connection
|
jpayne@69
|
625 * @return A cookie
|
jpayne@69
|
626 *
|
jpayne@69
|
627 * Delivers a request to the X server.
|
jpayne@69
|
628 *
|
jpayne@69
|
629 */
|
jpayne@69
|
630 xcb_dri3_fd_from_fence_cookie_t
|
jpayne@69
|
631 xcb_dri3_fd_from_fence (xcb_connection_t *c,
|
jpayne@69
|
632 xcb_drawable_t drawable,
|
jpayne@69
|
633 uint32_t fence);
|
jpayne@69
|
634
|
jpayne@69
|
635 /**
|
jpayne@69
|
636 *
|
jpayne@69
|
637 * @param c The connection
|
jpayne@69
|
638 * @return A cookie
|
jpayne@69
|
639 *
|
jpayne@69
|
640 * Delivers a request to the X server.
|
jpayne@69
|
641 *
|
jpayne@69
|
642 * This form can be used only if the request will cause
|
jpayne@69
|
643 * a reply to be generated. Any returned error will be
|
jpayne@69
|
644 * placed in the event queue.
|
jpayne@69
|
645 */
|
jpayne@69
|
646 xcb_dri3_fd_from_fence_cookie_t
|
jpayne@69
|
647 xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c,
|
jpayne@69
|
648 xcb_drawable_t drawable,
|
jpayne@69
|
649 uint32_t fence);
|
jpayne@69
|
650
|
jpayne@69
|
651 /**
|
jpayne@69
|
652 * Return the reply
|
jpayne@69
|
653 * @param c The connection
|
jpayne@69
|
654 * @param cookie The cookie
|
jpayne@69
|
655 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
656 *
|
jpayne@69
|
657 * Returns the reply of the request asked by
|
jpayne@69
|
658 *
|
jpayne@69
|
659 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
660 * xcb_dri3_fd_from_fence_unchecked(). is used.
|
jpayne@69
|
661 * Otherwise, it stores the error if any.
|
jpayne@69
|
662 *
|
jpayne@69
|
663 * The returned value must be freed by the caller using free().
|
jpayne@69
|
664 */
|
jpayne@69
|
665 xcb_dri3_fd_from_fence_reply_t *
|
jpayne@69
|
666 xcb_dri3_fd_from_fence_reply (xcb_connection_t *c,
|
jpayne@69
|
667 xcb_dri3_fd_from_fence_cookie_t cookie /**< */,
|
jpayne@69
|
668 xcb_generic_error_t **e);
|
jpayne@69
|
669
|
jpayne@69
|
670 /**
|
jpayne@69
|
671 * Return the reply fds
|
jpayne@69
|
672 * @param c The connection
|
jpayne@69
|
673 * @param reply The reply
|
jpayne@69
|
674 *
|
jpayne@69
|
675 * Returns a pointer to the array of reply fds of the reply.
|
jpayne@69
|
676 *
|
jpayne@69
|
677 * The returned value points into the reply and must not be free().
|
jpayne@69
|
678 * The fds are not managed by xcb. You must close() them before freeing the reply.
|
jpayne@69
|
679 */
|
jpayne@69
|
680 int *
|
jpayne@69
|
681 xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t *c /**< */,
|
jpayne@69
|
682 xcb_dri3_fd_from_fence_reply_t *reply);
|
jpayne@69
|
683
|
jpayne@69
|
684 int
|
jpayne@69
|
685 xcb_dri3_get_supported_modifiers_sizeof (const void *_buffer);
|
jpayne@69
|
686
|
jpayne@69
|
687 /**
|
jpayne@69
|
688 *
|
jpayne@69
|
689 * @param c The connection
|
jpayne@69
|
690 * @return A cookie
|
jpayne@69
|
691 *
|
jpayne@69
|
692 * Delivers a request to the X server.
|
jpayne@69
|
693 *
|
jpayne@69
|
694 */
|
jpayne@69
|
695 xcb_dri3_get_supported_modifiers_cookie_t
|
jpayne@69
|
696 xcb_dri3_get_supported_modifiers (xcb_connection_t *c,
|
jpayne@69
|
697 uint32_t window,
|
jpayne@69
|
698 uint8_t depth,
|
jpayne@69
|
699 uint8_t bpp);
|
jpayne@69
|
700
|
jpayne@69
|
701 /**
|
jpayne@69
|
702 *
|
jpayne@69
|
703 * @param c The connection
|
jpayne@69
|
704 * @return A cookie
|
jpayne@69
|
705 *
|
jpayne@69
|
706 * Delivers a request to the X server.
|
jpayne@69
|
707 *
|
jpayne@69
|
708 * This form can be used only if the request will cause
|
jpayne@69
|
709 * a reply to be generated. Any returned error will be
|
jpayne@69
|
710 * placed in the event queue.
|
jpayne@69
|
711 */
|
jpayne@69
|
712 xcb_dri3_get_supported_modifiers_cookie_t
|
jpayne@69
|
713 xcb_dri3_get_supported_modifiers_unchecked (xcb_connection_t *c,
|
jpayne@69
|
714 uint32_t window,
|
jpayne@69
|
715 uint8_t depth,
|
jpayne@69
|
716 uint8_t bpp);
|
jpayne@69
|
717
|
jpayne@69
|
718 uint64_t *
|
jpayne@69
|
719 xcb_dri3_get_supported_modifiers_window_modifiers (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
720
|
jpayne@69
|
721 int
|
jpayne@69
|
722 xcb_dri3_get_supported_modifiers_window_modifiers_length (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
723
|
jpayne@69
|
724 xcb_generic_iterator_t
|
jpayne@69
|
725 xcb_dri3_get_supported_modifiers_window_modifiers_end (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
726
|
jpayne@69
|
727 uint64_t *
|
jpayne@69
|
728 xcb_dri3_get_supported_modifiers_screen_modifiers (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
729
|
jpayne@69
|
730 int
|
jpayne@69
|
731 xcb_dri3_get_supported_modifiers_screen_modifiers_length (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
732
|
jpayne@69
|
733 xcb_generic_iterator_t
|
jpayne@69
|
734 xcb_dri3_get_supported_modifiers_screen_modifiers_end (const xcb_dri3_get_supported_modifiers_reply_t *R);
|
jpayne@69
|
735
|
jpayne@69
|
736 /**
|
jpayne@69
|
737 * Return the reply
|
jpayne@69
|
738 * @param c The connection
|
jpayne@69
|
739 * @param cookie The cookie
|
jpayne@69
|
740 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
741 *
|
jpayne@69
|
742 * Returns the reply of the request asked by
|
jpayne@69
|
743 *
|
jpayne@69
|
744 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
745 * xcb_dri3_get_supported_modifiers_unchecked(). is used.
|
jpayne@69
|
746 * Otherwise, it stores the error if any.
|
jpayne@69
|
747 *
|
jpayne@69
|
748 * The returned value must be freed by the caller using free().
|
jpayne@69
|
749 */
|
jpayne@69
|
750 xcb_dri3_get_supported_modifiers_reply_t *
|
jpayne@69
|
751 xcb_dri3_get_supported_modifiers_reply (xcb_connection_t *c,
|
jpayne@69
|
752 xcb_dri3_get_supported_modifiers_cookie_t cookie /**< */,
|
jpayne@69
|
753 xcb_generic_error_t **e);
|
jpayne@69
|
754
|
jpayne@69
|
755 /**
|
jpayne@69
|
756 *
|
jpayne@69
|
757 * @param c The connection
|
jpayne@69
|
758 * @return A cookie
|
jpayne@69
|
759 *
|
jpayne@69
|
760 * Delivers a request to the X server.
|
jpayne@69
|
761 *
|
jpayne@69
|
762 * This form can be used only if the request will not cause
|
jpayne@69
|
763 * a reply to be generated. Any returned error will be
|
jpayne@69
|
764 * saved for handling by xcb_request_check().
|
jpayne@69
|
765 */
|
jpayne@69
|
766 xcb_void_cookie_t
|
jpayne@69
|
767 xcb_dri3_pixmap_from_buffers_checked (xcb_connection_t *c,
|
jpayne@69
|
768 xcb_pixmap_t pixmap,
|
jpayne@69
|
769 xcb_window_t window,
|
jpayne@69
|
770 uint8_t num_buffers,
|
jpayne@69
|
771 uint16_t width,
|
jpayne@69
|
772 uint16_t height,
|
jpayne@69
|
773 uint32_t stride0,
|
jpayne@69
|
774 uint32_t offset0,
|
jpayne@69
|
775 uint32_t stride1,
|
jpayne@69
|
776 uint32_t offset1,
|
jpayne@69
|
777 uint32_t stride2,
|
jpayne@69
|
778 uint32_t offset2,
|
jpayne@69
|
779 uint32_t stride3,
|
jpayne@69
|
780 uint32_t offset3,
|
jpayne@69
|
781 uint8_t depth,
|
jpayne@69
|
782 uint8_t bpp,
|
jpayne@69
|
783 uint64_t modifier,
|
jpayne@69
|
784 const int32_t *buffers);
|
jpayne@69
|
785
|
jpayne@69
|
786 /**
|
jpayne@69
|
787 *
|
jpayne@69
|
788 * @param c The connection
|
jpayne@69
|
789 * @return A cookie
|
jpayne@69
|
790 *
|
jpayne@69
|
791 * Delivers a request to the X server.
|
jpayne@69
|
792 *
|
jpayne@69
|
793 */
|
jpayne@69
|
794 xcb_void_cookie_t
|
jpayne@69
|
795 xcb_dri3_pixmap_from_buffers (xcb_connection_t *c,
|
jpayne@69
|
796 xcb_pixmap_t pixmap,
|
jpayne@69
|
797 xcb_window_t window,
|
jpayne@69
|
798 uint8_t num_buffers,
|
jpayne@69
|
799 uint16_t width,
|
jpayne@69
|
800 uint16_t height,
|
jpayne@69
|
801 uint32_t stride0,
|
jpayne@69
|
802 uint32_t offset0,
|
jpayne@69
|
803 uint32_t stride1,
|
jpayne@69
|
804 uint32_t offset1,
|
jpayne@69
|
805 uint32_t stride2,
|
jpayne@69
|
806 uint32_t offset2,
|
jpayne@69
|
807 uint32_t stride3,
|
jpayne@69
|
808 uint32_t offset3,
|
jpayne@69
|
809 uint8_t depth,
|
jpayne@69
|
810 uint8_t bpp,
|
jpayne@69
|
811 uint64_t modifier,
|
jpayne@69
|
812 const int32_t *buffers);
|
jpayne@69
|
813
|
jpayne@69
|
814 int
|
jpayne@69
|
815 xcb_dri3_buffers_from_pixmap_sizeof (const void *_buffer,
|
jpayne@69
|
816 int32_t buffers);
|
jpayne@69
|
817
|
jpayne@69
|
818 /**
|
jpayne@69
|
819 *
|
jpayne@69
|
820 * @param c The connection
|
jpayne@69
|
821 * @return A cookie
|
jpayne@69
|
822 *
|
jpayne@69
|
823 * Delivers a request to the X server.
|
jpayne@69
|
824 *
|
jpayne@69
|
825 */
|
jpayne@69
|
826 xcb_dri3_buffers_from_pixmap_cookie_t
|
jpayne@69
|
827 xcb_dri3_buffers_from_pixmap (xcb_connection_t *c,
|
jpayne@69
|
828 xcb_pixmap_t pixmap);
|
jpayne@69
|
829
|
jpayne@69
|
830 /**
|
jpayne@69
|
831 *
|
jpayne@69
|
832 * @param c The connection
|
jpayne@69
|
833 * @return A cookie
|
jpayne@69
|
834 *
|
jpayne@69
|
835 * Delivers a request to the X server.
|
jpayne@69
|
836 *
|
jpayne@69
|
837 * This form can be used only if the request will cause
|
jpayne@69
|
838 * a reply to be generated. Any returned error will be
|
jpayne@69
|
839 * placed in the event queue.
|
jpayne@69
|
840 */
|
jpayne@69
|
841 xcb_dri3_buffers_from_pixmap_cookie_t
|
jpayne@69
|
842 xcb_dri3_buffers_from_pixmap_unchecked (xcb_connection_t *c,
|
jpayne@69
|
843 xcb_pixmap_t pixmap);
|
jpayne@69
|
844
|
jpayne@69
|
845 uint32_t *
|
jpayne@69
|
846 xcb_dri3_buffers_from_pixmap_strides (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
847
|
jpayne@69
|
848 int
|
jpayne@69
|
849 xcb_dri3_buffers_from_pixmap_strides_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
850
|
jpayne@69
|
851 xcb_generic_iterator_t
|
jpayne@69
|
852 xcb_dri3_buffers_from_pixmap_strides_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
853
|
jpayne@69
|
854 uint32_t *
|
jpayne@69
|
855 xcb_dri3_buffers_from_pixmap_offsets (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
856
|
jpayne@69
|
857 int
|
jpayne@69
|
858 xcb_dri3_buffers_from_pixmap_offsets_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
859
|
jpayne@69
|
860 xcb_generic_iterator_t
|
jpayne@69
|
861 xcb_dri3_buffers_from_pixmap_offsets_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
862
|
jpayne@69
|
863 int32_t *
|
jpayne@69
|
864 xcb_dri3_buffers_from_pixmap_buffers (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
865
|
jpayne@69
|
866 int
|
jpayne@69
|
867 xcb_dri3_buffers_from_pixmap_buffers_length (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
868
|
jpayne@69
|
869 xcb_generic_iterator_t
|
jpayne@69
|
870 xcb_dri3_buffers_from_pixmap_buffers_end (const xcb_dri3_buffers_from_pixmap_reply_t *R);
|
jpayne@69
|
871
|
jpayne@69
|
872 /**
|
jpayne@69
|
873 * Return the reply
|
jpayne@69
|
874 * @param c The connection
|
jpayne@69
|
875 * @param cookie The cookie
|
jpayne@69
|
876 * @param e The xcb_generic_error_t supplied
|
jpayne@69
|
877 *
|
jpayne@69
|
878 * Returns the reply of the request asked by
|
jpayne@69
|
879 *
|
jpayne@69
|
880 * The parameter @p e supplied to this function must be NULL if
|
jpayne@69
|
881 * xcb_dri3_buffers_from_pixmap_unchecked(). is used.
|
jpayne@69
|
882 * Otherwise, it stores the error if any.
|
jpayne@69
|
883 *
|
jpayne@69
|
884 * The returned value must be freed by the caller using free().
|
jpayne@69
|
885 */
|
jpayne@69
|
886 xcb_dri3_buffers_from_pixmap_reply_t *
|
jpayne@69
|
887 xcb_dri3_buffers_from_pixmap_reply (xcb_connection_t *c,
|
jpayne@69
|
888 xcb_dri3_buffers_from_pixmap_cookie_t cookie /**< */,
|
jpayne@69
|
889 xcb_generic_error_t **e);
|
jpayne@69
|
890
|
jpayne@69
|
891 /**
|
jpayne@69
|
892 * Return the reply fds
|
jpayne@69
|
893 * @param c The connection
|
jpayne@69
|
894 * @param reply The reply
|
jpayne@69
|
895 *
|
jpayne@69
|
896 * Returns a pointer to the array of reply fds of the reply.
|
jpayne@69
|
897 *
|
jpayne@69
|
898 * The returned value points into the reply and must not be free().
|
jpayne@69
|
899 * The fds are not managed by xcb. You must close() them before freeing the reply.
|
jpayne@69
|
900 */
|
jpayne@69
|
901 int *
|
jpayne@69
|
902 xcb_dri3_buffers_from_pixmap_reply_fds (xcb_connection_t *c /**< */,
|
jpayne@69
|
903 xcb_dri3_buffers_from_pixmap_reply_t *reply);
|
jpayne@69
|
904
|
jpayne@69
|
905 /**
|
jpayne@69
|
906 *
|
jpayne@69
|
907 * @param c The connection
|
jpayne@69
|
908 * @return A cookie
|
jpayne@69
|
909 *
|
jpayne@69
|
910 * Delivers a request to the X server.
|
jpayne@69
|
911 *
|
jpayne@69
|
912 * This form can be used only if the request will not cause
|
jpayne@69
|
913 * a reply to be generated. Any returned error will be
|
jpayne@69
|
914 * saved for handling by xcb_request_check().
|
jpayne@69
|
915 */
|
jpayne@69
|
916 xcb_void_cookie_t
|
jpayne@69
|
917 xcb_dri3_set_drm_device_in_use_checked (xcb_connection_t *c,
|
jpayne@69
|
918 xcb_window_t window,
|
jpayne@69
|
919 uint32_t drmMajor,
|
jpayne@69
|
920 uint32_t drmMinor);
|
jpayne@69
|
921
|
jpayne@69
|
922 /**
|
jpayne@69
|
923 *
|
jpayne@69
|
924 * @param c The connection
|
jpayne@69
|
925 * @return A cookie
|
jpayne@69
|
926 *
|
jpayne@69
|
927 * Delivers a request to the X server.
|
jpayne@69
|
928 *
|
jpayne@69
|
929 */
|
jpayne@69
|
930 xcb_void_cookie_t
|
jpayne@69
|
931 xcb_dri3_set_drm_device_in_use (xcb_connection_t *c,
|
jpayne@69
|
932 xcb_window_t window,
|
jpayne@69
|
933 uint32_t drmMajor,
|
jpayne@69
|
934 uint32_t drmMinor);
|
jpayne@69
|
935
|
jpayne@69
|
936 /**
|
jpayne@69
|
937 *
|
jpayne@69
|
938 * @param c The connection
|
jpayne@69
|
939 * @return A cookie
|
jpayne@69
|
940 *
|
jpayne@69
|
941 * Delivers a request to the X server.
|
jpayne@69
|
942 *
|
jpayne@69
|
943 * This form can be used only if the request will not cause
|
jpayne@69
|
944 * a reply to be generated. Any returned error will be
|
jpayne@69
|
945 * saved for handling by xcb_request_check().
|
jpayne@69
|
946 */
|
jpayne@69
|
947 xcb_void_cookie_t
|
jpayne@69
|
948 xcb_dri3_import_syncobj_checked (xcb_connection_t *c,
|
jpayne@69
|
949 xcb_dri3_syncobj_t syncobj,
|
jpayne@69
|
950 xcb_drawable_t drawable,
|
jpayne@69
|
951 int32_t syncobj_fd);
|
jpayne@69
|
952
|
jpayne@69
|
953 /**
|
jpayne@69
|
954 *
|
jpayne@69
|
955 * @param c The connection
|
jpayne@69
|
956 * @return A cookie
|
jpayne@69
|
957 *
|
jpayne@69
|
958 * Delivers a request to the X server.
|
jpayne@69
|
959 *
|
jpayne@69
|
960 */
|
jpayne@69
|
961 xcb_void_cookie_t
|
jpayne@69
|
962 xcb_dri3_import_syncobj (xcb_connection_t *c,
|
jpayne@69
|
963 xcb_dri3_syncobj_t syncobj,
|
jpayne@69
|
964 xcb_drawable_t drawable,
|
jpayne@69
|
965 int32_t syncobj_fd);
|
jpayne@69
|
966
|
jpayne@69
|
967 /**
|
jpayne@69
|
968 *
|
jpayne@69
|
969 * @param c The connection
|
jpayne@69
|
970 * @return A cookie
|
jpayne@69
|
971 *
|
jpayne@69
|
972 * Delivers a request to the X server.
|
jpayne@69
|
973 *
|
jpayne@69
|
974 * This form can be used only if the request will not cause
|
jpayne@69
|
975 * a reply to be generated. Any returned error will be
|
jpayne@69
|
976 * saved for handling by xcb_request_check().
|
jpayne@69
|
977 */
|
jpayne@69
|
978 xcb_void_cookie_t
|
jpayne@69
|
979 xcb_dri3_free_syncobj_checked (xcb_connection_t *c,
|
jpayne@69
|
980 xcb_dri3_syncobj_t syncobj);
|
jpayne@69
|
981
|
jpayne@69
|
982 /**
|
jpayne@69
|
983 *
|
jpayne@69
|
984 * @param c The connection
|
jpayne@69
|
985 * @return A cookie
|
jpayne@69
|
986 *
|
jpayne@69
|
987 * Delivers a request to the X server.
|
jpayne@69
|
988 *
|
jpayne@69
|
989 */
|
jpayne@69
|
990 xcb_void_cookie_t
|
jpayne@69
|
991 xcb_dri3_free_syncobj (xcb_connection_t *c,
|
jpayne@69
|
992 xcb_dri3_syncobj_t syncobj);
|
jpayne@69
|
993
|
jpayne@69
|
994
|
jpayne@69
|
995 #ifdef __cplusplus
|
jpayne@69
|
996 }
|
jpayne@69
|
997 #endif
|
jpayne@69
|
998
|
jpayne@69
|
999 #endif
|
jpayne@69
|
1000
|
jpayne@69
|
1001 /**
|
jpayne@69
|
1002 * @}
|
jpayne@69
|
1003 */
|