1971bb1a5SLionel Sambuc /* 2971bb1a5SLionel Sambuc * This file generated automatically from xtest.xml by c_client.py. 3971bb1a5SLionel Sambuc * Edit at your peril. 4971bb1a5SLionel Sambuc */ 5971bb1a5SLionel Sambuc 6971bb1a5SLionel Sambuc /** 7971bb1a5SLionel Sambuc * @defgroup XCB_Test_API XCB Test API 8971bb1a5SLionel Sambuc * @brief Test XCB Protocol Implementation. 9971bb1a5SLionel Sambuc * @{ 10971bb1a5SLionel Sambuc **/ 11971bb1a5SLionel Sambuc 12971bb1a5SLionel Sambuc #ifndef __XTEST_H 13971bb1a5SLionel Sambuc #define __XTEST_H 14971bb1a5SLionel Sambuc 15971bb1a5SLionel Sambuc #include "xcb.h" 16971bb1a5SLionel Sambuc #include "xproto.h" 17971bb1a5SLionel Sambuc 18971bb1a5SLionel Sambuc #ifdef __cplusplus 19971bb1a5SLionel Sambuc extern "C" { 20971bb1a5SLionel Sambuc #endif 21971bb1a5SLionel Sambuc 22971bb1a5SLionel Sambuc #define XCB_TEST_MAJOR_VERSION 2 23*0a6a1f1dSLionel Sambuc #define XCB_TEST_MINOR_VERSION 2 24971bb1a5SLionel Sambuc 25971bb1a5SLionel Sambuc extern xcb_extension_t xcb_test_id; 26971bb1a5SLionel Sambuc 27971bb1a5SLionel Sambuc /** 28971bb1a5SLionel Sambuc * @brief xcb_test_get_version_cookie_t 29971bb1a5SLionel Sambuc **/ 30971bb1a5SLionel Sambuc typedef struct xcb_test_get_version_cookie_t { 31971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 32971bb1a5SLionel Sambuc } xcb_test_get_version_cookie_t; 33971bb1a5SLionel Sambuc 34971bb1a5SLionel Sambuc /** Opcode for xcb_test_get_version. */ 35971bb1a5SLionel Sambuc #define XCB_TEST_GET_VERSION 0 36971bb1a5SLionel Sambuc 37971bb1a5SLionel Sambuc /** 38971bb1a5SLionel Sambuc * @brief xcb_test_get_version_request_t 39971bb1a5SLionel Sambuc **/ 40971bb1a5SLionel Sambuc typedef struct xcb_test_get_version_request_t { 41971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 42971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 43971bb1a5SLionel Sambuc uint16_t length; /**< */ 44971bb1a5SLionel Sambuc uint8_t major_version; /**< */ 45971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 46971bb1a5SLionel Sambuc uint16_t minor_version; /**< */ 47971bb1a5SLionel Sambuc } xcb_test_get_version_request_t; 48971bb1a5SLionel Sambuc 49971bb1a5SLionel Sambuc /** 50971bb1a5SLionel Sambuc * @brief xcb_test_get_version_reply_t 51971bb1a5SLionel Sambuc **/ 52971bb1a5SLionel Sambuc typedef struct xcb_test_get_version_reply_t { 53971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 54971bb1a5SLionel Sambuc uint8_t major_version; /**< */ 55971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 56971bb1a5SLionel Sambuc uint32_t length; /**< */ 57971bb1a5SLionel Sambuc uint16_t minor_version; /**< */ 58971bb1a5SLionel Sambuc } xcb_test_get_version_reply_t; 59971bb1a5SLionel Sambuc 60971bb1a5SLionel Sambuc typedef enum xcb_test_cursor_t { 61971bb1a5SLionel Sambuc XCB_TEST_CURSOR_NONE = 0, 62971bb1a5SLionel Sambuc XCB_TEST_CURSOR_CURRENT = 1 63971bb1a5SLionel Sambuc } xcb_test_cursor_t; 64971bb1a5SLionel Sambuc 65971bb1a5SLionel Sambuc /** 66971bb1a5SLionel Sambuc * @brief xcb_test_compare_cursor_cookie_t 67971bb1a5SLionel Sambuc **/ 68971bb1a5SLionel Sambuc typedef struct xcb_test_compare_cursor_cookie_t { 69971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 70971bb1a5SLionel Sambuc } xcb_test_compare_cursor_cookie_t; 71971bb1a5SLionel Sambuc 72971bb1a5SLionel Sambuc /** Opcode for xcb_test_compare_cursor. */ 73971bb1a5SLionel Sambuc #define XCB_TEST_COMPARE_CURSOR 1 74971bb1a5SLionel Sambuc 75971bb1a5SLionel Sambuc /** 76971bb1a5SLionel Sambuc * @brief xcb_test_compare_cursor_request_t 77971bb1a5SLionel Sambuc **/ 78971bb1a5SLionel Sambuc typedef struct xcb_test_compare_cursor_request_t { 79971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 80971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 81971bb1a5SLionel Sambuc uint16_t length; /**< */ 82971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 83971bb1a5SLionel Sambuc xcb_cursor_t cursor; /**< */ 84971bb1a5SLionel Sambuc } xcb_test_compare_cursor_request_t; 85971bb1a5SLionel Sambuc 86971bb1a5SLionel Sambuc /** 87971bb1a5SLionel Sambuc * @brief xcb_test_compare_cursor_reply_t 88971bb1a5SLionel Sambuc **/ 89971bb1a5SLionel Sambuc typedef struct xcb_test_compare_cursor_reply_t { 90971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 91971bb1a5SLionel Sambuc uint8_t same; /**< */ 92971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 93971bb1a5SLionel Sambuc uint32_t length; /**< */ 94971bb1a5SLionel Sambuc } xcb_test_compare_cursor_reply_t; 95971bb1a5SLionel Sambuc 96971bb1a5SLionel Sambuc /** Opcode for xcb_test_fake_input. */ 97971bb1a5SLionel Sambuc #define XCB_TEST_FAKE_INPUT 2 98971bb1a5SLionel Sambuc 99971bb1a5SLionel Sambuc /** 100971bb1a5SLionel Sambuc * @brief xcb_test_fake_input_request_t 101971bb1a5SLionel Sambuc **/ 102971bb1a5SLionel Sambuc typedef struct xcb_test_fake_input_request_t { 103971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 104971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 105971bb1a5SLionel Sambuc uint16_t length; /**< */ 106971bb1a5SLionel Sambuc uint8_t type; /**< */ 107971bb1a5SLionel Sambuc uint8_t detail; /**< */ 108971bb1a5SLionel Sambuc uint8_t pad0[2]; /**< */ 109971bb1a5SLionel Sambuc uint32_t time; /**< */ 110971bb1a5SLionel Sambuc xcb_window_t root; /**< */ 111971bb1a5SLionel Sambuc uint8_t pad1[8]; /**< */ 112971bb1a5SLionel Sambuc int16_t rootX; /**< */ 113971bb1a5SLionel Sambuc int16_t rootY; /**< */ 114971bb1a5SLionel Sambuc uint8_t pad2[7]; /**< */ 115971bb1a5SLionel Sambuc uint8_t deviceid; /**< */ 116971bb1a5SLionel Sambuc } xcb_test_fake_input_request_t; 117971bb1a5SLionel Sambuc 118971bb1a5SLionel Sambuc /** Opcode for xcb_test_grab_control. */ 119971bb1a5SLionel Sambuc #define XCB_TEST_GRAB_CONTROL 3 120971bb1a5SLionel Sambuc 121971bb1a5SLionel Sambuc /** 122971bb1a5SLionel Sambuc * @brief xcb_test_grab_control_request_t 123971bb1a5SLionel Sambuc **/ 124971bb1a5SLionel Sambuc typedef struct xcb_test_grab_control_request_t { 125971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 126971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 127971bb1a5SLionel Sambuc uint16_t length; /**< */ 128971bb1a5SLionel Sambuc uint8_t impervious; /**< */ 129971bb1a5SLionel Sambuc uint8_t pad0[3]; /**< */ 130971bb1a5SLionel Sambuc } xcb_test_grab_control_request_t; 131971bb1a5SLionel Sambuc 132971bb1a5SLionel Sambuc /** 133971bb1a5SLionel Sambuc * 134971bb1a5SLionel Sambuc * @param c The connection 135971bb1a5SLionel Sambuc * @return A cookie 136971bb1a5SLionel Sambuc * 137971bb1a5SLionel Sambuc * Delivers a request to the X server. 138971bb1a5SLionel Sambuc * 139971bb1a5SLionel Sambuc */ 140971bb1a5SLionel Sambuc xcb_test_get_version_cookie_t 141971bb1a5SLionel Sambuc xcb_test_get_version (xcb_connection_t *c /**< */, 142971bb1a5SLionel Sambuc uint8_t major_version /**< */, 143971bb1a5SLionel Sambuc uint16_t minor_version /**< */); 144971bb1a5SLionel Sambuc 145971bb1a5SLionel Sambuc /** 146971bb1a5SLionel Sambuc * 147971bb1a5SLionel Sambuc * @param c The connection 148971bb1a5SLionel Sambuc * @return A cookie 149971bb1a5SLionel Sambuc * 150971bb1a5SLionel Sambuc * Delivers a request to the X server. 151971bb1a5SLionel Sambuc * 152971bb1a5SLionel Sambuc * This form can be used only if the request will cause 153971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 154971bb1a5SLionel Sambuc * placed in the event queue. 155971bb1a5SLionel Sambuc */ 156971bb1a5SLionel Sambuc xcb_test_get_version_cookie_t 157971bb1a5SLionel Sambuc xcb_test_get_version_unchecked (xcb_connection_t *c /**< */, 158971bb1a5SLionel Sambuc uint8_t major_version /**< */, 159971bb1a5SLionel Sambuc uint16_t minor_version /**< */); 160971bb1a5SLionel Sambuc 161971bb1a5SLionel Sambuc /** 162971bb1a5SLionel Sambuc * Return the reply 163971bb1a5SLionel Sambuc * @param c The connection 164971bb1a5SLionel Sambuc * @param cookie The cookie 165971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 166971bb1a5SLionel Sambuc * 167971bb1a5SLionel Sambuc * Returns the reply of the request asked by 168971bb1a5SLionel Sambuc * 169971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 170971bb1a5SLionel Sambuc * xcb_test_get_version_unchecked(). is used. 171971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 172971bb1a5SLionel Sambuc * 173971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 174971bb1a5SLionel Sambuc */ 175971bb1a5SLionel Sambuc xcb_test_get_version_reply_t * 176971bb1a5SLionel Sambuc xcb_test_get_version_reply (xcb_connection_t *c /**< */, 177971bb1a5SLionel Sambuc xcb_test_get_version_cookie_t cookie /**< */, 178971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 179971bb1a5SLionel Sambuc 180971bb1a5SLionel Sambuc /** 181971bb1a5SLionel Sambuc * 182971bb1a5SLionel Sambuc * @param c The connection 183971bb1a5SLionel Sambuc * @return A cookie 184971bb1a5SLionel Sambuc * 185971bb1a5SLionel Sambuc * Delivers a request to the X server. 186971bb1a5SLionel Sambuc * 187971bb1a5SLionel Sambuc */ 188971bb1a5SLionel Sambuc xcb_test_compare_cursor_cookie_t 189971bb1a5SLionel Sambuc xcb_test_compare_cursor (xcb_connection_t *c /**< */, 190971bb1a5SLionel Sambuc xcb_window_t window /**< */, 191971bb1a5SLionel Sambuc xcb_cursor_t cursor /**< */); 192971bb1a5SLionel Sambuc 193971bb1a5SLionel Sambuc /** 194971bb1a5SLionel Sambuc * 195971bb1a5SLionel Sambuc * @param c The connection 196971bb1a5SLionel Sambuc * @return A cookie 197971bb1a5SLionel Sambuc * 198971bb1a5SLionel Sambuc * Delivers a request to the X server. 199971bb1a5SLionel Sambuc * 200971bb1a5SLionel Sambuc * This form can be used only if the request will cause 201971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 202971bb1a5SLionel Sambuc * placed in the event queue. 203971bb1a5SLionel Sambuc */ 204971bb1a5SLionel Sambuc xcb_test_compare_cursor_cookie_t 205971bb1a5SLionel Sambuc xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */, 206971bb1a5SLionel Sambuc xcb_window_t window /**< */, 207971bb1a5SLionel Sambuc xcb_cursor_t cursor /**< */); 208971bb1a5SLionel Sambuc 209971bb1a5SLionel Sambuc /** 210971bb1a5SLionel Sambuc * Return the reply 211971bb1a5SLionel Sambuc * @param c The connection 212971bb1a5SLionel Sambuc * @param cookie The cookie 213971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 214971bb1a5SLionel Sambuc * 215971bb1a5SLionel Sambuc * Returns the reply of the request asked by 216971bb1a5SLionel Sambuc * 217971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 218971bb1a5SLionel Sambuc * xcb_test_compare_cursor_unchecked(). is used. 219971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 220971bb1a5SLionel Sambuc * 221971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 222971bb1a5SLionel Sambuc */ 223971bb1a5SLionel Sambuc xcb_test_compare_cursor_reply_t * 224971bb1a5SLionel Sambuc xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */, 225971bb1a5SLionel Sambuc xcb_test_compare_cursor_cookie_t cookie /**< */, 226971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 227971bb1a5SLionel Sambuc 228971bb1a5SLionel Sambuc /** 229971bb1a5SLionel Sambuc * 230971bb1a5SLionel Sambuc * @param c The connection 231971bb1a5SLionel Sambuc * @return A cookie 232971bb1a5SLionel Sambuc * 233971bb1a5SLionel Sambuc * Delivers a request to the X server. 234971bb1a5SLionel Sambuc * 235971bb1a5SLionel Sambuc * This form can be used only if the request will not cause 236971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 237971bb1a5SLionel Sambuc * saved for handling by xcb_request_check(). 238971bb1a5SLionel Sambuc */ 239971bb1a5SLionel Sambuc xcb_void_cookie_t 240971bb1a5SLionel Sambuc xcb_test_fake_input_checked (xcb_connection_t *c /**< */, 241971bb1a5SLionel Sambuc uint8_t type /**< */, 242971bb1a5SLionel Sambuc uint8_t detail /**< */, 243971bb1a5SLionel Sambuc uint32_t time /**< */, 244971bb1a5SLionel Sambuc xcb_window_t root /**< */, 245971bb1a5SLionel Sambuc int16_t rootX /**< */, 246971bb1a5SLionel Sambuc int16_t rootY /**< */, 247971bb1a5SLionel Sambuc uint8_t deviceid /**< */); 248971bb1a5SLionel Sambuc 249971bb1a5SLionel Sambuc /** 250971bb1a5SLionel Sambuc * 251971bb1a5SLionel Sambuc * @param c The connection 252971bb1a5SLionel Sambuc * @return A cookie 253971bb1a5SLionel Sambuc * 254971bb1a5SLionel Sambuc * Delivers a request to the X server. 255971bb1a5SLionel Sambuc * 256971bb1a5SLionel Sambuc */ 257971bb1a5SLionel Sambuc xcb_void_cookie_t 258971bb1a5SLionel Sambuc xcb_test_fake_input (xcb_connection_t *c /**< */, 259971bb1a5SLionel Sambuc uint8_t type /**< */, 260971bb1a5SLionel Sambuc uint8_t detail /**< */, 261971bb1a5SLionel Sambuc uint32_t time /**< */, 262971bb1a5SLionel Sambuc xcb_window_t root /**< */, 263971bb1a5SLionel Sambuc int16_t rootX /**< */, 264971bb1a5SLionel Sambuc int16_t rootY /**< */, 265971bb1a5SLionel Sambuc uint8_t deviceid /**< */); 266971bb1a5SLionel Sambuc 267971bb1a5SLionel Sambuc /** 268971bb1a5SLionel Sambuc * 269971bb1a5SLionel Sambuc * @param c The connection 270971bb1a5SLionel Sambuc * @return A cookie 271971bb1a5SLionel Sambuc * 272971bb1a5SLionel Sambuc * Delivers a request to the X server. 273971bb1a5SLionel Sambuc * 274971bb1a5SLionel Sambuc * This form can be used only if the request will not cause 275971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 276971bb1a5SLionel Sambuc * saved for handling by xcb_request_check(). 277971bb1a5SLionel Sambuc */ 278971bb1a5SLionel Sambuc xcb_void_cookie_t 279971bb1a5SLionel Sambuc xcb_test_grab_control_checked (xcb_connection_t *c /**< */, 280971bb1a5SLionel Sambuc uint8_t impervious /**< */); 281971bb1a5SLionel Sambuc 282971bb1a5SLionel Sambuc /** 283971bb1a5SLionel Sambuc * 284971bb1a5SLionel Sambuc * @param c The connection 285971bb1a5SLionel Sambuc * @return A cookie 286971bb1a5SLionel Sambuc * 287971bb1a5SLionel Sambuc * Delivers a request to the X server. 288971bb1a5SLionel Sambuc * 289971bb1a5SLionel Sambuc */ 290971bb1a5SLionel Sambuc xcb_void_cookie_t 291971bb1a5SLionel Sambuc xcb_test_grab_control (xcb_connection_t *c /**< */, 292971bb1a5SLionel Sambuc uint8_t impervious /**< */); 293971bb1a5SLionel Sambuc 294971bb1a5SLionel Sambuc 295971bb1a5SLionel Sambuc #ifdef __cplusplus 296971bb1a5SLionel Sambuc } 297971bb1a5SLionel Sambuc #endif 298971bb1a5SLionel Sambuc 299971bb1a5SLionel Sambuc #endif 300971bb1a5SLionel Sambuc 301971bb1a5SLionel Sambuc /** 302971bb1a5SLionel Sambuc * @} 303971bb1a5SLionel Sambuc */ 304