Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:14:48

0001 /*
0002  * This file generated automatically from xtest.xml by c_client.py.
0003  * Edit at your peril.
0004  */
0005 
0006 /**
0007  * @defgroup XCB_Test_API XCB Test API
0008  * @brief Test XCB Protocol Implementation.
0009  * @{
0010  **/
0011 
0012 #ifndef __XTEST_H
0013 #define __XTEST_H
0014 
0015 #include "xcb.h"
0016 #include "xproto.h"
0017 
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021 
0022 #define XCB_TEST_MAJOR_VERSION 2
0023 #define XCB_TEST_MINOR_VERSION 2
0024 
0025 extern xcb_extension_t xcb_test_id;
0026 
0027 /**
0028  * @brief xcb_test_get_version_cookie_t
0029  **/
0030 typedef struct xcb_test_get_version_cookie_t {
0031     unsigned int sequence;
0032 } xcb_test_get_version_cookie_t;
0033 
0034 /** Opcode for xcb_test_get_version. */
0035 #define XCB_TEST_GET_VERSION 0
0036 
0037 /**
0038  * @brief xcb_test_get_version_request_t
0039  **/
0040 typedef struct xcb_test_get_version_request_t {
0041     uint8_t  major_opcode;
0042     uint8_t  minor_opcode;
0043     uint16_t length;
0044     uint8_t  major_version;
0045     uint8_t  pad0;
0046     uint16_t minor_version;
0047 } xcb_test_get_version_request_t;
0048 
0049 /**
0050  * @brief xcb_test_get_version_reply_t
0051  **/
0052 typedef struct xcb_test_get_version_reply_t {
0053     uint8_t  response_type;
0054     uint8_t  major_version;
0055     uint16_t sequence;
0056     uint32_t length;
0057     uint16_t minor_version;
0058 } xcb_test_get_version_reply_t;
0059 
0060 typedef enum xcb_test_cursor_t {
0061     XCB_TEST_CURSOR_NONE = 0,
0062     XCB_TEST_CURSOR_CURRENT = 1
0063 } xcb_test_cursor_t;
0064 
0065 /**
0066  * @brief xcb_test_compare_cursor_cookie_t
0067  **/
0068 typedef struct xcb_test_compare_cursor_cookie_t {
0069     unsigned int sequence;
0070 } xcb_test_compare_cursor_cookie_t;
0071 
0072 /** Opcode for xcb_test_compare_cursor. */
0073 #define XCB_TEST_COMPARE_CURSOR 1
0074 
0075 /**
0076  * @brief xcb_test_compare_cursor_request_t
0077  **/
0078 typedef struct xcb_test_compare_cursor_request_t {
0079     uint8_t      major_opcode;
0080     uint8_t      minor_opcode;
0081     uint16_t     length;
0082     xcb_window_t window;
0083     xcb_cursor_t cursor;
0084 } xcb_test_compare_cursor_request_t;
0085 
0086 /**
0087  * @brief xcb_test_compare_cursor_reply_t
0088  **/
0089 typedef struct xcb_test_compare_cursor_reply_t {
0090     uint8_t  response_type;
0091     uint8_t  same;
0092     uint16_t sequence;
0093     uint32_t length;
0094 } xcb_test_compare_cursor_reply_t;
0095 
0096 /** Opcode for xcb_test_fake_input. */
0097 #define XCB_TEST_FAKE_INPUT 2
0098 
0099 /**
0100  * @brief xcb_test_fake_input_request_t
0101  **/
0102 typedef struct xcb_test_fake_input_request_t {
0103     uint8_t      major_opcode;
0104     uint8_t      minor_opcode;
0105     uint16_t     length;
0106     uint8_t      type;
0107     uint8_t      detail;
0108     uint8_t      pad0[2];
0109     uint32_t     time;
0110     xcb_window_t root;
0111     uint8_t      pad1[8];
0112     int16_t      rootX;
0113     int16_t      rootY;
0114     uint8_t      pad2[7];
0115     uint8_t      deviceid;
0116 } xcb_test_fake_input_request_t;
0117 
0118 /** Opcode for xcb_test_grab_control. */
0119 #define XCB_TEST_GRAB_CONTROL 3
0120 
0121 /**
0122  * @brief xcb_test_grab_control_request_t
0123  **/
0124 typedef struct xcb_test_grab_control_request_t {
0125     uint8_t  major_opcode;
0126     uint8_t  minor_opcode;
0127     uint16_t length;
0128     uint8_t  impervious;
0129     uint8_t  pad0[3];
0130 } xcb_test_grab_control_request_t;
0131 
0132 /**
0133  *
0134  * @param c The connection
0135  * @return A cookie
0136  *
0137  * Delivers a request to the X server.
0138  *
0139  */
0140 xcb_test_get_version_cookie_t
0141 xcb_test_get_version (xcb_connection_t *c,
0142                       uint8_t           major_version,
0143                       uint16_t          minor_version);
0144 
0145 /**
0146  *
0147  * @param c The connection
0148  * @return A cookie
0149  *
0150  * Delivers a request to the X server.
0151  *
0152  * This form can be used only if the request will cause
0153  * a reply to be generated. Any returned error will be
0154  * placed in the event queue.
0155  */
0156 xcb_test_get_version_cookie_t
0157 xcb_test_get_version_unchecked (xcb_connection_t *c,
0158                                 uint8_t           major_version,
0159                                 uint16_t          minor_version);
0160 
0161 /**
0162  * Return the reply
0163  * @param c      The connection
0164  * @param cookie The cookie
0165  * @param e      The xcb_generic_error_t supplied
0166  *
0167  * Returns the reply of the request asked by
0168  *
0169  * The parameter @p e supplied to this function must be NULL if
0170  * xcb_test_get_version_unchecked(). is used.
0171  * Otherwise, it stores the error if any.
0172  *
0173  * The returned value must be freed by the caller using free().
0174  */
0175 xcb_test_get_version_reply_t *
0176 xcb_test_get_version_reply (xcb_connection_t               *c,
0177                             xcb_test_get_version_cookie_t   cookie  /**< */,
0178                             xcb_generic_error_t           **e);
0179 
0180 /**
0181  *
0182  * @param c The connection
0183  * @return A cookie
0184  *
0185  * Delivers a request to the X server.
0186  *
0187  */
0188 xcb_test_compare_cursor_cookie_t
0189 xcb_test_compare_cursor (xcb_connection_t *c,
0190                          xcb_window_t      window,
0191                          xcb_cursor_t      cursor);
0192 
0193 /**
0194  *
0195  * @param c The connection
0196  * @return A cookie
0197  *
0198  * Delivers a request to the X server.
0199  *
0200  * This form can be used only if the request will cause
0201  * a reply to be generated. Any returned error will be
0202  * placed in the event queue.
0203  */
0204 xcb_test_compare_cursor_cookie_t
0205 xcb_test_compare_cursor_unchecked (xcb_connection_t *c,
0206                                    xcb_window_t      window,
0207                                    xcb_cursor_t      cursor);
0208 
0209 /**
0210  * Return the reply
0211  * @param c      The connection
0212  * @param cookie The cookie
0213  * @param e      The xcb_generic_error_t supplied
0214  *
0215  * Returns the reply of the request asked by
0216  *
0217  * The parameter @p e supplied to this function must be NULL if
0218  * xcb_test_compare_cursor_unchecked(). is used.
0219  * Otherwise, it stores the error if any.
0220  *
0221  * The returned value must be freed by the caller using free().
0222  */
0223 xcb_test_compare_cursor_reply_t *
0224 xcb_test_compare_cursor_reply (xcb_connection_t                  *c,
0225                                xcb_test_compare_cursor_cookie_t   cookie  /**< */,
0226                                xcb_generic_error_t              **e);
0227 
0228 /**
0229  *
0230  * @param c The connection
0231  * @return A cookie
0232  *
0233  * Delivers a request to the X server.
0234  *
0235  * This form can be used only if the request will not cause
0236  * a reply to be generated. Any returned error will be
0237  * saved for handling by xcb_request_check().
0238  */
0239 xcb_void_cookie_t
0240 xcb_test_fake_input_checked (xcb_connection_t *c,
0241                              uint8_t           type,
0242                              uint8_t           detail,
0243                              uint32_t          time,
0244                              xcb_window_t      root,
0245                              int16_t           rootX,
0246                              int16_t           rootY,
0247                              uint8_t           deviceid);
0248 
0249 /**
0250  *
0251  * @param c The connection
0252  * @return A cookie
0253  *
0254  * Delivers a request to the X server.
0255  *
0256  */
0257 xcb_void_cookie_t
0258 xcb_test_fake_input (xcb_connection_t *c,
0259                      uint8_t           type,
0260                      uint8_t           detail,
0261                      uint32_t          time,
0262                      xcb_window_t      root,
0263                      int16_t           rootX,
0264                      int16_t           rootY,
0265                      uint8_t           deviceid);
0266 
0267 /**
0268  *
0269  * @param c The connection
0270  * @return A cookie
0271  *
0272  * Delivers a request to the X server.
0273  *
0274  * This form can be used only if the request will not cause
0275  * a reply to be generated. Any returned error will be
0276  * saved for handling by xcb_request_check().
0277  */
0278 xcb_void_cookie_t
0279 xcb_test_grab_control_checked (xcb_connection_t *c,
0280                                uint8_t           impervious);
0281 
0282 /**
0283  *
0284  * @param c The connection
0285  * @return A cookie
0286  *
0287  * Delivers a request to the X server.
0288  *
0289  */
0290 xcb_void_cookie_t
0291 xcb_test_grab_control (xcb_connection_t *c,
0292                        uint8_t           impervious);
0293 
0294 
0295 #ifdef __cplusplus
0296 }
0297 #endif
0298 
0299 #endif
0300 
0301 /**
0302  * @}
0303  */