* This file generated automatically from dri2.xml by c_client.py.
* @defgroup XCB_DRI2_API XCB DRI2 API
* @brief DRI2 XCB Protocol Implementation.
#define XCB_DRI2_MAJOR_VERSION 1
#define XCB_DRI2_MINOR_VERSION 4
extern xcb_extension_t xcb_dri2_id;
typedef enum xcb_dri2_attachment_t {
XCB_DRI2_ATTACHMENT_BUFFER_FRONT_LEFT = 0,
XCB_DRI2_ATTACHMENT_BUFFER_BACK_LEFT = 1,
XCB_DRI2_ATTACHMENT_BUFFER_FRONT_RIGHT = 2,
XCB_DRI2_ATTACHMENT_BUFFER_BACK_RIGHT = 3,
XCB_DRI2_ATTACHMENT_BUFFER_DEPTH = 4,
XCB_DRI2_ATTACHMENT_BUFFER_STENCIL = 5,
XCB_DRI2_ATTACHMENT_BUFFER_ACCUM = 6,
XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_LEFT = 7,
XCB_DRI2_ATTACHMENT_BUFFER_FAKE_FRONT_RIGHT = 8,
XCB_DRI2_ATTACHMENT_BUFFER_DEPTH_STENCIL = 9,
XCB_DRI2_ATTACHMENT_BUFFER_HIZ = 10
typedef enum xcb_dri2_driver_type_t {
XCB_DRI2_DRIVER_TYPE_DRI = 0,
XCB_DRI2_DRIVER_TYPE_VDPAU = 1
} xcb_dri2_driver_type_t;
typedef enum xcb_dri2_event_type_t {
XCB_DRI2_EVENT_TYPE_EXCHANGE_COMPLETE = 1,
XCB_DRI2_EVENT_TYPE_BLIT_COMPLETE = 2,
XCB_DRI2_EVENT_TYPE_FLIP_COMPLETE = 3
* @brief xcb_dri2_dri2_buffer_t
typedef struct xcb_dri2_dri2_buffer_t {
} xcb_dri2_dri2_buffer_t;
* @brief xcb_dri2_dri2_buffer_iterator_t
typedef struct xcb_dri2_dri2_buffer_iterator_t {
xcb_dri2_dri2_buffer_t *data;
} xcb_dri2_dri2_buffer_iterator_t;
* @brief xcb_dri2_attach_format_t
typedef struct xcb_dri2_attach_format_t {
} xcb_dri2_attach_format_t;
* @brief xcb_dri2_attach_format_iterator_t
typedef struct xcb_dri2_attach_format_iterator_t {
xcb_dri2_attach_format_t *data;
} xcb_dri2_attach_format_iterator_t;
* @brief xcb_dri2_query_version_cookie_t
typedef struct xcb_dri2_query_version_cookie_t {
} xcb_dri2_query_version_cookie_t;
/** Opcode for xcb_dri2_query_version. */
#define XCB_DRI2_QUERY_VERSION 0
* @brief xcb_dri2_query_version_request_t
typedef struct xcb_dri2_query_version_request_t {
} xcb_dri2_query_version_request_t;
* @brief xcb_dri2_query_version_reply_t
typedef struct xcb_dri2_query_version_reply_t {
} xcb_dri2_query_version_reply_t;
* @brief xcb_dri2_connect_cookie_t
typedef struct xcb_dri2_connect_cookie_t {
} xcb_dri2_connect_cookie_t;
/** Opcode for xcb_dri2_connect. */
#define XCB_DRI2_CONNECT 1
* @brief xcb_dri2_connect_request_t
typedef struct xcb_dri2_connect_request_t {
} xcb_dri2_connect_request_t;
* @brief xcb_dri2_connect_reply_t
typedef struct xcb_dri2_connect_reply_t {
uint32_t driver_name_length;
uint32_t device_name_length;
} xcb_dri2_connect_reply_t;
* @brief xcb_dri2_authenticate_cookie_t
typedef struct xcb_dri2_authenticate_cookie_t {
} xcb_dri2_authenticate_cookie_t;
/** Opcode for xcb_dri2_authenticate. */
#define XCB_DRI2_AUTHENTICATE 2
* @brief xcb_dri2_authenticate_request_t
typedef struct xcb_dri2_authenticate_request_t {
} xcb_dri2_authenticate_request_t;
* @brief xcb_dri2_authenticate_reply_t
typedef struct xcb_dri2_authenticate_reply_t {
} xcb_dri2_authenticate_reply_t;
/** Opcode for xcb_dri2_create_drawable. */
#define XCB_DRI2_CREATE_DRAWABLE 3
* @brief xcb_dri2_create_drawable_request_t
typedef struct xcb_dri2_create_drawable_request_t {
} xcb_dri2_create_drawable_request_t;
/** Opcode for xcb_dri2_destroy_drawable. */
#define XCB_DRI2_DESTROY_DRAWABLE 4
* @brief xcb_dri2_destroy_drawable_request_t
typedef struct xcb_dri2_destroy_drawable_request_t {
} xcb_dri2_destroy_drawable_request_t;
* @brief xcb_dri2_get_buffers_cookie_t
typedef struct xcb_dri2_get_buffers_cookie_t {
} xcb_dri2_get_buffers_cookie_t;
/** Opcode for xcb_dri2_get_buffers. */
#define XCB_DRI2_GET_BUFFERS 5
* @brief xcb_dri2_get_buffers_request_t
typedef struct xcb_dri2_get_buffers_request_t {
} xcb_dri2_get_buffers_request_t;
* @brief xcb_dri2_get_buffers_reply_t
typedef struct xcb_dri2_get_buffers_reply_t {
} xcb_dri2_get_buffers_reply_t;
* @brief xcb_dri2_copy_region_cookie_t
typedef struct xcb_dri2_copy_region_cookie_t {
} xcb_dri2_copy_region_cookie_t;
/** Opcode for xcb_dri2_copy_region. */
#define XCB_DRI2_COPY_REGION 6
* @brief xcb_dri2_copy_region_request_t
typedef struct xcb_dri2_copy_region_request_t {
} xcb_dri2_copy_region_request_t;
* @brief xcb_dri2_copy_region_reply_t
typedef struct xcb_dri2_copy_region_reply_t {
} xcb_dri2_copy_region_reply_t;
* @brief xcb_dri2_get_buffers_with_format_cookie_t
typedef struct xcb_dri2_get_buffers_with_format_cookie_t {
} xcb_dri2_get_buffers_with_format_cookie_t;
/** Opcode for xcb_dri2_get_buffers_with_format. */
#define XCB_DRI2_GET_BUFFERS_WITH_FORMAT 7
* @brief xcb_dri2_get_buffers_with_format_request_t
typedef struct xcb_dri2_get_buffers_with_format_request_t {
} xcb_dri2_get_buffers_with_format_request_t;
* @brief xcb_dri2_get_buffers_with_format_reply_t
typedef struct xcb_dri2_get_buffers_with_format_reply_t {
} xcb_dri2_get_buffers_with_format_reply_t;
* @brief xcb_dri2_swap_buffers_cookie_t
typedef struct xcb_dri2_swap_buffers_cookie_t {
} xcb_dri2_swap_buffers_cookie_t;
/** Opcode for xcb_dri2_swap_buffers. */
#define XCB_DRI2_SWAP_BUFFERS 8
* @brief xcb_dri2_swap_buffers_request_t
typedef struct xcb_dri2_swap_buffers_request_t {
} xcb_dri2_swap_buffers_request_t;
* @brief xcb_dri2_swap_buffers_reply_t
typedef struct xcb_dri2_swap_buffers_reply_t {
} xcb_dri2_swap_buffers_reply_t;
* @brief xcb_dri2_get_msc_cookie_t
typedef struct xcb_dri2_get_msc_cookie_t {
} xcb_dri2_get_msc_cookie_t;
/** Opcode for xcb_dri2_get_msc. */
#define XCB_DRI2_GET_MSC 9
* @brief xcb_dri2_get_msc_request_t
typedef struct xcb_dri2_get_msc_request_t {
} xcb_dri2_get_msc_request_t;
* @brief xcb_dri2_get_msc_reply_t
typedef struct xcb_dri2_get_msc_reply_t {
} xcb_dri2_get_msc_reply_t;
* @brief xcb_dri2_wait_msc_cookie_t
typedef struct xcb_dri2_wait_msc_cookie_t {
} xcb_dri2_wait_msc_cookie_t;
/** Opcode for xcb_dri2_wait_msc. */
#define XCB_DRI2_WAIT_MSC 10
* @brief xcb_dri2_wait_msc_request_t
typedef struct xcb_dri2_wait_msc_request_t {
} xcb_dri2_wait_msc_request_t;
* @brief xcb_dri2_wait_msc_reply_t
typedef struct xcb_dri2_wait_msc_reply_t {
} xcb_dri2_wait_msc_reply_t;
* @brief xcb_dri2_wait_sbc_cookie_t
typedef struct xcb_dri2_wait_sbc_cookie_t {
} xcb_dri2_wait_sbc_cookie_t;
/** Opcode for xcb_dri2_wait_sbc. */
#define XCB_DRI2_WAIT_SBC 11
* @brief xcb_dri2_wait_sbc_request_t
typedef struct xcb_dri2_wait_sbc_request_t {
} xcb_dri2_wait_sbc_request_t;
* @brief xcb_dri2_wait_sbc_reply_t
typedef struct xcb_dri2_wait_sbc_reply_t {
} xcb_dri2_wait_sbc_reply_t;
/** Opcode for xcb_dri2_swap_interval. */
#define XCB_DRI2_SWAP_INTERVAL 12
* @brief xcb_dri2_swap_interval_request_t
typedef struct xcb_dri2_swap_interval_request_t {
} xcb_dri2_swap_interval_request_t;
* @brief xcb_dri2_get_param_cookie_t
typedef struct xcb_dri2_get_param_cookie_t {
} xcb_dri2_get_param_cookie_t;
/** Opcode for xcb_dri2_get_param. */
#define XCB_DRI2_GET_PARAM 13
* @brief xcb_dri2_get_param_request_t
typedef struct xcb_dri2_get_param_request_t {