2 * This file generated automatically from xtest.xml by c_client.py.
7 * @defgroup XCB_Test_API XCB Test API
8 * @brief Test XCB Protocol Implementation.
22 #define XCB_TEST_MAJOR_VERSION 2
23 #define XCB_TEST_MINOR_VERSION 2
25 extern xcb_extension_t xcb_test_id
;
28 * @brief xcb_test_get_version_cookie_t
30 typedef struct xcb_test_get_version_cookie_t
{
31 unsigned int sequence
; /**< */
32 } xcb_test_get_version_cookie_t
;
34 /** Opcode for xcb_test_get_version. */
35 #define XCB_TEST_GET_VERSION 0
38 * @brief xcb_test_get_version_request_t
40 typedef struct xcb_test_get_version_request_t
{
41 uint8_t major_opcode
; /**< */
42 uint8_t minor_opcode
; /**< */
43 uint16_t length
; /**< */
44 uint8_t major_version
; /**< */
46 uint16_t minor_version
; /**< */
47 } xcb_test_get_version_request_t
;
50 * @brief xcb_test_get_version_reply_t
52 typedef struct xcb_test_get_version_reply_t
{
53 uint8_t response_type
; /**< */
54 uint8_t major_version
; /**< */
55 uint16_t sequence
; /**< */
56 uint32_t length
; /**< */
57 uint16_t minor_version
; /**< */
58 } xcb_test_get_version_reply_t
;
60 typedef enum xcb_test_cursor_t
{
61 XCB_TEST_CURSOR_NONE
= 0,
62 XCB_TEST_CURSOR_CURRENT
= 1
66 * @brief xcb_test_compare_cursor_cookie_t
68 typedef struct xcb_test_compare_cursor_cookie_t
{
69 unsigned int sequence
; /**< */
70 } xcb_test_compare_cursor_cookie_t
;
72 /** Opcode for xcb_test_compare_cursor. */
73 #define XCB_TEST_COMPARE_CURSOR 1
76 * @brief xcb_test_compare_cursor_request_t
78 typedef struct xcb_test_compare_cursor_request_t
{
79 uint8_t major_opcode
; /**< */
80 uint8_t minor_opcode
; /**< */
81 uint16_t length
; /**< */
82 xcb_window_t window
; /**< */
83 xcb_cursor_t cursor
; /**< */
84 } xcb_test_compare_cursor_request_t
;
87 * @brief xcb_test_compare_cursor_reply_t
89 typedef struct xcb_test_compare_cursor_reply_t
{
90 uint8_t response_type
; /**< */
92 uint16_t sequence
; /**< */
93 uint32_t length
; /**< */
94 } xcb_test_compare_cursor_reply_t
;
96 /** Opcode for xcb_test_fake_input. */
97 #define XCB_TEST_FAKE_INPUT 2
100 * @brief xcb_test_fake_input_request_t
102 typedef struct xcb_test_fake_input_request_t
{
103 uint8_t major_opcode
; /**< */
104 uint8_t minor_opcode
; /**< */
105 uint16_t length
; /**< */
106 uint8_t type
; /**< */
107 uint8_t detail
; /**< */
108 uint8_t pad0
[2]; /**< */
109 uint32_t time
; /**< */
110 xcb_window_t root
; /**< */
111 uint8_t pad1
[8]; /**< */
112 int16_t rootX
; /**< */
113 int16_t rootY
; /**< */
114 uint8_t pad2
[7]; /**< */
115 uint8_t deviceid
; /**< */
116 } xcb_test_fake_input_request_t
;
118 /** Opcode for xcb_test_grab_control. */
119 #define XCB_TEST_GRAB_CONTROL 3
122 * @brief xcb_test_grab_control_request_t
124 typedef struct xcb_test_grab_control_request_t
{
125 uint8_t major_opcode
; /**< */
126 uint8_t minor_opcode
; /**< */
127 uint16_t length
; /**< */
128 uint8_t impervious
; /**< */
129 uint8_t pad0
[3]; /**< */
130 } xcb_test_grab_control_request_t
;
134 * @param c The connection
137 * Delivers a request to the X server.
140 xcb_test_get_version_cookie_t
141 xcb_test_get_version (xcb_connection_t
*c
/**< */,
142 uint8_t major_version
/**< */,
143 uint16_t minor_version
/**< */);
147 * @param c The connection
150 * Delivers a request to the X server.
152 * This form can be used only if the request will cause
153 * a reply to be generated. Any returned error will be
154 * placed in the event queue.
156 xcb_test_get_version_cookie_t
157 xcb_test_get_version_unchecked (xcb_connection_t
*c
/**< */,
158 uint8_t major_version
/**< */,
159 uint16_t minor_version
/**< */);
163 * @param c The connection
164 * @param cookie The cookie
165 * @param e The xcb_generic_error_t supplied
167 * Returns the reply of the request asked by
169 * The parameter @p e supplied to this function must be NULL if
170 * xcb_test_get_version_unchecked(). is used.
171 * Otherwise, it stores the error if any.
173 * The returned value must be freed by the caller using free().
175 xcb_test_get_version_reply_t
*
176 xcb_test_get_version_reply (xcb_connection_t
*c
/**< */,
177 xcb_test_get_version_cookie_t cookie
/**< */,
178 xcb_generic_error_t
**e
/**< */);
182 * @param c The connection
185 * Delivers a request to the X server.
188 xcb_test_compare_cursor_cookie_t
189 xcb_test_compare_cursor (xcb_connection_t
*c
/**< */,
190 xcb_window_t window
/**< */,
191 xcb_cursor_t cursor
/**< */);
195 * @param c The connection
198 * Delivers a request to the X server.
200 * This form can be used only if the request will cause
201 * a reply to be generated. Any returned error will be
202 * placed in the event queue.
204 xcb_test_compare_cursor_cookie_t
205 xcb_test_compare_cursor_unchecked (xcb_connection_t
*c
/**< */,
206 xcb_window_t window
/**< */,
207 xcb_cursor_t cursor
/**< */);
211 * @param c The connection
212 * @param cookie The cookie
213 * @param e The xcb_generic_error_t supplied
215 * Returns the reply of the request asked by
217 * The parameter @p e supplied to this function must be NULL if
218 * xcb_test_compare_cursor_unchecked(). is used.
219 * Otherwise, it stores the error if any.
221 * The returned value must be freed by the caller using free().
223 xcb_test_compare_cursor_reply_t
*
224 xcb_test_compare_cursor_reply (xcb_connection_t
*c
/**< */,
225 xcb_test_compare_cursor_cookie_t cookie
/**< */,
226 xcb_generic_error_t
**e
/**< */);
230 * @param c The connection
233 * Delivers a request to the X server.
235 * This form can be used only if the request will not cause
236 * a reply to be generated. Any returned error will be
237 * saved for handling by xcb_request_check().
240 xcb_test_fake_input_checked (xcb_connection_t
*c
/**< */,
241 uint8_t type
/**< */,
242 uint8_t detail
/**< */,
243 uint32_t time
/**< */,
244 xcb_window_t root
/**< */,
245 int16_t rootX
/**< */,
246 int16_t rootY
/**< */,
247 uint8_t deviceid
/**< */);
251 * @param c The connection
254 * Delivers a request to the X server.
258 xcb_test_fake_input (xcb_connection_t
*c
/**< */,
259 uint8_t type
/**< */,
260 uint8_t detail
/**< */,
261 uint32_t time
/**< */,
262 xcb_window_t root
/**< */,
263 int16_t rootX
/**< */,
264 int16_t rootY
/**< */,
265 uint8_t deviceid
/**< */);
269 * @param c The connection
272 * Delivers a request to the X server.
274 * This form can be used only if the request will not cause
275 * a reply to be generated. Any returned error will be
276 * saved for handling by xcb_request_check().
279 xcb_test_grab_control_checked (xcb_connection_t
*c
/**< */,
280 uint8_t impervious
/**< */);
284 * @param c The connection
287 * Delivers a request to the X server.
291 xcb_test_grab_control (xcb_connection_t
*c
/**< */,
292 uint8_t impervious
/**< */);