1*971bb1a5SLionel Sambuc /* 2*971bb1a5SLionel Sambuc * This file generated automatically from xf86dri.xml by c_client.py. 3*971bb1a5SLionel Sambuc * Edit at your peril. 4*971bb1a5SLionel Sambuc */ 5*971bb1a5SLionel Sambuc 6*971bb1a5SLionel Sambuc /** 7*971bb1a5SLionel Sambuc * @defgroup XCB_XF86Dri_API XCB XF86Dri API 8*971bb1a5SLionel Sambuc * @brief XF86Dri XCB Protocol Implementation. 9*971bb1a5SLionel Sambuc * @{ 10*971bb1a5SLionel Sambuc **/ 11*971bb1a5SLionel Sambuc 12*971bb1a5SLionel Sambuc #ifndef __XF86DRI_H 13*971bb1a5SLionel Sambuc #define __XF86DRI_H 14*971bb1a5SLionel Sambuc 15*971bb1a5SLionel Sambuc #include "xcb.h" 16*971bb1a5SLionel Sambuc 17*971bb1a5SLionel Sambuc #ifdef __cplusplus 18*971bb1a5SLionel Sambuc extern "C" { 19*971bb1a5SLionel Sambuc #endif 20*971bb1a5SLionel Sambuc 21*971bb1a5SLionel Sambuc #define XCB_XF86DRI_MAJOR_VERSION 4 22*971bb1a5SLionel Sambuc #define XCB_XF86DRI_MINOR_VERSION 1 23*971bb1a5SLionel Sambuc 24*971bb1a5SLionel Sambuc extern xcb_extension_t xcb_xf86dri_id; 25*971bb1a5SLionel Sambuc 26*971bb1a5SLionel Sambuc /** 27*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_drm_clip_rect_t 28*971bb1a5SLionel Sambuc **/ 29*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_drm_clip_rect_t { 30*971bb1a5SLionel Sambuc int16_t x1; /**< */ 31*971bb1a5SLionel Sambuc int16_t y1; /**< */ 32*971bb1a5SLionel Sambuc int16_t x2; /**< */ 33*971bb1a5SLionel Sambuc int16_t x3; /**< */ 34*971bb1a5SLionel Sambuc } xcb_xf86dri_drm_clip_rect_t; 35*971bb1a5SLionel Sambuc 36*971bb1a5SLionel Sambuc /** 37*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_drm_clip_rect_iterator_t 38*971bb1a5SLionel Sambuc **/ 39*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_drm_clip_rect_iterator_t { 40*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_t *data; /**< */ 41*971bb1a5SLionel Sambuc int rem; /**< */ 42*971bb1a5SLionel Sambuc int index; /**< */ 43*971bb1a5SLionel Sambuc } xcb_xf86dri_drm_clip_rect_iterator_t; 44*971bb1a5SLionel Sambuc 45*971bb1a5SLionel Sambuc /** 46*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_version_cookie_t 47*971bb1a5SLionel Sambuc **/ 48*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_version_cookie_t { 49*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 50*971bb1a5SLionel Sambuc } xcb_xf86dri_query_version_cookie_t; 51*971bb1a5SLionel Sambuc 52*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_query_version. */ 53*971bb1a5SLionel Sambuc #define XCB_XF86DRI_QUERY_VERSION 0 54*971bb1a5SLionel Sambuc 55*971bb1a5SLionel Sambuc /** 56*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_version_request_t 57*971bb1a5SLionel Sambuc **/ 58*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_version_request_t { 59*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 60*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 61*971bb1a5SLionel Sambuc uint16_t length; /**< */ 62*971bb1a5SLionel Sambuc } xcb_xf86dri_query_version_request_t; 63*971bb1a5SLionel Sambuc 64*971bb1a5SLionel Sambuc /** 65*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_version_reply_t 66*971bb1a5SLionel Sambuc **/ 67*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_version_reply_t { 68*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 69*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 70*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 71*971bb1a5SLionel Sambuc uint32_t length; /**< */ 72*971bb1a5SLionel Sambuc uint16_t dri_major_version; /**< */ 73*971bb1a5SLionel Sambuc uint16_t dri_minor_version; /**< */ 74*971bb1a5SLionel Sambuc uint32_t dri_minor_patch; /**< */ 75*971bb1a5SLionel Sambuc } xcb_xf86dri_query_version_reply_t; 76*971bb1a5SLionel Sambuc 77*971bb1a5SLionel Sambuc /** 78*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_direct_rendering_capable_cookie_t 79*971bb1a5SLionel Sambuc **/ 80*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_direct_rendering_capable_cookie_t { 81*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 82*971bb1a5SLionel Sambuc } xcb_xf86dri_query_direct_rendering_capable_cookie_t; 83*971bb1a5SLionel Sambuc 84*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_query_direct_rendering_capable. */ 85*971bb1a5SLionel Sambuc #define XCB_XF86DRI_QUERY_DIRECT_RENDERING_CAPABLE 1 86*971bb1a5SLionel Sambuc 87*971bb1a5SLionel Sambuc /** 88*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_direct_rendering_capable_request_t 89*971bb1a5SLionel Sambuc **/ 90*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_direct_rendering_capable_request_t { 91*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 92*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 93*971bb1a5SLionel Sambuc uint16_t length; /**< */ 94*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 95*971bb1a5SLionel Sambuc } xcb_xf86dri_query_direct_rendering_capable_request_t; 96*971bb1a5SLionel Sambuc 97*971bb1a5SLionel Sambuc /** 98*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_query_direct_rendering_capable_reply_t 99*971bb1a5SLionel Sambuc **/ 100*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_query_direct_rendering_capable_reply_t { 101*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 102*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 103*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 104*971bb1a5SLionel Sambuc uint32_t length; /**< */ 105*971bb1a5SLionel Sambuc uint8_t is_capable; /**< */ 106*971bb1a5SLionel Sambuc } xcb_xf86dri_query_direct_rendering_capable_reply_t; 107*971bb1a5SLionel Sambuc 108*971bb1a5SLionel Sambuc /** 109*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_open_connection_cookie_t 110*971bb1a5SLionel Sambuc **/ 111*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_open_connection_cookie_t { 112*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 113*971bb1a5SLionel Sambuc } xcb_xf86dri_open_connection_cookie_t; 114*971bb1a5SLionel Sambuc 115*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_open_connection. */ 116*971bb1a5SLionel Sambuc #define XCB_XF86DRI_OPEN_CONNECTION 2 117*971bb1a5SLionel Sambuc 118*971bb1a5SLionel Sambuc /** 119*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_open_connection_request_t 120*971bb1a5SLionel Sambuc **/ 121*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_open_connection_request_t { 122*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 123*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 124*971bb1a5SLionel Sambuc uint16_t length; /**< */ 125*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 126*971bb1a5SLionel Sambuc } xcb_xf86dri_open_connection_request_t; 127*971bb1a5SLionel Sambuc 128*971bb1a5SLionel Sambuc /** 129*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_open_connection_reply_t 130*971bb1a5SLionel Sambuc **/ 131*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_open_connection_reply_t { 132*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 133*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 134*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 135*971bb1a5SLionel Sambuc uint32_t length; /**< */ 136*971bb1a5SLionel Sambuc uint32_t sarea_handle_low; /**< */ 137*971bb1a5SLionel Sambuc uint32_t sarea_handle_high; /**< */ 138*971bb1a5SLionel Sambuc uint32_t bus_id_len; /**< */ 139*971bb1a5SLionel Sambuc uint8_t pad1[12]; /**< */ 140*971bb1a5SLionel Sambuc } xcb_xf86dri_open_connection_reply_t; 141*971bb1a5SLionel Sambuc 142*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_close_connection. */ 143*971bb1a5SLionel Sambuc #define XCB_XF86DRI_CLOSE_CONNECTION 3 144*971bb1a5SLionel Sambuc 145*971bb1a5SLionel Sambuc /** 146*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_close_connection_request_t 147*971bb1a5SLionel Sambuc **/ 148*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_close_connection_request_t { 149*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 150*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 151*971bb1a5SLionel Sambuc uint16_t length; /**< */ 152*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 153*971bb1a5SLionel Sambuc } xcb_xf86dri_close_connection_request_t; 154*971bb1a5SLionel Sambuc 155*971bb1a5SLionel Sambuc /** 156*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_client_driver_name_cookie_t 157*971bb1a5SLionel Sambuc **/ 158*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_client_driver_name_cookie_t { 159*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 160*971bb1a5SLionel Sambuc } xcb_xf86dri_get_client_driver_name_cookie_t; 161*971bb1a5SLionel Sambuc 162*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_get_client_driver_name. */ 163*971bb1a5SLionel Sambuc #define XCB_XF86DRI_GET_CLIENT_DRIVER_NAME 4 164*971bb1a5SLionel Sambuc 165*971bb1a5SLionel Sambuc /** 166*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_client_driver_name_request_t 167*971bb1a5SLionel Sambuc **/ 168*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_client_driver_name_request_t { 169*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 170*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 171*971bb1a5SLionel Sambuc uint16_t length; /**< */ 172*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 173*971bb1a5SLionel Sambuc } xcb_xf86dri_get_client_driver_name_request_t; 174*971bb1a5SLionel Sambuc 175*971bb1a5SLionel Sambuc /** 176*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_client_driver_name_reply_t 177*971bb1a5SLionel Sambuc **/ 178*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_client_driver_name_reply_t { 179*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 180*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 181*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 182*971bb1a5SLionel Sambuc uint32_t length; /**< */ 183*971bb1a5SLionel Sambuc uint32_t client_driver_major_version; /**< */ 184*971bb1a5SLionel Sambuc uint32_t client_driver_minor_version; /**< */ 185*971bb1a5SLionel Sambuc uint32_t client_driver_patch_version; /**< */ 186*971bb1a5SLionel Sambuc uint32_t client_driver_name_len; /**< */ 187*971bb1a5SLionel Sambuc uint8_t pad1[8]; /**< */ 188*971bb1a5SLionel Sambuc } xcb_xf86dri_get_client_driver_name_reply_t; 189*971bb1a5SLionel Sambuc 190*971bb1a5SLionel Sambuc /** 191*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_context_cookie_t 192*971bb1a5SLionel Sambuc **/ 193*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_context_cookie_t { 194*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 195*971bb1a5SLionel Sambuc } xcb_xf86dri_create_context_cookie_t; 196*971bb1a5SLionel Sambuc 197*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_create_context. */ 198*971bb1a5SLionel Sambuc #define XCB_XF86DRI_CREATE_CONTEXT 5 199*971bb1a5SLionel Sambuc 200*971bb1a5SLionel Sambuc /** 201*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_context_request_t 202*971bb1a5SLionel Sambuc **/ 203*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_context_request_t { 204*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 205*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 206*971bb1a5SLionel Sambuc uint16_t length; /**< */ 207*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 208*971bb1a5SLionel Sambuc uint32_t visual; /**< */ 209*971bb1a5SLionel Sambuc uint32_t context; /**< */ 210*971bb1a5SLionel Sambuc } xcb_xf86dri_create_context_request_t; 211*971bb1a5SLionel Sambuc 212*971bb1a5SLionel Sambuc /** 213*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_context_reply_t 214*971bb1a5SLionel Sambuc **/ 215*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_context_reply_t { 216*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 217*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 218*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 219*971bb1a5SLionel Sambuc uint32_t length; /**< */ 220*971bb1a5SLionel Sambuc uint32_t hw_context; /**< */ 221*971bb1a5SLionel Sambuc } xcb_xf86dri_create_context_reply_t; 222*971bb1a5SLionel Sambuc 223*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_destroy_context. */ 224*971bb1a5SLionel Sambuc #define XCB_XF86DRI_DESTROY_CONTEXT 6 225*971bb1a5SLionel Sambuc 226*971bb1a5SLionel Sambuc /** 227*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_destroy_context_request_t 228*971bb1a5SLionel Sambuc **/ 229*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_destroy_context_request_t { 230*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 231*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 232*971bb1a5SLionel Sambuc uint16_t length; /**< */ 233*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 234*971bb1a5SLionel Sambuc uint32_t context; /**< */ 235*971bb1a5SLionel Sambuc } xcb_xf86dri_destroy_context_request_t; 236*971bb1a5SLionel Sambuc 237*971bb1a5SLionel Sambuc /** 238*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_drawable_cookie_t 239*971bb1a5SLionel Sambuc **/ 240*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_drawable_cookie_t { 241*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 242*971bb1a5SLionel Sambuc } xcb_xf86dri_create_drawable_cookie_t; 243*971bb1a5SLionel Sambuc 244*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_create_drawable. */ 245*971bb1a5SLionel Sambuc #define XCB_XF86DRI_CREATE_DRAWABLE 7 246*971bb1a5SLionel Sambuc 247*971bb1a5SLionel Sambuc /** 248*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_drawable_request_t 249*971bb1a5SLionel Sambuc **/ 250*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_drawable_request_t { 251*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 252*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 253*971bb1a5SLionel Sambuc uint16_t length; /**< */ 254*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 255*971bb1a5SLionel Sambuc uint32_t drawable; /**< */ 256*971bb1a5SLionel Sambuc } xcb_xf86dri_create_drawable_request_t; 257*971bb1a5SLionel Sambuc 258*971bb1a5SLionel Sambuc /** 259*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_create_drawable_reply_t 260*971bb1a5SLionel Sambuc **/ 261*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_create_drawable_reply_t { 262*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 263*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 264*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 265*971bb1a5SLionel Sambuc uint32_t length; /**< */ 266*971bb1a5SLionel Sambuc uint32_t hw_drawable_handle; /**< */ 267*971bb1a5SLionel Sambuc } xcb_xf86dri_create_drawable_reply_t; 268*971bb1a5SLionel Sambuc 269*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_destroy_drawable. */ 270*971bb1a5SLionel Sambuc #define XCB_XF86DRI_DESTROY_DRAWABLE 8 271*971bb1a5SLionel Sambuc 272*971bb1a5SLionel Sambuc /** 273*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_destroy_drawable_request_t 274*971bb1a5SLionel Sambuc **/ 275*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_destroy_drawable_request_t { 276*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 277*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 278*971bb1a5SLionel Sambuc uint16_t length; /**< */ 279*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 280*971bb1a5SLionel Sambuc uint32_t drawable; /**< */ 281*971bb1a5SLionel Sambuc } xcb_xf86dri_destroy_drawable_request_t; 282*971bb1a5SLionel Sambuc 283*971bb1a5SLionel Sambuc /** 284*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_drawable_info_cookie_t 285*971bb1a5SLionel Sambuc **/ 286*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_drawable_info_cookie_t { 287*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 288*971bb1a5SLionel Sambuc } xcb_xf86dri_get_drawable_info_cookie_t; 289*971bb1a5SLionel Sambuc 290*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_get_drawable_info. */ 291*971bb1a5SLionel Sambuc #define XCB_XF86DRI_GET_DRAWABLE_INFO 9 292*971bb1a5SLionel Sambuc 293*971bb1a5SLionel Sambuc /** 294*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_drawable_info_request_t 295*971bb1a5SLionel Sambuc **/ 296*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_drawable_info_request_t { 297*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 298*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 299*971bb1a5SLionel Sambuc uint16_t length; /**< */ 300*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 301*971bb1a5SLionel Sambuc uint32_t drawable; /**< */ 302*971bb1a5SLionel Sambuc } xcb_xf86dri_get_drawable_info_request_t; 303*971bb1a5SLionel Sambuc 304*971bb1a5SLionel Sambuc /** 305*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_drawable_info_reply_t 306*971bb1a5SLionel Sambuc **/ 307*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_drawable_info_reply_t { 308*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 309*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 310*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 311*971bb1a5SLionel Sambuc uint32_t length; /**< */ 312*971bb1a5SLionel Sambuc uint32_t drawable_table_index; /**< */ 313*971bb1a5SLionel Sambuc uint32_t drawable_table_stamp; /**< */ 314*971bb1a5SLionel Sambuc int16_t drawable_origin_X; /**< */ 315*971bb1a5SLionel Sambuc int16_t drawable_origin_Y; /**< */ 316*971bb1a5SLionel Sambuc int16_t drawable_size_W; /**< */ 317*971bb1a5SLionel Sambuc int16_t drawable_size_H; /**< */ 318*971bb1a5SLionel Sambuc uint32_t num_clip_rects; /**< */ 319*971bb1a5SLionel Sambuc int16_t back_x; /**< */ 320*971bb1a5SLionel Sambuc int16_t back_y; /**< */ 321*971bb1a5SLionel Sambuc uint32_t num_back_clip_rects; /**< */ 322*971bb1a5SLionel Sambuc } xcb_xf86dri_get_drawable_info_reply_t; 323*971bb1a5SLionel Sambuc 324*971bb1a5SLionel Sambuc /** 325*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_device_info_cookie_t 326*971bb1a5SLionel Sambuc **/ 327*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_device_info_cookie_t { 328*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 329*971bb1a5SLionel Sambuc } xcb_xf86dri_get_device_info_cookie_t; 330*971bb1a5SLionel Sambuc 331*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_get_device_info. */ 332*971bb1a5SLionel Sambuc #define XCB_XF86DRI_GET_DEVICE_INFO 10 333*971bb1a5SLionel Sambuc 334*971bb1a5SLionel Sambuc /** 335*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_device_info_request_t 336*971bb1a5SLionel Sambuc **/ 337*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_device_info_request_t { 338*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 339*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 340*971bb1a5SLionel Sambuc uint16_t length; /**< */ 341*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 342*971bb1a5SLionel Sambuc } xcb_xf86dri_get_device_info_request_t; 343*971bb1a5SLionel Sambuc 344*971bb1a5SLionel Sambuc /** 345*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_get_device_info_reply_t 346*971bb1a5SLionel Sambuc **/ 347*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_get_device_info_reply_t { 348*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 349*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 350*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 351*971bb1a5SLionel Sambuc uint32_t length; /**< */ 352*971bb1a5SLionel Sambuc uint32_t framebuffer_handle_low; /**< */ 353*971bb1a5SLionel Sambuc uint32_t framebuffer_handle_high; /**< */ 354*971bb1a5SLionel Sambuc uint32_t framebuffer_origin_offset; /**< */ 355*971bb1a5SLionel Sambuc uint32_t framebuffer_size; /**< */ 356*971bb1a5SLionel Sambuc uint32_t framebuffer_stride; /**< */ 357*971bb1a5SLionel Sambuc uint32_t device_private_size; /**< */ 358*971bb1a5SLionel Sambuc } xcb_xf86dri_get_device_info_reply_t; 359*971bb1a5SLionel Sambuc 360*971bb1a5SLionel Sambuc /** 361*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_auth_connection_cookie_t 362*971bb1a5SLionel Sambuc **/ 363*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_auth_connection_cookie_t { 364*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 365*971bb1a5SLionel Sambuc } xcb_xf86dri_auth_connection_cookie_t; 366*971bb1a5SLionel Sambuc 367*971bb1a5SLionel Sambuc /** Opcode for xcb_xf86dri_auth_connection. */ 368*971bb1a5SLionel Sambuc #define XCB_XF86DRI_AUTH_CONNECTION 11 369*971bb1a5SLionel Sambuc 370*971bb1a5SLionel Sambuc /** 371*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_auth_connection_request_t 372*971bb1a5SLionel Sambuc **/ 373*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_auth_connection_request_t { 374*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 375*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 376*971bb1a5SLionel Sambuc uint16_t length; /**< */ 377*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 378*971bb1a5SLionel Sambuc uint32_t magic; /**< */ 379*971bb1a5SLionel Sambuc } xcb_xf86dri_auth_connection_request_t; 380*971bb1a5SLionel Sambuc 381*971bb1a5SLionel Sambuc /** 382*971bb1a5SLionel Sambuc * @brief xcb_xf86dri_auth_connection_reply_t 383*971bb1a5SLionel Sambuc **/ 384*971bb1a5SLionel Sambuc typedef struct xcb_xf86dri_auth_connection_reply_t { 385*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 386*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 387*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 388*971bb1a5SLionel Sambuc uint32_t length; /**< */ 389*971bb1a5SLionel Sambuc uint32_t authenticated; /**< */ 390*971bb1a5SLionel Sambuc } xcb_xf86dri_auth_connection_reply_t; 391*971bb1a5SLionel Sambuc 392*971bb1a5SLionel Sambuc /** 393*971bb1a5SLionel Sambuc * Get the next element of the iterator 394*971bb1a5SLionel Sambuc * @param i Pointer to a xcb_xf86dri_drm_clip_rect_iterator_t 395*971bb1a5SLionel Sambuc * 396*971bb1a5SLionel Sambuc * Get the next element in the iterator. The member rem is 397*971bb1a5SLionel Sambuc * decreased by one. The member data points to the next 398*971bb1a5SLionel Sambuc * element. The member index is increased by sizeof(xcb_xf86dri_drm_clip_rect_t) 399*971bb1a5SLionel Sambuc */ 400*971bb1a5SLionel Sambuc void 401*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_next (xcb_xf86dri_drm_clip_rect_iterator_t *i /**< */); 402*971bb1a5SLionel Sambuc 403*971bb1a5SLionel Sambuc /** 404*971bb1a5SLionel Sambuc * Return the iterator pointing to the last element 405*971bb1a5SLionel Sambuc * @param i An xcb_xf86dri_drm_clip_rect_iterator_t 406*971bb1a5SLionel Sambuc * @return The iterator pointing to the last element 407*971bb1a5SLionel Sambuc * 408*971bb1a5SLionel Sambuc * Set the current element in the iterator to the last element. 409*971bb1a5SLionel Sambuc * The member rem is set to 0. The member data points to the 410*971bb1a5SLionel Sambuc * last element. 411*971bb1a5SLionel Sambuc */ 412*971bb1a5SLionel Sambuc xcb_generic_iterator_t 413*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_end (xcb_xf86dri_drm_clip_rect_iterator_t i /**< */); 414*971bb1a5SLionel Sambuc 415*971bb1a5SLionel Sambuc /** 416*971bb1a5SLionel Sambuc * 417*971bb1a5SLionel Sambuc * @param c The connection 418*971bb1a5SLionel Sambuc * @return A cookie 419*971bb1a5SLionel Sambuc * 420*971bb1a5SLionel Sambuc * Delivers a request to the X server. 421*971bb1a5SLionel Sambuc * 422*971bb1a5SLionel Sambuc */ 423*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_cookie_t 424*971bb1a5SLionel Sambuc xcb_xf86dri_query_version (xcb_connection_t *c /**< */); 425*971bb1a5SLionel Sambuc 426*971bb1a5SLionel Sambuc /** 427*971bb1a5SLionel Sambuc * 428*971bb1a5SLionel Sambuc * @param c The connection 429*971bb1a5SLionel Sambuc * @return A cookie 430*971bb1a5SLionel Sambuc * 431*971bb1a5SLionel Sambuc * Delivers a request to the X server. 432*971bb1a5SLionel Sambuc * 433*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 434*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 435*971bb1a5SLionel Sambuc * placed in the event queue. 436*971bb1a5SLionel Sambuc */ 437*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_cookie_t 438*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_unchecked (xcb_connection_t *c /**< */); 439*971bb1a5SLionel Sambuc 440*971bb1a5SLionel Sambuc /** 441*971bb1a5SLionel Sambuc * Return the reply 442*971bb1a5SLionel Sambuc * @param c The connection 443*971bb1a5SLionel Sambuc * @param cookie The cookie 444*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 445*971bb1a5SLionel Sambuc * 446*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 447*971bb1a5SLionel Sambuc * 448*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 449*971bb1a5SLionel Sambuc * xcb_xf86dri_query_version_unchecked(). is used. 450*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 451*971bb1a5SLionel Sambuc * 452*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 453*971bb1a5SLionel Sambuc */ 454*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_reply_t * 455*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_reply (xcb_connection_t *c /**< */, 456*971bb1a5SLionel Sambuc xcb_xf86dri_query_version_cookie_t cookie /**< */, 457*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 458*971bb1a5SLionel Sambuc 459*971bb1a5SLionel Sambuc /** 460*971bb1a5SLionel Sambuc * 461*971bb1a5SLionel Sambuc * @param c The connection 462*971bb1a5SLionel Sambuc * @return A cookie 463*971bb1a5SLionel Sambuc * 464*971bb1a5SLionel Sambuc * Delivers a request to the X server. 465*971bb1a5SLionel Sambuc * 466*971bb1a5SLionel Sambuc */ 467*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_cookie_t 468*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable (xcb_connection_t *c /**< */, 469*971bb1a5SLionel Sambuc uint32_t screen /**< */); 470*971bb1a5SLionel Sambuc 471*971bb1a5SLionel Sambuc /** 472*971bb1a5SLionel Sambuc * 473*971bb1a5SLionel Sambuc * @param c The connection 474*971bb1a5SLionel Sambuc * @return A cookie 475*971bb1a5SLionel Sambuc * 476*971bb1a5SLionel Sambuc * Delivers a request to the X server. 477*971bb1a5SLionel Sambuc * 478*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 479*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 480*971bb1a5SLionel Sambuc * placed in the event queue. 481*971bb1a5SLionel Sambuc */ 482*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_cookie_t 483*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_unchecked (xcb_connection_t *c /**< */, 484*971bb1a5SLionel Sambuc uint32_t screen /**< */); 485*971bb1a5SLionel Sambuc 486*971bb1a5SLionel Sambuc /** 487*971bb1a5SLionel Sambuc * Return the reply 488*971bb1a5SLionel Sambuc * @param c The connection 489*971bb1a5SLionel Sambuc * @param cookie The cookie 490*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 491*971bb1a5SLionel Sambuc * 492*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 493*971bb1a5SLionel Sambuc * 494*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 495*971bb1a5SLionel Sambuc * xcb_xf86dri_query_direct_rendering_capable_unchecked(). is used. 496*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 497*971bb1a5SLionel Sambuc * 498*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 499*971bb1a5SLionel Sambuc */ 500*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_reply_t * 501*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_reply (xcb_connection_t *c /**< */, 502*971bb1a5SLionel Sambuc xcb_xf86dri_query_direct_rendering_capable_cookie_t cookie /**< */, 503*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 504*971bb1a5SLionel Sambuc 505*971bb1a5SLionel Sambuc int 506*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_sizeof (const void *_buffer /**< */); 507*971bb1a5SLionel Sambuc 508*971bb1a5SLionel Sambuc /** 509*971bb1a5SLionel Sambuc * 510*971bb1a5SLionel Sambuc * @param c The connection 511*971bb1a5SLionel Sambuc * @return A cookie 512*971bb1a5SLionel Sambuc * 513*971bb1a5SLionel Sambuc * Delivers a request to the X server. 514*971bb1a5SLionel Sambuc * 515*971bb1a5SLionel Sambuc */ 516*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_cookie_t 517*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection (xcb_connection_t *c /**< */, 518*971bb1a5SLionel Sambuc uint32_t screen /**< */); 519*971bb1a5SLionel Sambuc 520*971bb1a5SLionel Sambuc /** 521*971bb1a5SLionel Sambuc * 522*971bb1a5SLionel Sambuc * @param c The connection 523*971bb1a5SLionel Sambuc * @return A cookie 524*971bb1a5SLionel Sambuc * 525*971bb1a5SLionel Sambuc * Delivers a request to the X server. 526*971bb1a5SLionel Sambuc * 527*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 528*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 529*971bb1a5SLionel Sambuc * placed in the event queue. 530*971bb1a5SLionel Sambuc */ 531*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_cookie_t 532*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_unchecked (xcb_connection_t *c /**< */, 533*971bb1a5SLionel Sambuc uint32_t screen /**< */); 534*971bb1a5SLionel Sambuc 535*971bb1a5SLionel Sambuc char * 536*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_bus_id (const xcb_xf86dri_open_connection_reply_t *R /**< */); 537*971bb1a5SLionel Sambuc 538*971bb1a5SLionel Sambuc int 539*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_bus_id_length (const xcb_xf86dri_open_connection_reply_t *R /**< */); 540*971bb1a5SLionel Sambuc 541*971bb1a5SLionel Sambuc xcb_generic_iterator_t 542*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_bus_id_end (const xcb_xf86dri_open_connection_reply_t *R /**< */); 543*971bb1a5SLionel Sambuc 544*971bb1a5SLionel Sambuc /** 545*971bb1a5SLionel Sambuc * Return the reply 546*971bb1a5SLionel Sambuc * @param c The connection 547*971bb1a5SLionel Sambuc * @param cookie The cookie 548*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 549*971bb1a5SLionel Sambuc * 550*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 551*971bb1a5SLionel Sambuc * 552*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 553*971bb1a5SLionel Sambuc * xcb_xf86dri_open_connection_unchecked(). is used. 554*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 555*971bb1a5SLionel Sambuc * 556*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 557*971bb1a5SLionel Sambuc */ 558*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_reply_t * 559*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_reply (xcb_connection_t *c /**< */, 560*971bb1a5SLionel Sambuc xcb_xf86dri_open_connection_cookie_t cookie /**< */, 561*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 562*971bb1a5SLionel Sambuc 563*971bb1a5SLionel Sambuc /** 564*971bb1a5SLionel Sambuc * 565*971bb1a5SLionel Sambuc * @param c The connection 566*971bb1a5SLionel Sambuc * @return A cookie 567*971bb1a5SLionel Sambuc * 568*971bb1a5SLionel Sambuc * Delivers a request to the X server. 569*971bb1a5SLionel Sambuc * 570*971bb1a5SLionel Sambuc * This form can be used only if the request will not cause 571*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 572*971bb1a5SLionel Sambuc * saved for handling by xcb_request_check(). 573*971bb1a5SLionel Sambuc */ 574*971bb1a5SLionel Sambuc xcb_void_cookie_t 575*971bb1a5SLionel Sambuc xcb_xf86dri_close_connection_checked (xcb_connection_t *c /**< */, 576*971bb1a5SLionel Sambuc uint32_t screen /**< */); 577*971bb1a5SLionel Sambuc 578*971bb1a5SLionel Sambuc /** 579*971bb1a5SLionel Sambuc * 580*971bb1a5SLionel Sambuc * @param c The connection 581*971bb1a5SLionel Sambuc * @return A cookie 582*971bb1a5SLionel Sambuc * 583*971bb1a5SLionel Sambuc * Delivers a request to the X server. 584*971bb1a5SLionel Sambuc * 585*971bb1a5SLionel Sambuc */ 586*971bb1a5SLionel Sambuc xcb_void_cookie_t 587*971bb1a5SLionel Sambuc xcb_xf86dri_close_connection (xcb_connection_t *c /**< */, 588*971bb1a5SLionel Sambuc uint32_t screen /**< */); 589*971bb1a5SLionel Sambuc 590*971bb1a5SLionel Sambuc int 591*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_sizeof (const void *_buffer /**< */); 592*971bb1a5SLionel Sambuc 593*971bb1a5SLionel Sambuc /** 594*971bb1a5SLionel Sambuc * 595*971bb1a5SLionel Sambuc * @param c The connection 596*971bb1a5SLionel Sambuc * @return A cookie 597*971bb1a5SLionel Sambuc * 598*971bb1a5SLionel Sambuc * Delivers a request to the X server. 599*971bb1a5SLionel Sambuc * 600*971bb1a5SLionel Sambuc */ 601*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_cookie_t 602*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name (xcb_connection_t *c /**< */, 603*971bb1a5SLionel Sambuc uint32_t screen /**< */); 604*971bb1a5SLionel Sambuc 605*971bb1a5SLionel Sambuc /** 606*971bb1a5SLionel Sambuc * 607*971bb1a5SLionel Sambuc * @param c The connection 608*971bb1a5SLionel Sambuc * @return A cookie 609*971bb1a5SLionel Sambuc * 610*971bb1a5SLionel Sambuc * Delivers a request to the X server. 611*971bb1a5SLionel Sambuc * 612*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 613*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 614*971bb1a5SLionel Sambuc * placed in the event queue. 615*971bb1a5SLionel Sambuc */ 616*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_cookie_t 617*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_unchecked (xcb_connection_t *c /**< */, 618*971bb1a5SLionel Sambuc uint32_t screen /**< */); 619*971bb1a5SLionel Sambuc 620*971bb1a5SLionel Sambuc char * 621*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_client_driver_name (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); 622*971bb1a5SLionel Sambuc 623*971bb1a5SLionel Sambuc int 624*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_client_driver_name_length (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); 625*971bb1a5SLionel Sambuc 626*971bb1a5SLionel Sambuc xcb_generic_iterator_t 627*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_client_driver_name_end (const xcb_xf86dri_get_client_driver_name_reply_t *R /**< */); 628*971bb1a5SLionel Sambuc 629*971bb1a5SLionel Sambuc /** 630*971bb1a5SLionel Sambuc * Return the reply 631*971bb1a5SLionel Sambuc * @param c The connection 632*971bb1a5SLionel Sambuc * @param cookie The cookie 633*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 634*971bb1a5SLionel Sambuc * 635*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 636*971bb1a5SLionel Sambuc * 637*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 638*971bb1a5SLionel Sambuc * xcb_xf86dri_get_client_driver_name_unchecked(). is used. 639*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 640*971bb1a5SLionel Sambuc * 641*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 642*971bb1a5SLionel Sambuc */ 643*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_reply_t * 644*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_reply (xcb_connection_t *c /**< */, 645*971bb1a5SLionel Sambuc xcb_xf86dri_get_client_driver_name_cookie_t cookie /**< */, 646*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 647*971bb1a5SLionel Sambuc 648*971bb1a5SLionel Sambuc /** 649*971bb1a5SLionel Sambuc * 650*971bb1a5SLionel Sambuc * @param c The connection 651*971bb1a5SLionel Sambuc * @return A cookie 652*971bb1a5SLionel Sambuc * 653*971bb1a5SLionel Sambuc * Delivers a request to the X server. 654*971bb1a5SLionel Sambuc * 655*971bb1a5SLionel Sambuc */ 656*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_cookie_t 657*971bb1a5SLionel Sambuc xcb_xf86dri_create_context (xcb_connection_t *c /**< */, 658*971bb1a5SLionel Sambuc uint32_t screen /**< */, 659*971bb1a5SLionel Sambuc uint32_t visual /**< */, 660*971bb1a5SLionel Sambuc uint32_t context /**< */); 661*971bb1a5SLionel Sambuc 662*971bb1a5SLionel Sambuc /** 663*971bb1a5SLionel Sambuc * 664*971bb1a5SLionel Sambuc * @param c The connection 665*971bb1a5SLionel Sambuc * @return A cookie 666*971bb1a5SLionel Sambuc * 667*971bb1a5SLionel Sambuc * Delivers a request to the X server. 668*971bb1a5SLionel Sambuc * 669*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 670*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 671*971bb1a5SLionel Sambuc * placed in the event queue. 672*971bb1a5SLionel Sambuc */ 673*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_cookie_t 674*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_unchecked (xcb_connection_t *c /**< */, 675*971bb1a5SLionel Sambuc uint32_t screen /**< */, 676*971bb1a5SLionel Sambuc uint32_t visual /**< */, 677*971bb1a5SLionel Sambuc uint32_t context /**< */); 678*971bb1a5SLionel Sambuc 679*971bb1a5SLionel Sambuc /** 680*971bb1a5SLionel Sambuc * Return the reply 681*971bb1a5SLionel Sambuc * @param c The connection 682*971bb1a5SLionel Sambuc * @param cookie The cookie 683*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 684*971bb1a5SLionel Sambuc * 685*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 686*971bb1a5SLionel Sambuc * 687*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 688*971bb1a5SLionel Sambuc * xcb_xf86dri_create_context_unchecked(). is used. 689*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 690*971bb1a5SLionel Sambuc * 691*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 692*971bb1a5SLionel Sambuc */ 693*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_reply_t * 694*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_reply (xcb_connection_t *c /**< */, 695*971bb1a5SLionel Sambuc xcb_xf86dri_create_context_cookie_t cookie /**< */, 696*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 697*971bb1a5SLionel Sambuc 698*971bb1a5SLionel Sambuc /** 699*971bb1a5SLionel Sambuc * 700*971bb1a5SLionel Sambuc * @param c The connection 701*971bb1a5SLionel Sambuc * @return A cookie 702*971bb1a5SLionel Sambuc * 703*971bb1a5SLionel Sambuc * Delivers a request to the X server. 704*971bb1a5SLionel Sambuc * 705*971bb1a5SLionel Sambuc * This form can be used only if the request will not cause 706*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 707*971bb1a5SLionel Sambuc * saved for handling by xcb_request_check(). 708*971bb1a5SLionel Sambuc */ 709*971bb1a5SLionel Sambuc xcb_void_cookie_t 710*971bb1a5SLionel Sambuc xcb_xf86dri_destroy_context_checked (xcb_connection_t *c /**< */, 711*971bb1a5SLionel Sambuc uint32_t screen /**< */, 712*971bb1a5SLionel Sambuc uint32_t context /**< */); 713*971bb1a5SLionel Sambuc 714*971bb1a5SLionel Sambuc /** 715*971bb1a5SLionel Sambuc * 716*971bb1a5SLionel Sambuc * @param c The connection 717*971bb1a5SLionel Sambuc * @return A cookie 718*971bb1a5SLionel Sambuc * 719*971bb1a5SLionel Sambuc * Delivers a request to the X server. 720*971bb1a5SLionel Sambuc * 721*971bb1a5SLionel Sambuc */ 722*971bb1a5SLionel Sambuc xcb_void_cookie_t 723*971bb1a5SLionel Sambuc xcb_xf86dri_destroy_context (xcb_connection_t *c /**< */, 724*971bb1a5SLionel Sambuc uint32_t screen /**< */, 725*971bb1a5SLionel Sambuc uint32_t context /**< */); 726*971bb1a5SLionel Sambuc 727*971bb1a5SLionel Sambuc /** 728*971bb1a5SLionel Sambuc * 729*971bb1a5SLionel Sambuc * @param c The connection 730*971bb1a5SLionel Sambuc * @return A cookie 731*971bb1a5SLionel Sambuc * 732*971bb1a5SLionel Sambuc * Delivers a request to the X server. 733*971bb1a5SLionel Sambuc * 734*971bb1a5SLionel Sambuc */ 735*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_cookie_t 736*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable (xcb_connection_t *c /**< */, 737*971bb1a5SLionel Sambuc uint32_t screen /**< */, 738*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 739*971bb1a5SLionel Sambuc 740*971bb1a5SLionel Sambuc /** 741*971bb1a5SLionel Sambuc * 742*971bb1a5SLionel Sambuc * @param c The connection 743*971bb1a5SLionel Sambuc * @return A cookie 744*971bb1a5SLionel Sambuc * 745*971bb1a5SLionel Sambuc * Delivers a request to the X server. 746*971bb1a5SLionel Sambuc * 747*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 748*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 749*971bb1a5SLionel Sambuc * placed in the event queue. 750*971bb1a5SLionel Sambuc */ 751*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_cookie_t 752*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_unchecked (xcb_connection_t *c /**< */, 753*971bb1a5SLionel Sambuc uint32_t screen /**< */, 754*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 755*971bb1a5SLionel Sambuc 756*971bb1a5SLionel Sambuc /** 757*971bb1a5SLionel Sambuc * Return the reply 758*971bb1a5SLionel Sambuc * @param c The connection 759*971bb1a5SLionel Sambuc * @param cookie The cookie 760*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 761*971bb1a5SLionel Sambuc * 762*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 763*971bb1a5SLionel Sambuc * 764*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 765*971bb1a5SLionel Sambuc * xcb_xf86dri_create_drawable_unchecked(). is used. 766*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 767*971bb1a5SLionel Sambuc * 768*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 769*971bb1a5SLionel Sambuc */ 770*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_reply_t * 771*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_reply (xcb_connection_t *c /**< */, 772*971bb1a5SLionel Sambuc xcb_xf86dri_create_drawable_cookie_t cookie /**< */, 773*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 774*971bb1a5SLionel Sambuc 775*971bb1a5SLionel Sambuc /** 776*971bb1a5SLionel Sambuc * 777*971bb1a5SLionel Sambuc * @param c The connection 778*971bb1a5SLionel Sambuc * @return A cookie 779*971bb1a5SLionel Sambuc * 780*971bb1a5SLionel Sambuc * Delivers a request to the X server. 781*971bb1a5SLionel Sambuc * 782*971bb1a5SLionel Sambuc * This form can be used only if the request will not cause 783*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 784*971bb1a5SLionel Sambuc * saved for handling by xcb_request_check(). 785*971bb1a5SLionel Sambuc */ 786*971bb1a5SLionel Sambuc xcb_void_cookie_t 787*971bb1a5SLionel Sambuc xcb_xf86dri_destroy_drawable_checked (xcb_connection_t *c /**< */, 788*971bb1a5SLionel Sambuc uint32_t screen /**< */, 789*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 790*971bb1a5SLionel Sambuc 791*971bb1a5SLionel Sambuc /** 792*971bb1a5SLionel Sambuc * 793*971bb1a5SLionel Sambuc * @param c The connection 794*971bb1a5SLionel Sambuc * @return A cookie 795*971bb1a5SLionel Sambuc * 796*971bb1a5SLionel Sambuc * Delivers a request to the X server. 797*971bb1a5SLionel Sambuc * 798*971bb1a5SLionel Sambuc */ 799*971bb1a5SLionel Sambuc xcb_void_cookie_t 800*971bb1a5SLionel Sambuc xcb_xf86dri_destroy_drawable (xcb_connection_t *c /**< */, 801*971bb1a5SLionel Sambuc uint32_t screen /**< */, 802*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 803*971bb1a5SLionel Sambuc 804*971bb1a5SLionel Sambuc int 805*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_sizeof (const void *_buffer /**< */); 806*971bb1a5SLionel Sambuc 807*971bb1a5SLionel Sambuc /** 808*971bb1a5SLionel Sambuc * 809*971bb1a5SLionel Sambuc * @param c The connection 810*971bb1a5SLionel Sambuc * @return A cookie 811*971bb1a5SLionel Sambuc * 812*971bb1a5SLionel Sambuc * Delivers a request to the X server. 813*971bb1a5SLionel Sambuc * 814*971bb1a5SLionel Sambuc */ 815*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_cookie_t 816*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info (xcb_connection_t *c /**< */, 817*971bb1a5SLionel Sambuc uint32_t screen /**< */, 818*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 819*971bb1a5SLionel Sambuc 820*971bb1a5SLionel Sambuc /** 821*971bb1a5SLionel Sambuc * 822*971bb1a5SLionel Sambuc * @param c The connection 823*971bb1a5SLionel Sambuc * @return A cookie 824*971bb1a5SLionel Sambuc * 825*971bb1a5SLionel Sambuc * Delivers a request to the X server. 826*971bb1a5SLionel Sambuc * 827*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 828*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 829*971bb1a5SLionel Sambuc * placed in the event queue. 830*971bb1a5SLionel Sambuc */ 831*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_cookie_t 832*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_unchecked (xcb_connection_t *c /**< */, 833*971bb1a5SLionel Sambuc uint32_t screen /**< */, 834*971bb1a5SLionel Sambuc uint32_t drawable /**< */); 835*971bb1a5SLionel Sambuc 836*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_t * 837*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 838*971bb1a5SLionel Sambuc 839*971bb1a5SLionel Sambuc int 840*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 841*971bb1a5SLionel Sambuc 842*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_iterator_t 843*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 844*971bb1a5SLionel Sambuc 845*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_t * 846*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_back_clip_rects (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 847*971bb1a5SLionel Sambuc 848*971bb1a5SLionel Sambuc int 849*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_back_clip_rects_length (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 850*971bb1a5SLionel Sambuc 851*971bb1a5SLionel Sambuc xcb_xf86dri_drm_clip_rect_iterator_t 852*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_back_clip_rects_iterator (const xcb_xf86dri_get_drawable_info_reply_t *R /**< */); 853*971bb1a5SLionel Sambuc 854*971bb1a5SLionel Sambuc /** 855*971bb1a5SLionel Sambuc * Return the reply 856*971bb1a5SLionel Sambuc * @param c The connection 857*971bb1a5SLionel Sambuc * @param cookie The cookie 858*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 859*971bb1a5SLionel Sambuc * 860*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 861*971bb1a5SLionel Sambuc * 862*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 863*971bb1a5SLionel Sambuc * xcb_xf86dri_get_drawable_info_unchecked(). is used. 864*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 865*971bb1a5SLionel Sambuc * 866*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 867*971bb1a5SLionel Sambuc */ 868*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_reply_t * 869*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_reply (xcb_connection_t *c /**< */, 870*971bb1a5SLionel Sambuc xcb_xf86dri_get_drawable_info_cookie_t cookie /**< */, 871*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 872*971bb1a5SLionel Sambuc 873*971bb1a5SLionel Sambuc int 874*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_sizeof (const void *_buffer /**< */); 875*971bb1a5SLionel Sambuc 876*971bb1a5SLionel Sambuc /** 877*971bb1a5SLionel Sambuc * 878*971bb1a5SLionel Sambuc * @param c The connection 879*971bb1a5SLionel Sambuc * @return A cookie 880*971bb1a5SLionel Sambuc * 881*971bb1a5SLionel Sambuc * Delivers a request to the X server. 882*971bb1a5SLionel Sambuc * 883*971bb1a5SLionel Sambuc */ 884*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_cookie_t 885*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info (xcb_connection_t *c /**< */, 886*971bb1a5SLionel Sambuc uint32_t screen /**< */); 887*971bb1a5SLionel Sambuc 888*971bb1a5SLionel Sambuc /** 889*971bb1a5SLionel Sambuc * 890*971bb1a5SLionel Sambuc * @param c The connection 891*971bb1a5SLionel Sambuc * @return A cookie 892*971bb1a5SLionel Sambuc * 893*971bb1a5SLionel Sambuc * Delivers a request to the X server. 894*971bb1a5SLionel Sambuc * 895*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 896*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 897*971bb1a5SLionel Sambuc * placed in the event queue. 898*971bb1a5SLionel Sambuc */ 899*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_cookie_t 900*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_unchecked (xcb_connection_t *c /**< */, 901*971bb1a5SLionel Sambuc uint32_t screen /**< */); 902*971bb1a5SLionel Sambuc 903*971bb1a5SLionel Sambuc uint32_t * 904*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_device_private (const xcb_xf86dri_get_device_info_reply_t *R /**< */); 905*971bb1a5SLionel Sambuc 906*971bb1a5SLionel Sambuc int 907*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_device_private_length (const xcb_xf86dri_get_device_info_reply_t *R /**< */); 908*971bb1a5SLionel Sambuc 909*971bb1a5SLionel Sambuc xcb_generic_iterator_t 910*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_device_private_end (const xcb_xf86dri_get_device_info_reply_t *R /**< */); 911*971bb1a5SLionel Sambuc 912*971bb1a5SLionel Sambuc /** 913*971bb1a5SLionel Sambuc * Return the reply 914*971bb1a5SLionel Sambuc * @param c The connection 915*971bb1a5SLionel Sambuc * @param cookie The cookie 916*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 917*971bb1a5SLionel Sambuc * 918*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 919*971bb1a5SLionel Sambuc * 920*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 921*971bb1a5SLionel Sambuc * xcb_xf86dri_get_device_info_unchecked(). is used. 922*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 923*971bb1a5SLionel Sambuc * 924*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 925*971bb1a5SLionel Sambuc */ 926*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_reply_t * 927*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_reply (xcb_connection_t *c /**< */, 928*971bb1a5SLionel Sambuc xcb_xf86dri_get_device_info_cookie_t cookie /**< */, 929*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 930*971bb1a5SLionel Sambuc 931*971bb1a5SLionel Sambuc /** 932*971bb1a5SLionel Sambuc * 933*971bb1a5SLionel Sambuc * @param c The connection 934*971bb1a5SLionel Sambuc * @return A cookie 935*971bb1a5SLionel Sambuc * 936*971bb1a5SLionel Sambuc * Delivers a request to the X server. 937*971bb1a5SLionel Sambuc * 938*971bb1a5SLionel Sambuc */ 939*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_cookie_t 940*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection (xcb_connection_t *c /**< */, 941*971bb1a5SLionel Sambuc uint32_t screen /**< */, 942*971bb1a5SLionel Sambuc uint32_t magic /**< */); 943*971bb1a5SLionel Sambuc 944*971bb1a5SLionel Sambuc /** 945*971bb1a5SLionel Sambuc * 946*971bb1a5SLionel Sambuc * @param c The connection 947*971bb1a5SLionel Sambuc * @return A cookie 948*971bb1a5SLionel Sambuc * 949*971bb1a5SLionel Sambuc * Delivers a request to the X server. 950*971bb1a5SLionel Sambuc * 951*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 952*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 953*971bb1a5SLionel Sambuc * placed in the event queue. 954*971bb1a5SLionel Sambuc */ 955*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_cookie_t 956*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_unchecked (xcb_connection_t *c /**< */, 957*971bb1a5SLionel Sambuc uint32_t screen /**< */, 958*971bb1a5SLionel Sambuc uint32_t magic /**< */); 959*971bb1a5SLionel Sambuc 960*971bb1a5SLionel Sambuc /** 961*971bb1a5SLionel Sambuc * Return the reply 962*971bb1a5SLionel Sambuc * @param c The connection 963*971bb1a5SLionel Sambuc * @param cookie The cookie 964*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 965*971bb1a5SLionel Sambuc * 966*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 967*971bb1a5SLionel Sambuc * 968*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 969*971bb1a5SLionel Sambuc * xcb_xf86dri_auth_connection_unchecked(). is used. 970*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 971*971bb1a5SLionel Sambuc * 972*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 973*971bb1a5SLionel Sambuc */ 974*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_reply_t * 975*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_reply (xcb_connection_t *c /**< */, 976*971bb1a5SLionel Sambuc xcb_xf86dri_auth_connection_cookie_t cookie /**< */, 977*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 978*971bb1a5SLionel Sambuc 979*971bb1a5SLionel Sambuc 980*971bb1a5SLionel Sambuc #ifdef __cplusplus 981*971bb1a5SLionel Sambuc } 982*971bb1a5SLionel Sambuc #endif 983*971bb1a5SLionel Sambuc 984*971bb1a5SLionel Sambuc #endif 985*971bb1a5SLionel Sambuc 986*971bb1a5SLionel Sambuc /** 987*971bb1a5SLionel Sambuc * @} 988*971bb1a5SLionel Sambuc */ 989