Home | History | Annotate | Line # | Download | only in files
      1  1.1  mrg /*
      2  1.1  mrg  * This file generated automatically from xinerama.xml by c_client.py.
      3  1.1  mrg  * Edit at your peril.
      4  1.1  mrg  */
      5  1.1  mrg 
      6  1.1  mrg /**
      7  1.1  mrg  * @defgroup XCB_Xinerama_API XCB Xinerama API
      8  1.1  mrg  * @brief Xinerama XCB Protocol Implementation.
      9  1.1  mrg  * @{
     10  1.1  mrg  **/
     11  1.1  mrg 
     12  1.1  mrg #ifndef __XINERAMA_H
     13  1.1  mrg #define __XINERAMA_H
     14  1.1  mrg 
     15  1.1  mrg #include "xcb.h"
     16  1.1  mrg #include "xproto.h"
     17  1.1  mrg 
     18  1.1  mrg #ifdef __cplusplus
     19  1.1  mrg extern "C" {
     20  1.1  mrg #endif
     21  1.1  mrg 
     22  1.1  mrg #define XCB_XINERAMA_MAJOR_VERSION 1
     23  1.1  mrg #define XCB_XINERAMA_MINOR_VERSION 1
     24  1.3  mrg 
     25  1.1  mrg extern xcb_extension_t xcb_xinerama_id;
     26  1.1  mrg 
     27  1.1  mrg /**
     28  1.1  mrg  * @brief xcb_xinerama_screen_info_t
     29  1.1  mrg  **/
     30  1.1  mrg typedef struct xcb_xinerama_screen_info_t {
     31  1.4  mrg     int16_t  x_org;
     32  1.4  mrg     int16_t  y_org;
     33  1.4  mrg     uint16_t width;
     34  1.4  mrg     uint16_t height;
     35  1.1  mrg } xcb_xinerama_screen_info_t;
     36  1.1  mrg 
     37  1.1  mrg /**
     38  1.1  mrg  * @brief xcb_xinerama_screen_info_iterator_t
     39  1.1  mrg  **/
     40  1.1  mrg typedef struct xcb_xinerama_screen_info_iterator_t {
     41  1.4  mrg     xcb_xinerama_screen_info_t *data;
     42  1.4  mrg     int                         rem;
     43  1.4  mrg     int                         index;
     44  1.1  mrg } xcb_xinerama_screen_info_iterator_t;
     45  1.1  mrg 
     46  1.1  mrg /**
     47  1.1  mrg  * @brief xcb_xinerama_query_version_cookie_t
     48  1.1  mrg  **/
     49  1.1  mrg typedef struct xcb_xinerama_query_version_cookie_t {
     50  1.4  mrg     unsigned int sequence;
     51  1.1  mrg } xcb_xinerama_query_version_cookie_t;
     52  1.1  mrg 
     53  1.1  mrg /** Opcode for xcb_xinerama_query_version. */
     54  1.1  mrg #define XCB_XINERAMA_QUERY_VERSION 0
     55  1.1  mrg 
     56  1.1  mrg /**
     57  1.1  mrg  * @brief xcb_xinerama_query_version_request_t
     58  1.1  mrg  **/
     59  1.1  mrg typedef struct xcb_xinerama_query_version_request_t {
     60  1.4  mrg     uint8_t  major_opcode;
     61  1.4  mrg     uint8_t  minor_opcode;
     62  1.4  mrg     uint16_t length;
     63  1.4  mrg     uint8_t  major;
     64  1.4  mrg     uint8_t  minor;
     65  1.1  mrg } xcb_xinerama_query_version_request_t;
     66  1.1  mrg 
     67  1.1  mrg /**
     68  1.1  mrg  * @brief xcb_xinerama_query_version_reply_t
     69  1.1  mrg  **/
     70  1.1  mrg typedef struct xcb_xinerama_query_version_reply_t {
     71  1.4  mrg     uint8_t  response_type;
     72  1.4  mrg     uint8_t  pad0;
     73  1.4  mrg     uint16_t sequence;
     74  1.4  mrg     uint32_t length;
     75  1.4  mrg     uint16_t major;
     76  1.4  mrg     uint16_t minor;
     77  1.1  mrg } xcb_xinerama_query_version_reply_t;
     78  1.1  mrg 
     79  1.1  mrg /**
     80  1.1  mrg  * @brief xcb_xinerama_get_state_cookie_t
     81  1.1  mrg  **/
     82  1.1  mrg typedef struct xcb_xinerama_get_state_cookie_t {
     83  1.4  mrg     unsigned int sequence;
     84  1.1  mrg } xcb_xinerama_get_state_cookie_t;
     85  1.1  mrg 
     86  1.1  mrg /** Opcode for xcb_xinerama_get_state. */
     87  1.1  mrg #define XCB_XINERAMA_GET_STATE 1
     88  1.1  mrg 
     89  1.1  mrg /**
     90  1.1  mrg  * @brief xcb_xinerama_get_state_request_t
     91  1.1  mrg  **/
     92  1.1  mrg typedef struct xcb_xinerama_get_state_request_t {
     93  1.4  mrg     uint8_t      major_opcode;
     94  1.4  mrg     uint8_t      minor_opcode;
     95  1.4  mrg     uint16_t     length;
     96  1.4  mrg     xcb_window_t window;
     97  1.1  mrg } xcb_xinerama_get_state_request_t;
     98  1.1  mrg 
     99  1.1  mrg /**
    100  1.1  mrg  * @brief xcb_xinerama_get_state_reply_t
    101  1.1  mrg  **/
    102  1.1  mrg typedef struct xcb_xinerama_get_state_reply_t {
    103  1.4  mrg     uint8_t      response_type;
    104  1.4  mrg     uint8_t      state;
    105  1.4  mrg     uint16_t     sequence;
    106  1.4  mrg     uint32_t     length;
    107  1.4  mrg     xcb_window_t window;
    108  1.1  mrg } xcb_xinerama_get_state_reply_t;
    109  1.1  mrg 
    110  1.1  mrg /**
    111  1.1  mrg  * @brief xcb_xinerama_get_screen_count_cookie_t
    112  1.1  mrg  **/
    113  1.1  mrg typedef struct xcb_xinerama_get_screen_count_cookie_t {
    114  1.4  mrg     unsigned int sequence;
    115  1.1  mrg } xcb_xinerama_get_screen_count_cookie_t;
    116  1.1  mrg 
    117  1.1  mrg /** Opcode for xcb_xinerama_get_screen_count. */
    118  1.1  mrg #define XCB_XINERAMA_GET_SCREEN_COUNT 2
    119  1.1  mrg 
    120  1.1  mrg /**
    121  1.1  mrg  * @brief xcb_xinerama_get_screen_count_request_t
    122  1.1  mrg  **/
    123  1.1  mrg typedef struct xcb_xinerama_get_screen_count_request_t {
    124  1.4  mrg     uint8_t      major_opcode;
    125  1.4  mrg     uint8_t      minor_opcode;
    126  1.4  mrg     uint16_t     length;
    127  1.4  mrg     xcb_window_t window;
    128  1.1  mrg } xcb_xinerama_get_screen_count_request_t;
    129  1.1  mrg 
    130  1.1  mrg /**
    131  1.1  mrg  * @brief xcb_xinerama_get_screen_count_reply_t
    132  1.1  mrg  **/
    133  1.1  mrg typedef struct xcb_xinerama_get_screen_count_reply_t {
    134  1.4  mrg     uint8_t      response_type;
    135  1.4  mrg     uint8_t      screen_count;
    136  1.4  mrg     uint16_t     sequence;
    137  1.4  mrg     uint32_t     length;
    138  1.4  mrg     xcb_window_t window;
    139  1.1  mrg } xcb_xinerama_get_screen_count_reply_t;
    140  1.1  mrg 
    141  1.1  mrg /**
    142  1.1  mrg  * @brief xcb_xinerama_get_screen_size_cookie_t
    143  1.1  mrg  **/
    144  1.1  mrg typedef struct xcb_xinerama_get_screen_size_cookie_t {
    145  1.4  mrg     unsigned int sequence;
    146  1.1  mrg } xcb_xinerama_get_screen_size_cookie_t;
    147  1.1  mrg 
    148  1.1  mrg /** Opcode for xcb_xinerama_get_screen_size. */
    149  1.1  mrg #define XCB_XINERAMA_GET_SCREEN_SIZE 3
    150  1.1  mrg 
    151  1.1  mrg /**
    152  1.1  mrg  * @brief xcb_xinerama_get_screen_size_request_t
    153  1.1  mrg  **/
    154  1.1  mrg typedef struct xcb_xinerama_get_screen_size_request_t {
    155  1.4  mrg     uint8_t      major_opcode;
    156  1.4  mrg     uint8_t      minor_opcode;
    157  1.4  mrg     uint16_t     length;
    158  1.4  mrg     xcb_window_t window;
    159  1.4  mrg     uint32_t     screen;
    160  1.1  mrg } xcb_xinerama_get_screen_size_request_t;
    161  1.1  mrg 
    162  1.1  mrg /**
    163  1.1  mrg  * @brief xcb_xinerama_get_screen_size_reply_t
    164  1.1  mrg  **/
    165  1.1  mrg typedef struct xcb_xinerama_get_screen_size_reply_t {
    166  1.4  mrg     uint8_t      response_type;
    167  1.4  mrg     uint8_t      pad0;
    168  1.4  mrg     uint16_t     sequence;
    169  1.4  mrg     uint32_t     length;
    170  1.4  mrg     uint32_t     width;
    171  1.4  mrg     uint32_t     height;
    172  1.4  mrg     xcb_window_t window;
    173  1.4  mrg     uint32_t     screen;
    174  1.1  mrg } xcb_xinerama_get_screen_size_reply_t;
    175  1.1  mrg 
    176  1.1  mrg /**
    177  1.1  mrg  * @brief xcb_xinerama_is_active_cookie_t
    178  1.1  mrg  **/
    179  1.1  mrg typedef struct xcb_xinerama_is_active_cookie_t {
    180  1.4  mrg     unsigned int sequence;
    181  1.1  mrg } xcb_xinerama_is_active_cookie_t;
    182  1.1  mrg 
    183  1.1  mrg /** Opcode for xcb_xinerama_is_active. */
    184  1.1  mrg #define XCB_XINERAMA_IS_ACTIVE 4
    185  1.1  mrg 
    186  1.1  mrg /**
    187  1.1  mrg  * @brief xcb_xinerama_is_active_request_t
    188  1.1  mrg  **/
    189  1.1  mrg typedef struct xcb_xinerama_is_active_request_t {
    190  1.4  mrg     uint8_t  major_opcode;
    191  1.4  mrg     uint8_t  minor_opcode;
    192  1.4  mrg     uint16_t length;
    193  1.1  mrg } xcb_xinerama_is_active_request_t;
    194  1.1  mrg 
    195  1.1  mrg /**
    196  1.1  mrg  * @brief xcb_xinerama_is_active_reply_t
    197  1.1  mrg  **/
    198  1.1  mrg typedef struct xcb_xinerama_is_active_reply_t {
    199  1.4  mrg     uint8_t  response_type;
    200  1.4  mrg     uint8_t  pad0;
    201  1.4  mrg     uint16_t sequence;
    202  1.4  mrg     uint32_t length;
    203  1.4  mrg     uint32_t state;
    204  1.1  mrg } xcb_xinerama_is_active_reply_t;
    205  1.1  mrg 
    206  1.1  mrg /**
    207  1.1  mrg  * @brief xcb_xinerama_query_screens_cookie_t
    208  1.1  mrg  **/
    209  1.1  mrg typedef struct xcb_xinerama_query_screens_cookie_t {
    210  1.4  mrg     unsigned int sequence;
    211  1.1  mrg } xcb_xinerama_query_screens_cookie_t;
    212  1.1  mrg 
    213  1.1  mrg /** Opcode for xcb_xinerama_query_screens. */
    214  1.1  mrg #define XCB_XINERAMA_QUERY_SCREENS 5
    215  1.1  mrg 
    216  1.1  mrg /**
    217  1.1  mrg  * @brief xcb_xinerama_query_screens_request_t
    218  1.1  mrg  **/
    219  1.1  mrg typedef struct xcb_xinerama_query_screens_request_t {
    220  1.4  mrg     uint8_t  major_opcode;
    221  1.4  mrg     uint8_t  minor_opcode;
    222  1.4  mrg     uint16_t length;
    223  1.1  mrg } xcb_xinerama_query_screens_request_t;
    224  1.1  mrg 
    225  1.1  mrg /**
    226  1.1  mrg  * @brief xcb_xinerama_query_screens_reply_t
    227  1.1  mrg  **/
    228  1.1  mrg typedef struct xcb_xinerama_query_screens_reply_t {
    229  1.4  mrg     uint8_t  response_type;
    230  1.4  mrg     uint8_t  pad0;
    231  1.4  mrg     uint16_t sequence;
    232  1.4  mrg     uint32_t length;
    233  1.4  mrg     uint32_t number;
    234  1.4  mrg     uint8_t  pad1[20];
    235  1.1  mrg } xcb_xinerama_query_screens_reply_t;
    236  1.1  mrg 
    237  1.1  mrg /**
    238  1.1  mrg  * Get the next element of the iterator
    239  1.1  mrg  * @param i Pointer to a xcb_xinerama_screen_info_iterator_t
    240  1.1  mrg  *
    241  1.1  mrg  * Get the next element in the iterator. The member rem is
    242  1.1  mrg  * decreased by one. The member data points to the next
    243  1.1  mrg  * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t)
    244  1.1  mrg  */
    245  1.1  mrg void
    246  1.4  mrg xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i);
    247  1.1  mrg 
    248  1.1  mrg /**
    249  1.1  mrg  * Return the iterator pointing to the last element
    250  1.1  mrg  * @param i An xcb_xinerama_screen_info_iterator_t
    251  1.1  mrg  * @return  The iterator pointing to the last element
    252  1.1  mrg  *
    253  1.1  mrg  * Set the current element in the iterator to the last element.
    254  1.1  mrg  * The member rem is set to 0. The member data points to the
    255  1.1  mrg  * last element.
    256  1.1  mrg  */
    257  1.1  mrg xcb_generic_iterator_t
    258  1.4  mrg xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i);
    259  1.1  mrg 
    260  1.1  mrg /**
    261  1.2  mrg  *
    262  1.1  mrg  * @param c The connection
    263  1.1  mrg  * @return A cookie
    264  1.1  mrg  *
    265  1.1  mrg  * Delivers a request to the X server.
    266  1.3  mrg  *
    267  1.1  mrg  */
    268  1.1  mrg xcb_xinerama_query_version_cookie_t
    269  1.4  mrg xcb_xinerama_query_version (xcb_connection_t *c,
    270  1.4  mrg                             uint8_t           major,
    271  1.4  mrg                             uint8_t           minor);
    272  1.1  mrg 
    273  1.1  mrg /**
    274  1.2  mrg  *
    275  1.1  mrg  * @param c The connection
    276  1.1  mrg  * @return A cookie
    277  1.1  mrg  *
    278  1.1  mrg  * Delivers a request to the X server.
    279  1.3  mrg  *
    280  1.1  mrg  * This form can be used only if the request will cause
    281  1.1  mrg  * a reply to be generated. Any returned error will be
    282  1.1  mrg  * placed in the event queue.
    283  1.1  mrg  */
    284  1.1  mrg xcb_xinerama_query_version_cookie_t
    285  1.4  mrg xcb_xinerama_query_version_unchecked (xcb_connection_t *c,
    286  1.4  mrg                                       uint8_t           major,
    287  1.4  mrg                                       uint8_t           minor);
    288  1.1  mrg 
    289  1.1  mrg /**
    290  1.1  mrg  * Return the reply
    291  1.1  mrg  * @param c      The connection
    292  1.1  mrg  * @param cookie The cookie
    293  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    294  1.1  mrg  *
    295  1.1  mrg  * Returns the reply of the request asked by
    296  1.3  mrg  *
    297  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    298  1.1  mrg  * xcb_xinerama_query_version_unchecked(). is used.
    299  1.1  mrg  * Otherwise, it stores the error if any.
    300  1.1  mrg  *
    301  1.1  mrg  * The returned value must be freed by the caller using free().
    302  1.1  mrg  */
    303  1.1  mrg xcb_xinerama_query_version_reply_t *
    304  1.4  mrg xcb_xinerama_query_version_reply (xcb_connection_t                     *c,
    305  1.1  mrg                                   xcb_xinerama_query_version_cookie_t   cookie  /**< */,
    306  1.4  mrg                                   xcb_generic_error_t                 **e);
    307  1.1  mrg 
    308  1.1  mrg /**
    309  1.2  mrg  *
    310  1.1  mrg  * @param c The connection
    311  1.1  mrg  * @return A cookie
    312  1.1  mrg  *
    313  1.1  mrg  * Delivers a request to the X server.
    314  1.3  mrg  *
    315  1.1  mrg  */
    316  1.1  mrg xcb_xinerama_get_state_cookie_t
    317  1.4  mrg xcb_xinerama_get_state (xcb_connection_t *c,
    318  1.4  mrg                         xcb_window_t      window);
    319  1.1  mrg 
    320  1.1  mrg /**
    321  1.2  mrg  *
    322  1.1  mrg  * @param c The connection
    323  1.1  mrg  * @return A cookie
    324  1.1  mrg  *
    325  1.1  mrg  * Delivers a request to the X server.
    326  1.3  mrg  *
    327  1.1  mrg  * This form can be used only if the request will cause
    328  1.1  mrg  * a reply to be generated. Any returned error will be
    329  1.1  mrg  * placed in the event queue.
    330  1.1  mrg  */
    331  1.1  mrg xcb_xinerama_get_state_cookie_t
    332  1.4  mrg xcb_xinerama_get_state_unchecked (xcb_connection_t *c,
    333  1.4  mrg                                   xcb_window_t      window);
    334  1.1  mrg 
    335  1.1  mrg /**
    336  1.1  mrg  * Return the reply
    337  1.1  mrg  * @param c      The connection
    338  1.1  mrg  * @param cookie The cookie
    339  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    340  1.1  mrg  *
    341  1.1  mrg  * Returns the reply of the request asked by
    342  1.3  mrg  *
    343  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    344  1.1  mrg  * xcb_xinerama_get_state_unchecked(). is used.
    345  1.1  mrg  * Otherwise, it stores the error if any.
    346  1.1  mrg  *
    347  1.1  mrg  * The returned value must be freed by the caller using free().
    348  1.1  mrg  */
    349  1.1  mrg xcb_xinerama_get_state_reply_t *
    350  1.4  mrg xcb_xinerama_get_state_reply (xcb_connection_t                 *c,
    351  1.1  mrg                               xcb_xinerama_get_state_cookie_t   cookie  /**< */,
    352  1.4  mrg                               xcb_generic_error_t             **e);
    353  1.1  mrg 
    354  1.1  mrg /**
    355  1.2  mrg  *
    356  1.1  mrg  * @param c The connection
    357  1.1  mrg  * @return A cookie
    358  1.1  mrg  *
    359  1.1  mrg  * Delivers a request to the X server.
    360  1.3  mrg  *
    361  1.1  mrg  */
    362  1.1  mrg xcb_xinerama_get_screen_count_cookie_t
    363  1.4  mrg xcb_xinerama_get_screen_count (xcb_connection_t *c,
    364  1.4  mrg                                xcb_window_t      window);
    365  1.1  mrg 
    366  1.1  mrg /**
    367  1.2  mrg  *
    368  1.1  mrg  * @param c The connection
    369  1.1  mrg  * @return A cookie
    370  1.1  mrg  *
    371  1.1  mrg  * Delivers a request to the X server.
    372  1.3  mrg  *
    373  1.1  mrg  * This form can be used only if the request will cause
    374  1.1  mrg  * a reply to be generated. Any returned error will be
    375  1.1  mrg  * placed in the event queue.
    376  1.1  mrg  */
    377  1.1  mrg xcb_xinerama_get_screen_count_cookie_t
    378  1.4  mrg xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c,
    379  1.4  mrg                                          xcb_window_t      window);
    380  1.1  mrg 
    381  1.1  mrg /**
    382  1.1  mrg  * Return the reply
    383  1.1  mrg  * @param c      The connection
    384  1.1  mrg  * @param cookie The cookie
    385  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    386  1.1  mrg  *
    387  1.1  mrg  * Returns the reply of the request asked by
    388  1.3  mrg  *
    389  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    390  1.1  mrg  * xcb_xinerama_get_screen_count_unchecked(). is used.
    391  1.1  mrg  * Otherwise, it stores the error if any.
    392  1.1  mrg  *
    393  1.1  mrg  * The returned value must be freed by the caller using free().
    394  1.1  mrg  */
    395  1.1  mrg xcb_xinerama_get_screen_count_reply_t *
    396  1.4  mrg xcb_xinerama_get_screen_count_reply (xcb_connection_t                        *c,
    397  1.1  mrg                                      xcb_xinerama_get_screen_count_cookie_t   cookie  /**< */,
    398  1.4  mrg                                      xcb_generic_error_t                    **e);
    399  1.1  mrg 
    400  1.1  mrg /**
    401  1.2  mrg  *
    402  1.1  mrg  * @param c The connection
    403  1.1  mrg  * @return A cookie
    404  1.1  mrg  *
    405  1.1  mrg  * Delivers a request to the X server.
    406  1.3  mrg  *
    407  1.1  mrg  */
    408  1.1  mrg xcb_xinerama_get_screen_size_cookie_t
    409  1.4  mrg xcb_xinerama_get_screen_size (xcb_connection_t *c,
    410  1.4  mrg                               xcb_window_t      window,
    411  1.4  mrg                               uint32_t          screen);
    412  1.1  mrg 
    413  1.1  mrg /**
    414  1.2  mrg  *
    415  1.1  mrg  * @param c The connection
    416  1.1  mrg  * @return A cookie
    417  1.1  mrg  *
    418  1.1  mrg  * Delivers a request to the X server.
    419  1.3  mrg  *
    420  1.1  mrg  * This form can be used only if the request will cause
    421  1.1  mrg  * a reply to be generated. Any returned error will be
    422  1.1  mrg  * placed in the event queue.
    423  1.1  mrg  */
    424  1.1  mrg xcb_xinerama_get_screen_size_cookie_t
    425  1.4  mrg xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c,
    426  1.4  mrg                                         xcb_window_t      window,
    427  1.4  mrg                                         uint32_t          screen);
    428  1.1  mrg 
    429  1.1  mrg /**
    430  1.1  mrg  * Return the reply
    431  1.1  mrg  * @param c      The connection
    432  1.1  mrg  * @param cookie The cookie
    433  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    434  1.1  mrg  *
    435  1.1  mrg  * Returns the reply of the request asked by
    436  1.3  mrg  *
    437  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    438  1.1  mrg  * xcb_xinerama_get_screen_size_unchecked(). is used.
    439  1.1  mrg  * Otherwise, it stores the error if any.
    440  1.1  mrg  *
    441  1.1  mrg  * The returned value must be freed by the caller using free().
    442  1.1  mrg  */
    443  1.1  mrg xcb_xinerama_get_screen_size_reply_t *
    444  1.4  mrg xcb_xinerama_get_screen_size_reply (xcb_connection_t                       *c,
    445  1.1  mrg                                     xcb_xinerama_get_screen_size_cookie_t   cookie  /**< */,
    446  1.4  mrg                                     xcb_generic_error_t                   **e);
    447  1.1  mrg 
    448  1.1  mrg /**
    449  1.2  mrg  *
    450  1.1  mrg  * @param c The connection
    451  1.1  mrg  * @return A cookie
    452  1.1  mrg  *
    453  1.1  mrg  * Delivers a request to the X server.
    454  1.3  mrg  *
    455  1.1  mrg  */
    456  1.1  mrg xcb_xinerama_is_active_cookie_t
    457  1.4  mrg xcb_xinerama_is_active (xcb_connection_t *c);
    458  1.1  mrg 
    459  1.1  mrg /**
    460  1.2  mrg  *
    461  1.1  mrg  * @param c The connection
    462  1.1  mrg  * @return A cookie
    463  1.1  mrg  *
    464  1.1  mrg  * Delivers a request to the X server.
    465  1.3  mrg  *
    466  1.1  mrg  * This form can be used only if the request will cause
    467  1.1  mrg  * a reply to be generated. Any returned error will be
    468  1.1  mrg  * placed in the event queue.
    469  1.1  mrg  */
    470  1.1  mrg xcb_xinerama_is_active_cookie_t
    471  1.4  mrg xcb_xinerama_is_active_unchecked (xcb_connection_t *c);
    472  1.1  mrg 
    473  1.1  mrg /**
    474  1.1  mrg  * Return the reply
    475  1.1  mrg  * @param c      The connection
    476  1.1  mrg  * @param cookie The cookie
    477  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    478  1.1  mrg  *
    479  1.1  mrg  * Returns the reply of the request asked by
    480  1.3  mrg  *
    481  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    482  1.1  mrg  * xcb_xinerama_is_active_unchecked(). is used.
    483  1.1  mrg  * Otherwise, it stores the error if any.
    484  1.1  mrg  *
    485  1.1  mrg  * The returned value must be freed by the caller using free().
    486  1.1  mrg  */
    487  1.1  mrg xcb_xinerama_is_active_reply_t *
    488  1.4  mrg xcb_xinerama_is_active_reply (xcb_connection_t                 *c,
    489  1.1  mrg                               xcb_xinerama_is_active_cookie_t   cookie  /**< */,
    490  1.4  mrg                               xcb_generic_error_t             **e);
    491  1.1  mrg 
    492  1.2  mrg int
    493  1.4  mrg xcb_xinerama_query_screens_sizeof (const void  *_buffer);
    494  1.2  mrg 
    495  1.1  mrg /**
    496  1.2  mrg  *
    497  1.1  mrg  * @param c The connection
    498  1.1  mrg  * @return A cookie
    499  1.1  mrg  *
    500  1.1  mrg  * Delivers a request to the X server.
    501  1.3  mrg  *
    502  1.1  mrg  */
    503  1.1  mrg xcb_xinerama_query_screens_cookie_t
    504  1.4  mrg xcb_xinerama_query_screens (xcb_connection_t *c);
    505  1.1  mrg 
    506  1.1  mrg /**
    507  1.2  mrg  *
    508  1.1  mrg  * @param c The connection
    509  1.1  mrg  * @return A cookie
    510  1.1  mrg  *
    511  1.1  mrg  * Delivers a request to the X server.
    512  1.3  mrg  *
    513  1.1  mrg  * This form can be used only if the request will cause
    514  1.1  mrg  * a reply to be generated. Any returned error will be
    515  1.1  mrg  * placed in the event queue.
    516  1.1  mrg  */
    517  1.1  mrg xcb_xinerama_query_screens_cookie_t
    518  1.4  mrg xcb_xinerama_query_screens_unchecked (xcb_connection_t *c);
    519  1.1  mrg 
    520  1.1  mrg xcb_xinerama_screen_info_t *
    521  1.4  mrg xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R);
    522  1.1  mrg 
    523  1.1  mrg int
    524  1.4  mrg xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R);
    525  1.1  mrg 
    526  1.1  mrg xcb_xinerama_screen_info_iterator_t
    527  1.4  mrg xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R);
    528  1.1  mrg 
    529  1.1  mrg /**
    530  1.1  mrg  * Return the reply
    531  1.1  mrg  * @param c      The connection
    532  1.1  mrg  * @param cookie The cookie
    533  1.1  mrg  * @param e      The xcb_generic_error_t supplied
    534  1.1  mrg  *
    535  1.1  mrg  * Returns the reply of the request asked by
    536  1.3  mrg  *
    537  1.1  mrg  * The parameter @p e supplied to this function must be NULL if
    538  1.1  mrg  * xcb_xinerama_query_screens_unchecked(). is used.
    539  1.1  mrg  * Otherwise, it stores the error if any.
    540  1.1  mrg  *
    541  1.1  mrg  * The returned value must be freed by the caller using free().
    542  1.1  mrg  */
    543  1.1  mrg xcb_xinerama_query_screens_reply_t *
    544  1.4  mrg xcb_xinerama_query_screens_reply (xcb_connection_t                     *c,
    545  1.1  mrg                                   xcb_xinerama_query_screens_cookie_t   cookie  /**< */,
    546  1.4  mrg                                   xcb_generic_error_t                 **e);
    547  1.1  mrg 
    548  1.1  mrg 
    549  1.1  mrg #ifdef __cplusplus
    550  1.1  mrg }
    551  1.1  mrg #endif
    552  1.1  mrg 
    553  1.1  mrg #endif
    554  1.1  mrg 
    555  1.1  mrg /**
    556  1.1  mrg  * @}
    557  1.1  mrg  */
    558