2
* This file generated automatically from xtest.xml by c-client.xsl using XSLT.
7
* @defgroup XCB_Test_API XCB Test API
8
* @brief Test XCB Protocol Implementation.
18
#define XCB_TEST_MAJOR_VERSION 2
19
#define XCB_TEST_MINOR_VERSION 1
21
extern xcb_extension_t xcb_test_id;
24
* @brief xcb_test_get_version_cookie_t
26
typedef struct xcb_test_get_version_cookie_t {
27
unsigned int sequence; /**< */
28
} xcb_test_get_version_cookie_t;
30
/** Opcode for xcb_test_get_version. */
31
#define XCB_TEST_GET_VERSION 0
34
* @brief xcb_test_get_version_request_t
36
typedef struct xcb_test_get_version_request_t {
37
uint8_t major_opcode; /**< */
38
uint8_t minor_opcode; /**< */
39
uint16_t length; /**< */
40
uint8_t major_version; /**< */
42
uint16_t minor_version; /**< */
43
} xcb_test_get_version_request_t;
46
* @brief xcb_test_get_version_reply_t
48
typedef struct xcb_test_get_version_reply_t {
49
uint8_t response_type; /**< */
50
uint8_t major_version; /**< */
51
uint16_t sequence; /**< */
52
uint32_t length; /**< */
53
uint16_t minor_version; /**< */
54
} xcb_test_get_version_reply_t;
56
typedef enum xcb_test_cursor_t {
57
XCB_TEST_CURSOR_NONE = 0,
58
XCB_TEST_CURSOR_CURRENT = 1
62
* @brief xcb_test_compare_cursor_cookie_t
64
typedef struct xcb_test_compare_cursor_cookie_t {
65
unsigned int sequence; /**< */
66
} xcb_test_compare_cursor_cookie_t;
68
/** Opcode for xcb_test_compare_cursor. */
69
#define XCB_TEST_COMPARE_CURSOR 1
72
* @brief xcb_test_compare_cursor_request_t
74
typedef struct xcb_test_compare_cursor_request_t {
75
uint8_t major_opcode; /**< */
76
uint8_t minor_opcode; /**< */
77
uint16_t length; /**< */
78
xcb_window_t window; /**< */
79
xcb_cursor_t cursor; /**< */
80
} xcb_test_compare_cursor_request_t;
83
* @brief xcb_test_compare_cursor_reply_t
85
typedef struct xcb_test_compare_cursor_reply_t {
86
uint8_t response_type; /**< */
88
uint16_t sequence; /**< */
89
uint32_t length; /**< */
90
} xcb_test_compare_cursor_reply_t;
92
/** Opcode for xcb_test_fake_input. */
93
#define XCB_TEST_FAKE_INPUT 2
96
* @brief xcb_test_fake_input_request_t
98
typedef struct xcb_test_fake_input_request_t {
99
uint8_t major_opcode; /**< */
100
uint8_t minor_opcode; /**< */
101
uint16_t length; /**< */
102
uint8_t type; /**< */
103
uint8_t detail; /**< */
104
uint8_t pad0[2]; /**< */
105
uint32_t time; /**< */
106
xcb_window_t window; /**< */
107
uint8_t pad1[8]; /**< */
108
uint16_t rootX; /**< */
109
uint16_t rootY; /**< */
110
uint8_t pad2[7]; /**< */
111
uint8_t deviceid; /**< */
112
} xcb_test_fake_input_request_t;
114
/** Opcode for xcb_test_grab_control. */
115
#define XCB_TEST_GRAB_CONTROL 3
118
* @brief xcb_test_grab_control_request_t
120
typedef struct xcb_test_grab_control_request_t {
121
uint8_t major_opcode; /**< */
122
uint8_t minor_opcode; /**< */
123
uint16_t length; /**< */
124
uint8_t impervious; /**< */
125
uint8_t pad0[3]; /**< */
126
} xcb_test_grab_control_request_t;
129
* Delivers a request to the X server
130
* @param c The connection
133
* Delivers a request to the X server.
137
/*****************************************************************************
139
** xcb_test_get_version_cookie_t xcb_test_get_version
141
** @param xcb_connection_t *c
142
** @param uint8_t major_version
143
** @param uint16_t minor_version
144
** @returns xcb_test_get_version_cookie_t
146
*****************************************************************************/
148
xcb_test_get_version_cookie_t
149
xcb_test_get_version (xcb_connection_t *c /**< */,
150
uint8_t major_version /**< */,
151
uint16_t minor_version /**< */);
154
* Delivers a request to the X server
155
* @param c The connection
158
* Delivers a request to the X server.
160
* This form can be used only if the request will cause
161
* a reply to be generated. Any returned error will be
162
* placed in the event queue.
165
/*****************************************************************************
167
** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
169
** @param xcb_connection_t *c
170
** @param uint8_t major_version
171
** @param uint16_t minor_version
172
** @returns xcb_test_get_version_cookie_t
174
*****************************************************************************/
176
xcb_test_get_version_cookie_t
177
xcb_test_get_version_unchecked (xcb_connection_t *c /**< */,
178
uint8_t major_version /**< */,
179
uint16_t minor_version /**< */);
183
* @param c The connection
184
* @param cookie The cookie
185
* @param e The xcb_generic_error_t supplied
187
* Returns the reply of the request asked by
189
* The parameter @p e supplied to this function must be NULL if
190
* xcb_test_get_version_unchecked(). is used.
191
* Otherwise, it stores the error if any.
194
/*****************************************************************************
196
** xcb_test_get_version_reply_t * xcb_test_get_version_reply
198
** @param xcb_connection_t *c
199
** @param xcb_test_get_version_cookie_t cookie
200
** @param xcb_generic_error_t **e
201
** @returns xcb_test_get_version_reply_t *
203
*****************************************************************************/
205
xcb_test_get_version_reply_t *
206
xcb_test_get_version_reply (xcb_connection_t *c /**< */,
207
xcb_test_get_version_cookie_t cookie /**< */,
208
xcb_generic_error_t **e /**< */);
211
* Delivers a request to the X server
212
* @param c The connection
215
* Delivers a request to the X server.
219
/*****************************************************************************
221
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
223
** @param xcb_connection_t *c
224
** @param xcb_window_t window
225
** @param xcb_cursor_t cursor
226
** @returns xcb_test_compare_cursor_cookie_t
228
*****************************************************************************/
230
xcb_test_compare_cursor_cookie_t
231
xcb_test_compare_cursor (xcb_connection_t *c /**< */,
232
xcb_window_t window /**< */,
233
xcb_cursor_t cursor /**< */);
236
* Delivers a request to the X server
237
* @param c The connection
240
* Delivers a request to the X server.
242
* This form can be used only if the request will cause
243
* a reply to be generated. Any returned error will be
244
* placed in the event queue.
247
/*****************************************************************************
249
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
251
** @param xcb_connection_t *c
252
** @param xcb_window_t window
253
** @param xcb_cursor_t cursor
254
** @returns xcb_test_compare_cursor_cookie_t
256
*****************************************************************************/
258
xcb_test_compare_cursor_cookie_t
259
xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */,
260
xcb_window_t window /**< */,
261
xcb_cursor_t cursor /**< */);
265
* @param c The connection
266
* @param cookie The cookie
267
* @param e The xcb_generic_error_t supplied
269
* Returns the reply of the request asked by
271
* The parameter @p e supplied to this function must be NULL if
272
* xcb_test_compare_cursor_unchecked(). is used.
273
* Otherwise, it stores the error if any.
276
/*****************************************************************************
278
** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
280
** @param xcb_connection_t *c
281
** @param xcb_test_compare_cursor_cookie_t cookie
282
** @param xcb_generic_error_t **e
283
** @returns xcb_test_compare_cursor_reply_t *
285
*****************************************************************************/
287
xcb_test_compare_cursor_reply_t *
288
xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */,
289
xcb_test_compare_cursor_cookie_t cookie /**< */,
290
xcb_generic_error_t **e /**< */);
293
* Delivers a request to the X server
294
* @param c The connection
297
* Delivers a request to the X server.
299
* This form can be used only if the request will not cause
300
* a reply to be generated. Any returned error will be
301
* saved for handling by xcb_request_check().
304
/*****************************************************************************
306
** xcb_void_cookie_t xcb_test_fake_input_checked
308
** @param xcb_connection_t *c
309
** @param uint8_t type
310
** @param uint8_t detail
311
** @param uint32_t time
312
** @param xcb_window_t window
313
** @param uint16_t rootX
314
** @param uint16_t rootY
315
** @param uint8_t deviceid
316
** @returns xcb_void_cookie_t
318
*****************************************************************************/
321
xcb_test_fake_input_checked (xcb_connection_t *c /**< */,
322
uint8_t type /**< */,
323
uint8_t detail /**< */,
324
uint32_t time /**< */,
325
xcb_window_t window /**< */,
326
uint16_t rootX /**< */,
327
uint16_t rootY /**< */,
328
uint8_t deviceid /**< */);
331
* Delivers a request to the X server
332
* @param c The connection
335
* Delivers a request to the X server.
339
/*****************************************************************************
341
** xcb_void_cookie_t xcb_test_fake_input
343
** @param xcb_connection_t *c
344
** @param uint8_t type
345
** @param uint8_t detail
346
** @param uint32_t time
347
** @param xcb_window_t window
348
** @param uint16_t rootX
349
** @param uint16_t rootY
350
** @param uint8_t deviceid
351
** @returns xcb_void_cookie_t
353
*****************************************************************************/
356
xcb_test_fake_input (xcb_connection_t *c /**< */,
357
uint8_t type /**< */,
358
uint8_t detail /**< */,
359
uint32_t time /**< */,
360
xcb_window_t window /**< */,
361
uint16_t rootX /**< */,
362
uint16_t rootY /**< */,
363
uint8_t deviceid /**< */);
366
* Delivers a request to the X server
367
* @param c The connection
370
* Delivers a request to the X server.
372
* This form can be used only if the request will not cause
373
* a reply to be generated. Any returned error will be
374
* saved for handling by xcb_request_check().
377
/*****************************************************************************
379
** xcb_void_cookie_t xcb_test_grab_control_checked
381
** @param xcb_connection_t *c
382
** @param uint8_t impervious
383
** @returns xcb_void_cookie_t
385
*****************************************************************************/
388
xcb_test_grab_control_checked (xcb_connection_t *c /**< */,
389
uint8_t impervious /**< */);
392
* Delivers a request to the X server
393
* @param c The connection
396
* Delivers a request to the X server.
400
/*****************************************************************************
402
** xcb_void_cookie_t xcb_test_grab_control
404
** @param xcb_connection_t *c
405
** @param uint8_t impervious
406
** @returns xcb_void_cookie_t
408
*****************************************************************************/
411
xcb_test_grab_control (xcb_connection_t *c /**< */,
412
uint8_t impervious /**< */);