2 * This file generated automatically from xf86dri.xml by c_client.py.
7 * @defgroup XCB_XF86Dri_API XCB XF86Dri API
8 * @brief XF86Dri XCB Protocol Implementation.
21 #define XCB_XF86DRI_MAJOR_VERSION 4
22 #define XCB_XF86DRI_MINOR_VERSION 1
24 extern xcb_extension_t xcb_xf86dri_id
;
27 * @brief xcb_xf86dri_drm_clip_rect_t
29 typedef struct xcb_xf86dri_drm_clip_rect_t
{
34 } xcb_xf86dri_drm_clip_rect_t
;
37 * @brief xcb_xf86dri_drm_clip_rect_iterator_t
39 typedef struct xcb_xf86dri_drm_clip_rect_iterator_t
{
40 xcb_xf86dri_drm_clip_rect_t
*data
; /**< */
43 } xcb_xf86dri_drm_clip_rect_iterator_t
;
46 * @brief xcb_xf86dri_query_version_cookie_t
48 typedef struct xcb_xf86dri_query_version_cookie_t
{
49 unsigned int sequence
; /**< */
50 } xcb_xf86dri_query_version_cookie_t
;
52 /** Opcode for xcb_xf86dri_query_version. */
53 #define XCB_XF86DRI_QUERY_VERSION 0
56 * @brief xcb_xf86dri_query_version_request_t
58 typedef struct xcb_xf86dri_query_version_request_t
{
59 uint8_t major_opcode
; /**< */
60 uint8_t minor_opcode
; /**< */
61 uint16_t length
; /**< */
62 } xcb_xf86dri_query_version_request_t
;
65 * @brief xcb_xf86dri_query_version_reply_t
67 typedef struct xcb_xf86dri_query_version_reply_t
{
68 uint8_t response_type
; /**< */
70 uint16_t sequence
; /**< */
71 uint32_t length
; /**< */
72 uint16_t dri_major_version
; /**< */
73 uint16_t dri_minor_version
; /**< */
74 uint32_t dri_minor_patch
; /**< */
75 } xcb_xf86dri_query_version_reply_t
;
78 * @brief xcb_xf86dri_query_direct_rendering_capable_cookie_t
80 typedef struct xcb_xf86dri_query_direct_rendering_capable_cookie_t
{
81 unsigned int sequence
; /**< */
82 } xcb_xf86dri_query_direct_rendering_capable_cookie_t
;
84 /** Opcode for xcb_xf86dri_query_direct_rendering_capable. */
85 #define XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE 1
88 * @brief xcb_xf86dri_query_direct_rendering_capable_request_t
90 typedef struct xcb_xf86dri_query_direct_rendering_capable_request_t
{
91 uint8_t major_opcode
; /**< */
92 uint8_t minor_opcode
; /**< */
93 uint16_t length
; /**< */
94 uint32_t screen
; /**< */
95 } xcb_xf86dri_query_direct_rendering_capable_request_t
;
98 * @brief xcb_xf86dri_query_direct_rendering_capable_reply_t
100 typedef struct xcb_xf86dri_query_direct_rendering_capable_reply_t
{
101 uint8_t response_type
; /**< */
102 uint8_t pad0
; /**< */
103 uint16_t sequence
; /**< */
104 uint32_t length
; /**< */
105 uint8_t is_capable
; /**< */
106 } xcb_xf86dri_query_direct_rendering_capable_reply_t
;
109 * @brief xcb_xf86dri_open_connection_cookie_t
111 typedef struct xcb_xf86dri_open_connection_cookie_t
{
112 unsigned int sequence
; /**< */
113 } xcb_xf86dri_open_connection_cookie_t
;
115 /** Opcode for xcb_xf86dri_open_connection. */
116 #define XCB_XF86DRI_OPEN_CONNECTION 2
119 * @brief xcb_xf86dri_open_connection_request_t
121 typedef struct xcb_xf86dri_open_connection_request_t
{
122 uint8_t major_opcode
; /**< */
123 uint8_t minor_opcode
; /**< */
124 uint16_t length
; /**< */
125 uint32_t screen
; /**< */
126 } xcb_xf86dri_open_connection_request_t
;
129 * @brief xcb_xf86dri_open_connection_reply_t
131 typedef struct xcb_xf86dri_open_connection_reply_t
{
132 uint8_t response_type
; /**< */
133 uint8_t pad0
; /**< */
134 uint16_t sequence
; /**< */
135 uint32_t length
; /**< */
136 uint32_t sarea_handle_low
; /**< */
137 uint32_t sarea_handle_high
; /**< */
138 uint32_t bus_id_len
; /**< */
139 uint8_t pad1
[12]; /**< */
140 } xcb_xf86dri_open_connection_reply_t
;
142 /** Opcode for xcb_xf86dri_close_connection. */
143 #define XCB_XF86DRI_CLOSE_CONNECTION 3
146 * @brief xcb_xf86dri_close_connection_request_t
148 typedef struct xcb_xf86dri_close_connection_request_t
{
149 uint8_t major_opcode
; /**< */
150 uint8_t minor_opcode
; /**< */
151 uint16_t length
; /**< */
152 uint32_t screen
; /**< */
153 } xcb_xf86dri_close_connection_request_t
;
156 * @brief xcb_xf86dri_get_client_driver_name_cookie_t
158 typedef struct xcb_xf86dri_get_client_driver_name_cookie_t
{
159 unsigned int sequence
; /**< */
160 } xcb_xf86dri_get_client_driver_name_cookie_t
;
162 /** Opcode for xcb_xf86dri_get_client_driver_name. */
163 #define XCB_XF86DRI_GET_CLIENT_DRIVER_NAME 4
166 * @brief xcb_xf86dri_get_client_driver_name_request_t
168 typedef struct xcb_xf86dri_get_client_driver_name_request_t
{
169 uint8_t major_opcode
; /**< */
170 uint8_t minor_opcode
; /**< */
171 uint16_t length
; /**< */
172 uint32_t screen
; /**< */
173 } xcb_xf86dri_get_client_driver_name_request_t
;
176 * @brief xcb_xf86dri_get_client_driver_name_reply_t
178 typedef struct xcb_xf86dri_get_client_driver_name_reply_t
{
179 uint8_t response_type
; /**< */
180 uint8_t pad0
; /**< */
181 uint16_t sequence
; /**< */
182 uint32_t length
; /**< */
183 uint32_t client_driver_major_version
; /**< */
184 uint32_t client_driver_minor_version
; /**< */
185 uint32_t client_driver_patch_version
; /**< */
186 uint32_t client_driver_name_len
; /**< */
187 uint8_t pad1
[8]; /**< */
188 } xcb_xf86dri_get_client_driver_name_reply_t
;
191 * @brief xcb_xf86dri_create_context_cookie_t
193 typedef struct xcb_xf86dri_create_context_cookie_t
{
194 unsigned int sequence
; /**< */
195 } xcb_xf86dri_create_context_cookie_t
;
197 /** Opcode for xcb_xf86dri_create_context. */
198 #define XCB_XF86DRI_CREATE_CONTEXT 5
201 * @brief xcb_xf86dri_create_context_request_t
203 typedef struct xcb_xf86dri_create_context_request_t
{
204 uint8_t major_opcode
; /**< */
205 uint8_t minor_opcode
; /**< */
206 uint16_t length
; /**< */
207 uint32_t screen
; /**< */
208 uint32_t visual
; /**< */
209 uint32_t context
; /**< */
210 } xcb_xf86dri_create_context_request_t
;
213 * @brief xcb_xf86dri_create_context_reply_t
215 typedef struct xcb_xf86dri_create_context_reply_t
{
216 uint8_t response_type
; /**< */
217 uint8_t pad0
; /**< */
218 uint16_t sequence
; /**< */
219 uint32_t length
; /**< */
220 uint32_t hw_context
; /**< */
221 } xcb_xf86dri_create_context_reply_t
;
223 /** Opcode for xcb_xf86dri_destroy_context. */
224 #define XCB_XF86DRI_DESTROY_CONTEXT 6
227 * @brief xcb_xf86dri_destroy_context_request_t
229 typedef struct xcb_xf86dri_destroy_context_request_t
{
230 uint8_t major_opcode
; /**< */
231 uint8_t minor_opcode
; /**< */
232 uint16_t length
; /**< */
233 uint32_t screen
; /**< */
234 uint32_t context
; /**< */
235 } xcb_xf86dri_destroy_context_request_t
;
238 * @brief xcb_xf86dri_create_drawable_cookie_t
240 typedef struct xcb_xf86dri_create_drawable_cookie_t
{
241 unsigned int sequence
; /**< */
242 } xcb_xf86dri_create_drawable_cookie_t
;
244 /** Opcode for xcb_xf86dri_create_drawable. */
245 #define XCB_XF86DRI_CREATE_DRAWABLE 7
248 * @brief xcb_xf86dri_create_drawable_request_t
250 typedef struct xcb_xf86dri_create_drawable_request_t
{
251 uint8_t major_opcode
; /**< */
252 uint8_t minor_opcode
; /**< */
253 uint16_t length
; /**< */
254 uint32_t screen
; /**< */
255 uint32_t drawable
; /**< */
256 } xcb_xf86dri_create_drawable_request_t
;
259 * @brief xcb_xf86dri_create_drawable_reply_t
261 typedef struct xcb_xf86dri_create_drawable_reply_t
{
262 uint8_t response_type
; /**< */
263 uint8_t pad0
; /**< */
264 uint16_t sequence
; /**< */
265 uint32_t length
; /**< */
266 uint32_t hw_drawable_handle
; /**< */
267 } xcb_xf86dri_create_drawable_reply_t
;
269 /** Opcode for xcb_xf86dri_destroy_drawable. */
270 #define XCB_XF86DRI_DESTROY_DRAWABLE 8
273 * @brief xcb_xf86dri_destroy_drawable_request_t
275 typedef struct xcb_xf86dri_destroy_drawable_request_t
{
276 uint8_t major_opcode
; /**< */
277 uint8_t minor_opcode
; /**< */
278 uint16_t length
; /**< */
279 uint32_t screen
; /**< */
280 uint32_t drawable
; /**< */
281 } xcb_xf86dri_destroy_drawable_request_t
;
284 * @brief xcb_xf86dri_get_drawable_info_cookie_t
286 typedef struct xcb_xf86dri_get_drawable_info_cookie_t
{
287 unsigned int sequence
; /**< */
288 } xcb_xf86dri_get_drawable_info_cookie_t
;
290 /** Opcode for xcb_xf86dri_get_drawable_info. */
291 #define XCB_XF86DRI_GET_DRAWABLE_INFO 9
294 * @brief xcb_xf86dri_get_drawable_info_request_t
296 typedef struct xcb_xf86dri_get_drawable_info_request_t
{
297 uint8_t major_opcode
; /**< */
298 uint8_t minor_opcode
; /**< */
299 uint16_t length
; /**< */
300 uint32_t screen
; /**< */
301 uint32_t drawable
; /**< */
302 } xcb_xf86dri_get_drawable_info_request_t
;
305 * @brief xcb_xf86dri_get_drawable_info_reply_t
307 typedef struct xcb_xf86dri_get_drawable_info_reply_t
{
308 uint8_t response_type
; /**< */
309 uint8_t pad0
; /**< */
310 uint16_t sequence
; /**< */
311 uint32_t length
; /**< */
312 uint32_t drawable_table_index
; /**< */
313 uint32_t drawable_table_stamp
; /**< */
314 int16_t drawable_origin_X
; /**< */
315 int16_t drawable_origin_Y
; /**< */
316 int16_t drawable_size_W
; /**< */
317 int16_t drawable_size_H
; /**< */
318 uint32_t num_clip_rects
; /**< */
319 int16_t back_x
; /**< */
320 int16_t back_y
; /**< */
321 uint32_t num_back_clip_rects
; /**< */
322 } xcb_xf86dri_get_drawable_info_reply_t
;
325 * @brief xcb_xf86dri_get_device_info_cookie_t
327 typedef struct xcb_xf86dri_get_device_info_cookie_t
{
328 unsigned int sequence
; /**< */
329 } xcb_xf86dri_get_device_info_cookie_t
;
331 /** Opcode for xcb_xf86dri_get_device_info. */
332 #define XCB_XF86DRI_GET_DEVICE_INFO 10
335 * @brief xcb_xf86dri_get_device_info_request_t
337 typedef struct xcb_xf86dri_get_device_info_request_t
{
338 uint8_t major_opcode
; /**< */
339 uint8_t minor_opcode
; /**< */
340 uint16_t length
; /**< */
341 uint32_t screen
; /**< */
342 } xcb_xf86dri_get_device_info_request_t
;
345 * @brief xcb_xf86dri_get_device_info_reply_t
347 typedef struct xcb_xf86dri_get_device_info_reply_t
{
348 uint8_t response_type
; /**< */
349 uint8_t pad0
; /**< */
350 uint16_t sequence
; /**< */
351 uint32_t length
; /**< */
352 uint32_t framebuffer_handle_low
; /**< */
353 uint32_t framebuffer_handle_high
; /**< */
354 uint32_t framebuffer_origin_offset
; /**< */
355 uint32_t framebuffer_size
; /**< */
356 uint32_t framebuffer_stride
; /**< */
357 uint32_t device_private_size
; /**< */
358 } xcb_xf86dri_get_device_info_reply_t
;
361 * @brief xcb_xf86dri_auth_connection_cookie_t
363 typedef struct xcb_xf86dri_auth_connection_cookie_t
{
364 unsigned int sequence
; /**< */
365 } xcb_xf86dri_auth_connection_cookie_t
;
367 /** Opcode for xcb_xf86dri_auth_connection. */
368 #define XCB_XF86DRI_AUTH_CONNECTION 11
371 * @brief xcb_xf86dri_auth_connection_request_t
373 typedef struct xcb_xf86dri_auth_connection_request_t
{
374 uint8_t major_opcode
; /**< */
375 uint8_t minor_opcode
; /**< */
376 uint16_t length
; /**< */
377 uint32_t screen
; /**< */
378 uint32_t magic
; /**< */
379 } xcb_xf86dri_auth_connection_request_t
;
382 * @brief xcb_xf86dri_auth_connection_reply_t
384 typedef struct xcb_xf86dri_auth_connection_reply_t
{
385 uint8_t response_type
; /**< */
386 uint8_t pad0
; /**< */
387 uint16_t sequence
; /**< */
388 uint32_t length
; /**< */
389 uint32_t authenticated
; /**< */
390 } xcb_xf86dri_auth_connection_reply_t
;
393 * Get the next element of the iterator
394 * @param i Pointer to a xcb_xf86dri_drm_clip_rect_iterator_t
396 * Get the next element in the iterator. The member rem is
397 * decreased by one. The member data points to the next
398 * element. The member index is increased by sizeof(xcb_xf86dri_drm_clip_rect_t)
401 xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t
*i
/**< */);
404 * Return the iterator pointing to the last element
405 * @param i An xcb_xf86dri_drm_clip_rect_iterator_t
406 * @return The iterator pointing to the last element
408 * Set the current element in the iterator to the last element.
409 * The member rem is set to 0. The member data points to the
412 xcb_generic_iterator_t
413 xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i
/**< */);
417 * @param c The connection
420 * Delivers a request to the X server.
423 xcb_xf86dri_query_version_cookie_t
424 xcb_xf86dri_query_version (xcb_connection_t
*c
/**< */);
428 * @param c The connection
431 * Delivers a request to the X server.
433 * This form can be used only if the request will cause
434 * a reply to be generated. Any returned error will be
435 * placed in the event queue.
437 xcb_xf86dri_query_version_cookie_t
438 xcb_xf86dri_query_version_unchecked (xcb_connection_t
*c
/**< */);
442 * @param c The connection
443 * @param cookie The cookie
444 * @param e The xcb_generic_error_t supplied
446 * Returns the reply of the request asked by
448 * The parameter @p e supplied to this function must be NULL if
449 * xcb_xf86dri_query_version_unchecked(). is used.
450 * Otherwise, it stores the error if any.
452 * The returned value must be freed by the caller using free().
454 xcb_xf86dri_query_version_reply_t
*
455 xcb_xf86dri_query_version_reply (xcb_connection_t
*c
/**< */,
456 xcb_xf86dri_query_version_cookie_t cookie
/**< */,
457 xcb_generic_error_t
**e
/**< */);
461 * @param c The connection
464 * Delivers a request to the X server.
467 xcb_xf86dri_query_direct_rendering_capable_cookie_t
468 xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t
*c
/**< */,
469 uint32_t screen
/**< */);
473 * @param c The connection
476 * Delivers a request to the X server.
478 * This form can be used only if the request will cause
479 * a reply to be generated. Any returned error will be
480 * placed in the event queue.
482 xcb_xf86dri_query_direct_rendering_capable_cookie_t
483 xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t
*c
/**< */,
484 uint32_t screen
/**< */);
488 * @param c The connection
489 * @param cookie The cookie
490 * @param e The xcb_generic_error_t supplied
492 * Returns the reply of the request asked by
494 * The parameter @p e supplied to this function must be NULL if
495 * xcb_xf86dri_query_direct_rendering_capable_unchecked(). is used.
496 * Otherwise, it stores the error if any.
498 * The returned value must be freed by the caller using free().
500 xcb_xf86dri_query_direct_rendering_capable_reply_t
*
501 xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t
*c
/**< */,
502 xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie
/**< */,
503 xcb_generic_error_t
**e
/**< */);
506 xcb_xf86dri_open_connection_sizeof (const void *_buffer
/**< */);
510 * @param c The connection
513 * Delivers a request to the X server.
516 xcb_xf86dri_open_connection_cookie_t
517 xcb_xf86dri_open_connection (xcb_connection_t
*c
/**< */,
518 uint32_t screen
/**< */);
522 * @param c The connection
525 * Delivers a request to the X server.
527 * This form can be used only if the request will cause
528 * a reply to be generated. Any returned error will be
529 * placed in the event queue.
531 xcb_xf86dri_open_connection_cookie_t
532 xcb_xf86dri_open_connection_unchecked (xcb_connection_t
*c
/**< */,
533 uint32_t screen
/**< */);
536 xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t
*R
/**< */);
539 xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t
*R
/**< */);
541 xcb_generic_iterator_t
542 xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t
*R
/**< */);
546 * @param c The connection
547 * @param cookie The cookie
548 * @param e The xcb_generic_error_t supplied
550 * Returns the reply of the request asked by
552 * The parameter @p e supplied to this function must be NULL if
553 * xcb_xf86dri_open_connection_unchecked(). is used.
554 * Otherwise, it stores the error if any.
556 * The returned value must be freed by the caller using free().
558 xcb_xf86dri_open_connection_reply_t
*
559 xcb_xf86dri_open_connection_reply (xcb_connection_t
*c
/**< */,
560 xcb_xf86dri_open_connection_cookie_t cookie
/**< */,
561 xcb_generic_error_t
**e
/**< */);
565 * @param c The connection
568 * Delivers a request to the X server.
570 * This form can be used only if the request will not cause
571 * a reply to be generated. Any returned error will be
572 * saved for handling by xcb_request_check().
575 xcb_xf86dri_close_connection_checked (xcb_connection_t
*c
/**< */,
576 uint32_t screen
/**< */);
580 * @param c The connection
583 * Delivers a request to the X server.
587 xcb_xf86dri_close_connection (xcb_connection_t
*c
/**< */,
588 uint32_t screen
/**< */);
591 xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer
/**< */);
595 * @param c The connection
598 * Delivers a request to the X server.
601 xcb_xf86dri_get_client_driver_name_cookie_t
602 xcb_xf86dri_get_client_driver_name (xcb_connection_t
*c
/**< */,
603 uint32_t screen
/**< */);
607 * @param c The connection
610 * Delivers a request to the X server.
612 * This form can be used only if the request will cause
613 * a reply to be generated. Any returned error will be
614 * placed in the event queue.
616 xcb_xf86dri_get_client_driver_name_cookie_t
617 xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t
*c
/**< */,
618 uint32_t screen
/**< */);
621 xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t
*R
/**< */);
624 xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t
*R
/**< */);
626 xcb_generic_iterator_t
627 xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t
*R
/**< */);
631 * @param c The connection
632 * @param cookie The cookie
633 * @param e The xcb_generic_error_t supplied
635 * Returns the reply of the request asked by
637 * The parameter @p e supplied to this function must be NULL if
638 * xcb_xf86dri_get_client_driver_name_unchecked(). is used.
639 * Otherwise, it stores the error if any.
641 * The returned value must be freed by the caller using free().
643 xcb_xf86dri_get_client_driver_name_reply_t
*
644 xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t
*c
/**< */,
645 xcb_xf86dri_get_client_driver_name_cookie_t cookie
/**< */,
646 xcb_generic_error_t
**e
/**< */);
650 * @param c The connection
653 * Delivers a request to the X server.
656 xcb_xf86dri_create_context_cookie_t
657 xcb_xf86dri_create_context (xcb_connection_t
*c
/**< */,
658 uint32_t screen
/**< */,
659 uint32_t visual
/**< */,
660 uint32_t context
/**< */);
664 * @param c The connection
667 * Delivers a request to the X server.
669 * This form can be used only if the request will cause
670 * a reply to be generated. Any returned error will be
671 * placed in the event queue.
673 xcb_xf86dri_create_context_cookie_t
674 xcb_xf86dri_create_context_unchecked (xcb_connection_t
*c
/**< */,
675 uint32_t screen
/**< */,
676 uint32_t visual
/**< */,
677 uint32_t context
/**< */);
681 * @param c The connection
682 * @param cookie The cookie
683 * @param e The xcb_generic_error_t supplied
685 * Returns the reply of the request asked by
687 * The parameter @p e supplied to this function must be NULL if
688 * xcb_xf86dri_create_context_unchecked(). is used.
689 * Otherwise, it stores the error if any.
691 * The returned value must be freed by the caller using free().
693 xcb_xf86dri_create_context_reply_t
*
694 xcb_xf86dri_create_context_reply (xcb_connection_t
*c
/**< */,
695 xcb_xf86dri_create_context_cookie_t cookie
/**< */,
696 xcb_generic_error_t
**e
/**< */);
700 * @param c The connection
703 * Delivers a request to the X server.
705 * This form can be used only if the request will not cause
706 * a reply to be generated. Any returned error will be
707 * saved for handling by xcb_request_check().
710 xcb_xf86dri_destroy_context_checked (xcb_connection_t
*c
/**< */,
711 uint32_t screen
/**< */,
712 uint32_t context
/**< */);
716 * @param c The connection
719 * Delivers a request to the X server.
723 xcb_xf86dri_destroy_context (xcb_connection_t
*c
/**< */,
724 uint32_t screen
/**< */,
725 uint32_t context
/**< */);
729 * @param c The connection
732 * Delivers a request to the X server.
735 xcb_xf86dri_create_drawable_cookie_t
736 xcb_xf86dri_create_drawable (xcb_connection_t
*c
/**< */,
737 uint32_t screen
/**< */,
738 uint32_t drawable
/**< */);
742 * @param c The connection
745 * Delivers a request to the X server.
747 * This form can be used only if the request will cause
748 * a reply to be generated. Any returned error will be
749 * placed in the event queue.
751 xcb_xf86dri_create_drawable_cookie_t
752 xcb_xf86dri_create_drawable_unchecked (xcb_connection_t
*c
/**< */,
753 uint32_t screen
/**< */,
754 uint32_t drawable
/**< */);
758 * @param c The connection
759 * @param cookie The cookie
760 * @param e The xcb_generic_error_t supplied
762 * Returns the reply of the request asked by
764 * The parameter @p e supplied to this function must be NULL if
765 * xcb_xf86dri_create_drawable_unchecked(). is used.
766 * Otherwise, it stores the error if any.
768 * The returned value must be freed by the caller using free().
770 xcb_xf86dri_create_drawable_reply_t
*
771 xcb_xf86dri_create_drawable_reply (xcb_connection_t
*c
/**< */,
772 xcb_xf86dri_create_drawable_cookie_t cookie
/**< */,
773 xcb_generic_error_t
**e
/**< */);
777 * @param c The connection
780 * Delivers a request to the X server.
782 * This form can be used only if the request will not cause
783 * a reply to be generated. Any returned error will be
784 * saved for handling by xcb_request_check().
787 xcb_xf86dri_destroy_drawable_checked (xcb_connection_t
*c
/**< */,
788 uint32_t screen
/**< */,
789 uint32_t drawable
/**< */);
793 * @param c The connection
796 * Delivers a request to the X server.
800 xcb_xf86dri_destroy_drawable (xcb_connection_t
*c
/**< */,
801 uint32_t screen
/**< */,
802 uint32_t drawable
/**< */);
805 xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer
/**< */);
809 * @param c The connection
812 * Delivers a request to the X server.
815 xcb_xf86dri_get_drawable_info_cookie_t
816 xcb_xf86dri_get_drawable_info (xcb_connection_t
*c
/**< */,
817 uint32_t screen
/**< */,
818 uint32_t drawable
/**< */);
822 * @param c The connection
825 * Delivers a request to the X server.
827 * This form can be used only if the request will cause
828 * a reply to be generated. Any returned error will be
829 * placed in the event queue.
831 xcb_xf86dri_get_drawable_info_cookie_t
832 xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t
*c
/**< */,
833 uint32_t screen
/**< */,
834 uint32_t drawable
/**< */);
836 xcb_xf86dri_drm_clip_rect_t
*
837 xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
840 xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
842 xcb_xf86dri_drm_clip_rect_iterator_t
843 xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
845 xcb_xf86dri_drm_clip_rect_t
*
846 xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
849 xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
851 xcb_xf86dri_drm_clip_rect_iterator_t
852 xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t
*R
/**< */);
856 * @param c The connection
857 * @param cookie The cookie
858 * @param e The xcb_generic_error_t supplied
860 * Returns the reply of the request asked by
862 * The parameter @p e supplied to this function must be NULL if
863 * xcb_xf86dri_get_drawable_info_unchecked(). is used.
864 * Otherwise, it stores the error if any.
866 * The returned value must be freed by the caller using free().
868 xcb_xf86dri_get_drawable_info_reply_t
*
869 xcb_xf86dri_get_drawable_info_reply (xcb_connection_t
*c
/**< */,
870 xcb_xf86dri_get_drawable_info_cookie_t cookie
/**< */,
871 xcb_generic_error_t
**e
/**< */);
874 xcb_xf86dri_get_device_info_sizeof (const void *_buffer
/**< */);
878 * @param c The connection
881 * Delivers a request to the X server.
884 xcb_xf86dri_get_device_info_cookie_t
885 xcb_xf86dri_get_device_info (xcb_connection_t
*c
/**< */,
886 uint32_t screen
/**< */);
890 * @param c The connection
893 * Delivers a request to the X server.
895 * This form can be used only if the request will cause
896 * a reply to be generated. Any returned error will be
897 * placed in the event queue.
899 xcb_xf86dri_get_device_info_cookie_t
900 xcb_xf86dri_get_device_info_unchecked (xcb_connection_t
*c
/**< */,
901 uint32_t screen
/**< */);
904 xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t
*R
/**< */);
907 xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t
*R
/**< */);
909 xcb_generic_iterator_t
910 xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t
*R
/**< */);
914 * @param c The connection
915 * @param cookie The cookie
916 * @param e The xcb_generic_error_t supplied
918 * Returns the reply of the request asked by
920 * The parameter @p e supplied to this function must be NULL if
921 * xcb_xf86dri_get_device_info_unchecked(). is used.
922 * Otherwise, it stores the error if any.
924 * The returned value must be freed by the caller using free().
926 xcb_xf86dri_get_device_info_reply_t
*
927 xcb_xf86dri_get_device_info_reply (xcb_connection_t
*c
/**< */,
928 xcb_xf86dri_get_device_info_cookie_t cookie
/**< */,
929 xcb_generic_error_t
**e
/**< */);
933 * @param c The connection
936 * Delivers a request to the X server.
939 xcb_xf86dri_auth_connection_cookie_t
940 xcb_xf86dri_auth_connection (xcb_connection_t
*c
/**< */,
941 uint32_t screen
/**< */,
942 uint32_t magic
/**< */);
946 * @param c The connection
949 * Delivers a request to the X server.
951 * This form can be used only if the request will cause
952 * a reply to be generated. Any returned error will be
953 * placed in the event queue.
955 xcb_xf86dri_auth_connection_cookie_t
956 xcb_xf86dri_auth_connection_unchecked (xcb_connection_t
*c
/**< */,
957 uint32_t screen
/**< */,
958 uint32_t magic
/**< */);
962 * @param c The connection
963 * @param cookie The cookie
964 * @param e The xcb_generic_error_t supplied
966 * Returns the reply of the request asked by
968 * The parameter @p e supplied to this function must be NULL if
969 * xcb_xf86dri_auth_connection_unchecked(). is used.
970 * Otherwise, it stores the error if any.
972 * The returned value must be freed by the caller using free().
974 xcb_xf86dri_auth_connection_reply_t
*
975 xcb_xf86dri_auth_connection_reply (xcb_connection_t
*c
/**< */,
976 xcb_xf86dri_auth_connection_cookie_t cookie
/**< */,
977 xcb_generic_error_t
**e
/**< */);