XCB 1.10

dri3.h

00001 /*
00002  * This file generated automatically from dri3.xml by c_client.py.
00003  * Edit at your peril.
00004  */
00005 
00012 #ifndef __DRI3_H
00013 #define __DRI3_H
00014 
00015 #include "xcb.h"
00016 #include "xproto.h"
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 #define XCB_DRI3_MAJOR_VERSION 1
00023 #define XCB_DRI3_MINOR_VERSION 0
00024   
00025 extern xcb_extension_t xcb_dri3_id;
00026 
00030 typedef struct xcb_dri3_query_version_cookie_t {
00031     unsigned int sequence; 
00032 } xcb_dri3_query_version_cookie_t;
00033 
00035 #define XCB_DRI3_QUERY_VERSION 0
00036 
00040 typedef struct xcb_dri3_query_version_request_t {
00041     uint8_t  major_opcode; 
00042     uint8_t  minor_opcode; 
00043     uint16_t length; 
00044     uint32_t major_version; 
00045     uint32_t minor_version; 
00046 } xcb_dri3_query_version_request_t;
00047 
00051 typedef struct xcb_dri3_query_version_reply_t {
00052     uint8_t  response_type; 
00053     uint8_t  pad0; 
00054     uint16_t sequence; 
00055     uint32_t length; 
00056     uint32_t major_version; 
00057     uint32_t minor_version; 
00058 } xcb_dri3_query_version_reply_t;
00059 
00063 typedef struct xcb_dri3_open_cookie_t {
00064     unsigned int sequence; 
00065 } xcb_dri3_open_cookie_t;
00066 
00068 #define XCB_DRI3_OPEN 1
00069 
00073 typedef struct xcb_dri3_open_request_t {
00074     uint8_t        major_opcode; 
00075     uint8_t        minor_opcode; 
00076     uint16_t       length; 
00077     xcb_drawable_t drawable; 
00078     uint32_t       provider; 
00079 } xcb_dri3_open_request_t;
00080 
00084 typedef struct xcb_dri3_open_reply_t {
00085     uint8_t  response_type; 
00086     uint8_t  nfd; 
00087     uint16_t sequence; 
00088     uint32_t length; 
00089     uint8_t  pad0[24]; 
00090 } xcb_dri3_open_reply_t;
00091 
00093 #define XCB_DRI3_PIXMAP_FROM_BUFFER 2
00094 
00098 typedef struct xcb_dri3_pixmap_from_buffer_request_t {
00099     uint8_t        major_opcode; 
00100     uint8_t        minor_opcode; 
00101     uint16_t       length; 
00102     xcb_pixmap_t   pixmap; 
00103     xcb_drawable_t drawable; 
00104     uint32_t       size; 
00105     uint16_t       width; 
00106     uint16_t       height; 
00107     uint16_t       stride; 
00108     uint8_t        depth; 
00109     uint8_t        bpp; 
00110 } xcb_dri3_pixmap_from_buffer_request_t;
00111 
00115 typedef struct xcb_dri3_buffer_from_pixmap_cookie_t {
00116     unsigned int sequence; 
00117 } xcb_dri3_buffer_from_pixmap_cookie_t;
00118 
00120 #define XCB_DRI3_BUFFER_FROM_PIXMAP 3
00121 
00125 typedef struct xcb_dri3_buffer_from_pixmap_request_t {
00126     uint8_t      major_opcode; 
00127     uint8_t      minor_opcode; 
00128     uint16_t     length; 
00129     xcb_pixmap_t pixmap; 
00130 } xcb_dri3_buffer_from_pixmap_request_t;
00131 
00135 typedef struct xcb_dri3_buffer_from_pixmap_reply_t {
00136     uint8_t  response_type; 
00137     uint8_t  nfd; 
00138     uint16_t sequence; 
00139     uint32_t length; 
00140     uint32_t size; 
00141     uint16_t width; 
00142     uint16_t height; 
00143     uint16_t stride; 
00144     uint8_t  depth; 
00145     uint8_t  bpp; 
00146     uint8_t  pad0[12]; 
00147 } xcb_dri3_buffer_from_pixmap_reply_t;
00148 
00150 #define XCB_DRI3_FENCE_FROM_FD 4
00151 
00155 typedef struct xcb_dri3_fence_from_fd_request_t {
00156     uint8_t        major_opcode; 
00157     uint8_t        minor_opcode; 
00158     uint16_t       length; 
00159     xcb_drawable_t drawable; 
00160     uint32_t       fence; 
00161     uint8_t        initially_triggered; 
00162     uint8_t        pad0[3]; 
00163 } xcb_dri3_fence_from_fd_request_t;
00164 
00168 typedef struct xcb_dri3_fd_from_fence_cookie_t {
00169     unsigned int sequence; 
00170 } xcb_dri3_fd_from_fence_cookie_t;
00171 
00173 #define XCB_DRI3_FD_FROM_FENCE 5
00174 
00178 typedef struct xcb_dri3_fd_from_fence_request_t {
00179     uint8_t        major_opcode; 
00180     uint8_t        minor_opcode; 
00181     uint16_t       length; 
00182     xcb_drawable_t drawable; 
00183     uint32_t       fence; 
00184 } xcb_dri3_fd_from_fence_request_t;
00185 
00189 typedef struct xcb_dri3_fd_from_fence_reply_t {
00190     uint8_t  response_type; 
00191     uint8_t  nfd; 
00192     uint16_t sequence; 
00193     uint32_t length; 
00194     uint8_t  pad0[24]; 
00195 } xcb_dri3_fd_from_fence_reply_t;
00196 
00206 /*****************************************************************************
00207  **
00208  ** xcb_dri3_query_version_cookie_t xcb_dri3_query_version
00209  ** 
00210  ** @param xcb_connection_t *c
00211  ** @param uint32_t          major_version
00212  ** @param uint32_t          minor_version
00213  ** @returns xcb_dri3_query_version_cookie_t
00214  **
00215  *****************************************************************************/
00216  
00217 xcb_dri3_query_version_cookie_t
00218 xcb_dri3_query_version (xcb_connection_t *c  ,
00219                         uint32_t          major_version  ,
00220                         uint32_t          minor_version  );
00221 
00234 /*****************************************************************************
00235  **
00236  ** xcb_dri3_query_version_cookie_t xcb_dri3_query_version_unchecked
00237  ** 
00238  ** @param xcb_connection_t *c
00239  ** @param uint32_t          major_version
00240  ** @param uint32_t          minor_version
00241  ** @returns xcb_dri3_query_version_cookie_t
00242  **
00243  *****************************************************************************/
00244  
00245 xcb_dri3_query_version_cookie_t
00246 xcb_dri3_query_version_unchecked (xcb_connection_t *c  ,
00247                                   uint32_t          major_version  ,
00248                                   uint32_t          minor_version  );
00249 
00265 /*****************************************************************************
00266  **
00267  ** xcb_dri3_query_version_reply_t * xcb_dri3_query_version_reply
00268  ** 
00269  ** @param xcb_connection_t                 *c
00270  ** @param xcb_dri3_query_version_cookie_t   cookie
00271  ** @param xcb_generic_error_t             **e
00272  ** @returns xcb_dri3_query_version_reply_t *
00273  **
00274  *****************************************************************************/
00275  
00276 xcb_dri3_query_version_reply_t *
00277 xcb_dri3_query_version_reply (xcb_connection_t                 *c  ,
00278                               xcb_dri3_query_version_cookie_t   cookie  ,
00279                               xcb_generic_error_t             **e  );
00280 
00290 /*****************************************************************************
00291  **
00292  ** xcb_dri3_open_cookie_t xcb_dri3_open
00293  ** 
00294  ** @param xcb_connection_t *c
00295  ** @param xcb_drawable_t    drawable
00296  ** @param uint32_t          provider
00297  ** @returns xcb_dri3_open_cookie_t
00298  **
00299  *****************************************************************************/
00300  
00301 xcb_dri3_open_cookie_t
00302 xcb_dri3_open (xcb_connection_t *c  ,
00303                xcb_drawable_t    drawable  ,
00304                uint32_t          provider  );
00305 
00318 /*****************************************************************************
00319  **
00320  ** xcb_dri3_open_cookie_t xcb_dri3_open_unchecked
00321  ** 
00322  ** @param xcb_connection_t *c
00323  ** @param xcb_drawable_t    drawable
00324  ** @param uint32_t          provider
00325  ** @returns xcb_dri3_open_cookie_t
00326  **
00327  *****************************************************************************/
00328  
00329 xcb_dri3_open_cookie_t
00330 xcb_dri3_open_unchecked (xcb_connection_t *c  ,
00331                          xcb_drawable_t    drawable  ,
00332                          uint32_t          provider  );
00333 
00349 /*****************************************************************************
00350  **
00351  ** xcb_dri3_open_reply_t * xcb_dri3_open_reply
00352  ** 
00353  ** @param xcb_connection_t        *c
00354  ** @param xcb_dri3_open_cookie_t   cookie
00355  ** @param xcb_generic_error_t    **e
00356  ** @returns xcb_dri3_open_reply_t *
00357  **
00358  *****************************************************************************/
00359  
00360 xcb_dri3_open_reply_t *
00361 xcb_dri3_open_reply (xcb_connection_t        *c  ,
00362                      xcb_dri3_open_cookie_t   cookie  ,
00363                      xcb_generic_error_t    **e  );
00364 
00375 /*****************************************************************************
00376  **
00377  ** int * xcb_dri3_open_reply_fds
00378  ** 
00379  ** @param xcb_connection_t       *c
00380  ** @param xcb_dri3_open_reply_t  *reply
00381  ** @returns int *
00382  **
00383  *****************************************************************************/
00384  
00385 int *
00386 xcb_dri3_open_reply_fds (xcb_connection_t       *c  ,
00387                          xcb_dri3_open_reply_t  *reply  );
00388 
00401 /*****************************************************************************
00402  **
00403  ** xcb_void_cookie_t xcb_dri3_pixmap_from_buffer_checked
00404  ** 
00405  ** @param xcb_connection_t *c
00406  ** @param xcb_pixmap_t      pixmap
00407  ** @param xcb_drawable_t    drawable
00408  ** @param uint32_t          size
00409  ** @param uint16_t          width
00410  ** @param uint16_t          height
00411  ** @param uint16_t          stride
00412  ** @param uint8_t           depth
00413  ** @param uint8_t           bpp
00414  ** @param int32_t           pixmap_fd
00415  ** @returns xcb_void_cookie_t
00416  **
00417  *****************************************************************************/
00418  
00419 xcb_void_cookie_t
00420 xcb_dri3_pixmap_from_buffer_checked (xcb_connection_t *c  ,
00421                                      xcb_pixmap_t      pixmap  ,
00422                                      xcb_drawable_t    drawable  ,
00423                                      uint32_t          size  ,
00424                                      uint16_t          width  ,
00425                                      uint16_t          height  ,
00426                                      uint16_t          stride  ,
00427                                      uint8_t           depth  ,
00428                                      uint8_t           bpp  ,
00429                                      int32_t           pixmap_fd  );
00430 
00440 /*****************************************************************************
00441  **
00442  ** xcb_void_cookie_t xcb_dri3_pixmap_from_buffer
00443  ** 
00444  ** @param xcb_connection_t *c
00445  ** @param xcb_pixmap_t      pixmap
00446  ** @param xcb_drawable_t    drawable
00447  ** @param uint32_t          size
00448  ** @param uint16_t          width
00449  ** @param uint16_t          height
00450  ** @param uint16_t          stride
00451  ** @param uint8_t           depth
00452  ** @param uint8_t           bpp
00453  ** @param int32_t           pixmap_fd
00454  ** @returns xcb_void_cookie_t
00455  **
00456  *****************************************************************************/
00457  
00458 xcb_void_cookie_t
00459 xcb_dri3_pixmap_from_buffer (xcb_connection_t *c  ,
00460                              xcb_pixmap_t      pixmap  ,
00461                              xcb_drawable_t    drawable  ,
00462                              uint32_t          size  ,
00463                              uint16_t          width  ,
00464                              uint16_t          height  ,
00465                              uint16_t          stride  ,
00466                              uint8_t           depth  ,
00467                              uint8_t           bpp  ,
00468                              int32_t           pixmap_fd  );
00469 
00479 /*****************************************************************************
00480  **
00481  ** xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap
00482  ** 
00483  ** @param xcb_connection_t *c
00484  ** @param xcb_pixmap_t      pixmap
00485  ** @returns xcb_dri3_buffer_from_pixmap_cookie_t
00486  **
00487  *****************************************************************************/
00488  
00489 xcb_dri3_buffer_from_pixmap_cookie_t
00490 xcb_dri3_buffer_from_pixmap (xcb_connection_t *c  ,
00491                              xcb_pixmap_t      pixmap  );
00492 
00505 /*****************************************************************************
00506  **
00507  ** xcb_dri3_buffer_from_pixmap_cookie_t xcb_dri3_buffer_from_pixmap_unchecked
00508  ** 
00509  ** @param xcb_connection_t *c
00510  ** @param xcb_pixmap_t      pixmap
00511  ** @returns xcb_dri3_buffer_from_pixmap_cookie_t
00512  **
00513  *****************************************************************************/
00514  
00515 xcb_dri3_buffer_from_pixmap_cookie_t
00516 xcb_dri3_buffer_from_pixmap_unchecked (xcb_connection_t *c  ,
00517                                        xcb_pixmap_t      pixmap  );
00518 
00534 /*****************************************************************************
00535  **
00536  ** xcb_dri3_buffer_from_pixmap_reply_t * xcb_dri3_buffer_from_pixmap_reply
00537  ** 
00538  ** @param xcb_connection_t                      *c
00539  ** @param xcb_dri3_buffer_from_pixmap_cookie_t   cookie
00540  ** @param xcb_generic_error_t                  **e
00541  ** @returns xcb_dri3_buffer_from_pixmap_reply_t *
00542  **
00543  *****************************************************************************/
00544  
00545 xcb_dri3_buffer_from_pixmap_reply_t *
00546 xcb_dri3_buffer_from_pixmap_reply (xcb_connection_t                      *c  ,
00547                                    xcb_dri3_buffer_from_pixmap_cookie_t   cookie  ,
00548                                    xcb_generic_error_t                  **e  );
00549 
00560 /*****************************************************************************
00561  **
00562  ** int * xcb_dri3_buffer_from_pixmap_reply_fds
00563  ** 
00564  ** @param xcb_connection_t                     *c
00565  ** @param xcb_dri3_buffer_from_pixmap_reply_t  *reply
00566  ** @returns int *
00567  **
00568  *****************************************************************************/
00569  
00570 int *
00571 xcb_dri3_buffer_from_pixmap_reply_fds (xcb_connection_t                     *c  ,
00572                                        xcb_dri3_buffer_from_pixmap_reply_t  *reply  );
00573 
00586 /*****************************************************************************
00587  **
00588  ** xcb_void_cookie_t xcb_dri3_fence_from_fd_checked
00589  ** 
00590  ** @param xcb_connection_t *c
00591  ** @param xcb_drawable_t    drawable
00592  ** @param uint32_t          fence
00593  ** @param uint8_t           initially_triggered
00594  ** @param int32_t           fence_fd
00595  ** @returns xcb_void_cookie_t
00596  **
00597  *****************************************************************************/
00598  
00599 xcb_void_cookie_t
00600 xcb_dri3_fence_from_fd_checked (xcb_connection_t *c  ,
00601                                 xcb_drawable_t    drawable  ,
00602                                 uint32_t          fence  ,
00603                                 uint8_t           initially_triggered  ,
00604                                 int32_t           fence_fd  );
00605 
00615 /*****************************************************************************
00616  **
00617  ** xcb_void_cookie_t xcb_dri3_fence_from_fd
00618  ** 
00619  ** @param xcb_connection_t *c
00620  ** @param xcb_drawable_t    drawable
00621  ** @param uint32_t          fence
00622  ** @param uint8_t           initially_triggered
00623  ** @param int32_t           fence_fd
00624  ** @returns xcb_void_cookie_t
00625  **
00626  *****************************************************************************/
00627  
00628 xcb_void_cookie_t
00629 xcb_dri3_fence_from_fd (xcb_connection_t *c  ,
00630                         xcb_drawable_t    drawable  ,
00631                         uint32_t          fence  ,
00632                         uint8_t           initially_triggered  ,
00633                         int32_t           fence_fd  );
00634 
00644 /*****************************************************************************
00645  **
00646  ** xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence
00647  ** 
00648  ** @param xcb_connection_t *c
00649  ** @param xcb_drawable_t    drawable
00650  ** @param uint32_t          fence
00651  ** @returns xcb_dri3_fd_from_fence_cookie_t
00652  **
00653  *****************************************************************************/
00654  
00655 xcb_dri3_fd_from_fence_cookie_t
00656 xcb_dri3_fd_from_fence (xcb_connection_t *c  ,
00657                         xcb_drawable_t    drawable  ,
00658                         uint32_t          fence  );
00659 
00672 /*****************************************************************************
00673  **
00674  ** xcb_dri3_fd_from_fence_cookie_t xcb_dri3_fd_from_fence_unchecked
00675  ** 
00676  ** @param xcb_connection_t *c
00677  ** @param xcb_drawable_t    drawable
00678  ** @param uint32_t          fence
00679  ** @returns xcb_dri3_fd_from_fence_cookie_t
00680  **
00681  *****************************************************************************/
00682  
00683 xcb_dri3_fd_from_fence_cookie_t
00684 xcb_dri3_fd_from_fence_unchecked (xcb_connection_t *c  ,
00685                                   xcb_drawable_t    drawable  ,
00686                                   uint32_t          fence  );
00687 
00703 /*****************************************************************************
00704  **
00705  ** xcb_dri3_fd_from_fence_reply_t * xcb_dri3_fd_from_fence_reply
00706  ** 
00707  ** @param xcb_connection_t                 *c
00708  ** @param xcb_dri3_fd_from_fence_cookie_t   cookie
00709  ** @param xcb_generic_error_t             **e
00710  ** @returns xcb_dri3_fd_from_fence_reply_t *
00711  **
00712  *****************************************************************************/
00713  
00714 xcb_dri3_fd_from_fence_reply_t *
00715 xcb_dri3_fd_from_fence_reply (xcb_connection_t                 *c  ,
00716                               xcb_dri3_fd_from_fence_cookie_t   cookie  ,
00717                               xcb_generic_error_t             **e  );
00718 
00729 /*****************************************************************************
00730  **
00731  ** int * xcb_dri3_fd_from_fence_reply_fds
00732  ** 
00733  ** @param xcb_connection_t                *c
00734  ** @param xcb_dri3_fd_from_fence_reply_t  *reply
00735  ** @returns int *
00736  **
00737  *****************************************************************************/
00738  
00739 int *
00740 xcb_dri3_fd_from_fence_reply_fds (xcb_connection_t                *c  ,
00741                                   xcb_dri3_fd_from_fence_reply_t  *reply  );
00742 
00743 
00744 #ifdef __cplusplus
00745 }
00746 #endif
00747 
00748 #endif
00749