jpayne@69: /* jpayne@69: * This file generated automatically from xf86dri.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB_XF86Dri_API XCB XF86Dri API jpayne@69: * @brief XF86Dri XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __XF86DRI_H jpayne@69: #define __XF86DRI_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define XCB_XF86DRI_MAJOR_VERSION 4 jpayne@69: #define XCB_XF86DRI_MINOR_VERSION 1 jpayne@69: jpayne@69: extern xcb_extension_t xcb_xf86dri_id; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_drm_clip_rect_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_drm_clip_rect_t { jpayne@69: int16_t x1; jpayne@69: int16_t y1; jpayne@69: int16_t x2; jpayne@69: int16_t x3; jpayne@69: } xcb_xf86dri_drm_clip_rect_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_drm_clip_rect_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_drm_clip_rect_iterator_t { jpayne@69: xcb_xf86dri_drm_clip_rect_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xf86dri_drm_clip_rect_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_version_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_version_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_query_version_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_query_version. */ jpayne@69: #define XCB_XF86DRI_QUERY_VERSION 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_version_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_version_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_xf86dri_query_version_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_version_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_version_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t dri_major_version; jpayne@69: uint16_t dri_minor_version; jpayne@69: uint32_t dri_minor_patch; jpayne@69: } xcb_xf86dri_query_version_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_direct_rendering_capable_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_direct_rendering_capable_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_query_direct_rendering_capable_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_query_direct_rendering_capable. */ jpayne@69: #define XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_direct_rendering_capable_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_direct_rendering_capable_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: } xcb_xf86dri_query_direct_rendering_capable_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_query_direct_rendering_capable_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_query_direct_rendering_capable_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t is_capable; jpayne@69: } xcb_xf86dri_query_direct_rendering_capable_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_open_connection_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_open_connection_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_open_connection_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_open_connection. */ jpayne@69: #define XCB_XF86DRI_OPEN_CONNECTION 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_open_connection_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_open_connection_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: } xcb_xf86dri_open_connection_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_open_connection_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_open_connection_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t sarea_handle_low; jpayne@69: uint32_t sarea_handle_high; jpayne@69: uint32_t bus_id_len; jpayne@69: uint8_t pad1[12]; jpayne@69: } xcb_xf86dri_open_connection_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_close_connection. */ jpayne@69: #define XCB_XF86DRI_CLOSE_CONNECTION 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_close_connection_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_close_connection_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: } xcb_xf86dri_close_connection_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_client_driver_name_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_client_driver_name_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_get_client_driver_name_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_get_client_driver_name. */ jpayne@69: #define XCB_XF86DRI_GET_CLIENT_DRIVER_NAME 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_client_driver_name_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_client_driver_name_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: } xcb_xf86dri_get_client_driver_name_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_client_driver_name_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_client_driver_name_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t client_driver_major_version; jpayne@69: uint32_t client_driver_minor_version; jpayne@69: uint32_t client_driver_patch_version; jpayne@69: uint32_t client_driver_name_len; jpayne@69: uint8_t pad1[8]; jpayne@69: } xcb_xf86dri_get_client_driver_name_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_context_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_context_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_create_context_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_create_context. */ jpayne@69: #define XCB_XF86DRI_CREATE_CONTEXT 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_context_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_context_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t visual; jpayne@69: uint32_t context; jpayne@69: } xcb_xf86dri_create_context_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_context_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_context_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t hw_context; jpayne@69: } xcb_xf86dri_create_context_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_destroy_context. */ jpayne@69: #define XCB_XF86DRI_DESTROY_CONTEXT 6 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_destroy_context_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_destroy_context_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t context; jpayne@69: } xcb_xf86dri_destroy_context_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_drawable_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_drawable_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_create_drawable_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_create_drawable. */ jpayne@69: #define XCB_XF86DRI_CREATE_DRAWABLE 7 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_drawable_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_drawable_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t drawable; jpayne@69: } xcb_xf86dri_create_drawable_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_create_drawable_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_create_drawable_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t hw_drawable_handle; jpayne@69: } xcb_xf86dri_create_drawable_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_destroy_drawable. */ jpayne@69: #define XCB_XF86DRI_DESTROY_DRAWABLE 8 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_destroy_drawable_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_destroy_drawable_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t drawable; jpayne@69: } xcb_xf86dri_destroy_drawable_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_drawable_info_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_drawable_info_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_get_drawable_info_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_get_drawable_info. */ jpayne@69: #define XCB_XF86DRI_GET_DRAWABLE_INFO 9 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_drawable_info_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_drawable_info_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t drawable; jpayne@69: } xcb_xf86dri_get_drawable_info_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_drawable_info_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_drawable_info_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t drawable_table_index; jpayne@69: uint32_t drawable_table_stamp; jpayne@69: int16_t drawable_origin_X; jpayne@69: int16_t drawable_origin_Y; jpayne@69: int16_t drawable_size_W; jpayne@69: int16_t drawable_size_H; jpayne@69: uint32_t num_clip_rects; jpayne@69: int16_t back_x; jpayne@69: int16_t back_y; jpayne@69: uint32_t num_back_clip_rects; jpayne@69: } xcb_xf86dri_get_drawable_info_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_device_info_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_device_info_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_get_device_info_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_get_device_info. */ jpayne@69: #define XCB_XF86DRI_GET_DEVICE_INFO 10 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_device_info_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_device_info_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: } xcb_xf86dri_get_device_info_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_get_device_info_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_get_device_info_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t framebuffer_handle_low; jpayne@69: uint32_t framebuffer_handle_high; jpayne@69: uint32_t framebuffer_origin_offset; jpayne@69: uint32_t framebuffer_size; jpayne@69: uint32_t framebuffer_stride; jpayne@69: uint32_t device_private_size; jpayne@69: } xcb_xf86dri_get_device_info_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_auth_connection_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_auth_connection_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xf86dri_auth_connection_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xf86dri_auth_connection. */ jpayne@69: #define XCB_XF86DRI_AUTH_CONNECTION 11 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_auth_connection_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_auth_connection_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t screen; jpayne@69: uint32_t magic; jpayne@69: } xcb_xf86dri_auth_connection_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xf86dri_auth_connection_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xf86dri_auth_connection_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t authenticated; jpayne@69: } xcb_xf86dri_auth_connection_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xf86dri_drm_clip_rect_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xf86dri_drm_clip_rect_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xf86dri_drm_clip_rect_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_query_version_cookie_t jpayne@69: xcb_xf86dri_query_version (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_query_version_cookie_t jpayne@69: xcb_xf86dri_query_version_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_query_version_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_query_version_reply_t * jpayne@69: xcb_xf86dri_query_version_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_query_version_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_query_direct_rendering_capable_cookie_t jpayne@69: xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_query_direct_rendering_capable_cookie_t jpayne@69: xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_query_direct_rendering_capable_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_query_direct_rendering_capable_reply_t * jpayne@69: xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_open_connection_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_open_connection_cookie_t jpayne@69: xcb_xf86dri_open_connection (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_open_connection_cookie_t jpayne@69: xcb_xf86dri_open_connection_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: char * jpayne@69: xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_open_connection_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_open_connection_reply_t * jpayne@69: xcb_xf86dri_open_connection_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_open_connection_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_close_connection_checked (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_close_connection (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_get_client_driver_name_cookie_t jpayne@69: xcb_xf86dri_get_client_driver_name (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_get_client_driver_name_cookie_t jpayne@69: xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: char * jpayne@69: xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_get_client_driver_name_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_get_client_driver_name_reply_t * jpayne@69: xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_get_client_driver_name_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_create_context_cookie_t jpayne@69: xcb_xf86dri_create_context (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t visual, jpayne@69: uint32_t context); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_create_context_cookie_t jpayne@69: xcb_xf86dri_create_context_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t visual, jpayne@69: uint32_t context); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_create_context_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_create_context_reply_t * jpayne@69: xcb_xf86dri_create_context_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_create_context_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_destroy_context_checked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t context); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_destroy_context (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t context); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_create_drawable_cookie_t jpayne@69: xcb_xf86dri_create_drawable (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_create_drawable_cookie_t jpayne@69: xcb_xf86dri_create_drawable_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_create_drawable_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_create_drawable_reply_t * jpayne@69: xcb_xf86dri_create_drawable_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_create_drawable_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_destroy_drawable_checked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_xf86dri_destroy_drawable (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_get_drawable_info_cookie_t jpayne@69: xcb_xf86dri_get_drawable_info (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_get_drawable_info_cookie_t jpayne@69: xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t drawable); jpayne@69: jpayne@69: xcb_xf86dri_drm_clip_rect_t * jpayne@69: xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: xcb_xf86dri_drm_clip_rect_iterator_t jpayne@69: xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: xcb_xf86dri_drm_clip_rect_t * jpayne@69: xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: xcb_xf86dri_drm_clip_rect_iterator_t jpayne@69: xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_get_drawable_info_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_get_drawable_info_reply_t * jpayne@69: xcb_xf86dri_get_drawable_info_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_get_drawable_info_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_device_info_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_get_device_info_cookie_t jpayne@69: xcb_xf86dri_get_device_info (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_get_device_info_cookie_t jpayne@69: xcb_xf86dri_get_device_info_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_get_device_info_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_get_device_info_reply_t * jpayne@69: xcb_xf86dri_get_device_info_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_get_device_info_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xf86dri_auth_connection_cookie_t jpayne@69: xcb_xf86dri_auth_connection (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t magic); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xf86dri_auth_connection_cookie_t jpayne@69: xcb_xf86dri_auth_connection_unchecked (xcb_connection_t *c, jpayne@69: uint32_t screen, jpayne@69: uint32_t magic); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xf86dri_auth_connection_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xf86dri_auth_connection_reply_t * jpayne@69: xcb_xf86dri_auth_connection_reply (xcb_connection_t *c, jpayne@69: xcb_xf86dri_auth_connection_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */