1/*
2 * This file generated automatically from xtest.xml by c_client.py.
3 * Edit at your peril.
4 */
5
6/**
7 * @defgroup XCB_Test_API XCB Test API
8 * @brief Test XCB Protocol Implementation.
9 * @{
10 **/
11
12#ifndef __XTEST_H
13#define __XTEST_H
14
15#include "xcb.h"
16#include "xproto.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#define XCB_TEST_MAJOR_VERSION 2
23#define XCB_TEST_MINOR_VERSION 1
24
25extern xcb_extension_t xcb_test_id;
26
27/**
28 * @brief xcb_test_get_version_cookie_t
29 **/
30typedef struct xcb_test_get_version_cookie_t {
31    unsigned int sequence; /**<  */
32} xcb_test_get_version_cookie_t;
33
34/** Opcode for xcb_test_get_version. */
35#define XCB_TEST_GET_VERSION 0
36
37/**
38 * @brief xcb_test_get_version_request_t
39 **/
40typedef 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; /**<  */
45    uint8_t  pad0; /**<  */
46    uint16_t minor_version; /**<  */
47} xcb_test_get_version_request_t;
48
49/**
50 * @brief xcb_test_get_version_reply_t
51 **/
52typedef 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;
59
60typedef enum xcb_test_cursor_t {
61    XCB_TEST_CURSOR_NONE = 0,
62    XCB_TEST_CURSOR_CURRENT = 1
63} xcb_test_cursor_t;
64
65/**
66 * @brief xcb_test_compare_cursor_cookie_t
67 **/
68typedef struct xcb_test_compare_cursor_cookie_t {
69    unsigned int sequence; /**<  */
70} xcb_test_compare_cursor_cookie_t;
71
72/** Opcode for xcb_test_compare_cursor. */
73#define XCB_TEST_COMPARE_CURSOR 1
74
75/**
76 * @brief xcb_test_compare_cursor_request_t
77 **/
78typedef 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;
85
86/**
87 * @brief xcb_test_compare_cursor_reply_t
88 **/
89typedef struct xcb_test_compare_cursor_reply_t {
90    uint8_t  response_type; /**<  */
91    uint8_t  same; /**<  */
92    uint16_t sequence; /**<  */
93    uint32_t length; /**<  */
94} xcb_test_compare_cursor_reply_t;
95
96/** Opcode for xcb_test_fake_input. */
97#define XCB_TEST_FAKE_INPUT 2
98
99/**
100 * @brief xcb_test_fake_input_request_t
101 **/
102typedef 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    uint16_t     rootX; /**<  */
113    uint16_t     rootY; /**<  */
114    uint8_t      pad2[7]; /**<  */
115    uint8_t      deviceid; /**<  */
116} xcb_test_fake_input_request_t;
117
118/** Opcode for xcb_test_grab_control. */
119#define XCB_TEST_GRAB_CONTROL 3
120
121/**
122 * @brief xcb_test_grab_control_request_t
123 **/
124typedef 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;
131
132/**
133 * Delivers a request to the X server
134 * @param c The connection
135 * @return A cookie
136 *
137 * Delivers a request to the X server.
138 *
139 */
140
141/*****************************************************************************
142 **
143 ** xcb_test_get_version_cookie_t xcb_test_get_version
144 **
145 ** @param xcb_connection_t *c
146 ** @param uint8_t           major_version
147 ** @param uint16_t          minor_version
148 ** @returns xcb_test_get_version_cookie_t
149 **
150 *****************************************************************************/
151
152xcb_test_get_version_cookie_t
153xcb_test_get_version (xcb_connection_t *c  /**< */,
154                      uint8_t           major_version  /**< */,
155                      uint16_t          minor_version  /**< */);
156
157/**
158 * Delivers a request to the X server
159 * @param c The connection
160 * @return A cookie
161 *
162 * Delivers a request to the X server.
163 *
164 * This form can be used only if the request will cause
165 * a reply to be generated. Any returned error will be
166 * placed in the event queue.
167 */
168
169/*****************************************************************************
170 **
171 ** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
172 **
173 ** @param xcb_connection_t *c
174 ** @param uint8_t           major_version
175 ** @param uint16_t          minor_version
176 ** @returns xcb_test_get_version_cookie_t
177 **
178 *****************************************************************************/
179
180xcb_test_get_version_cookie_t
181xcb_test_get_version_unchecked (xcb_connection_t *c  /**< */,
182                                uint8_t           major_version  /**< */,
183                                uint16_t          minor_version  /**< */);
184
185/**
186 * Return the reply
187 * @param c      The connection
188 * @param cookie The cookie
189 * @param e      The xcb_generic_error_t supplied
190 *
191 * Returns the reply of the request asked by
192 *
193 * The parameter @p e supplied to this function must be NULL if
194 * xcb_test_get_version_unchecked(). is used.
195 * Otherwise, it stores the error if any.
196 *
197 * The returned value must be freed by the caller using free().
198 */
199
200/*****************************************************************************
201 **
202 ** xcb_test_get_version_reply_t * xcb_test_get_version_reply
203 **
204 ** @param xcb_connection_t               *c
205 ** @param xcb_test_get_version_cookie_t   cookie
206 ** @param xcb_generic_error_t           **e
207 ** @returns xcb_test_get_version_reply_t *
208 **
209 *****************************************************************************/
210
211xcb_test_get_version_reply_t *
212xcb_test_get_version_reply (xcb_connection_t               *c  /**< */,
213                            xcb_test_get_version_cookie_t   cookie  /**< */,
214                            xcb_generic_error_t           **e  /**< */);
215
216/**
217 * Delivers a request to the X server
218 * @param c The connection
219 * @return A cookie
220 *
221 * Delivers a request to the X server.
222 *
223 */
224
225/*****************************************************************************
226 **
227 ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
228 **
229 ** @param xcb_connection_t *c
230 ** @param xcb_window_t      window
231 ** @param xcb_cursor_t      cursor
232 ** @returns xcb_test_compare_cursor_cookie_t
233 **
234 *****************************************************************************/
235
236xcb_test_compare_cursor_cookie_t
237xcb_test_compare_cursor (xcb_connection_t *c  /**< */,
238                         xcb_window_t      window  /**< */,
239                         xcb_cursor_t      cursor  /**< */);
240
241/**
242 * Delivers a request to the X server
243 * @param c The connection
244 * @return A cookie
245 *
246 * Delivers a request to the X server.
247 *
248 * This form can be used only if the request will cause
249 * a reply to be generated. Any returned error will be
250 * placed in the event queue.
251 */
252
253/*****************************************************************************
254 **
255 ** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
256 **
257 ** @param xcb_connection_t *c
258 ** @param xcb_window_t      window
259 ** @param xcb_cursor_t      cursor
260 ** @returns xcb_test_compare_cursor_cookie_t
261 **
262 *****************************************************************************/
263
264xcb_test_compare_cursor_cookie_t
265xcb_test_compare_cursor_unchecked (xcb_connection_t *c  /**< */,
266                                   xcb_window_t      window  /**< */,
267                                   xcb_cursor_t      cursor  /**< */);
268
269/**
270 * Return the reply
271 * @param c      The connection
272 * @param cookie The cookie
273 * @param e      The xcb_generic_error_t supplied
274 *
275 * Returns the reply of the request asked by
276 *
277 * The parameter @p e supplied to this function must be NULL if
278 * xcb_test_compare_cursor_unchecked(). is used.
279 * Otherwise, it stores the error if any.
280 *
281 * The returned value must be freed by the caller using free().
282 */
283
284/*****************************************************************************
285 **
286 ** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
287 **
288 ** @param xcb_connection_t                  *c
289 ** @param xcb_test_compare_cursor_cookie_t   cookie
290 ** @param xcb_generic_error_t              **e
291 ** @returns xcb_test_compare_cursor_reply_t *
292 **
293 *****************************************************************************/
294
295xcb_test_compare_cursor_reply_t *
296xcb_test_compare_cursor_reply (xcb_connection_t                  *c  /**< */,
297                               xcb_test_compare_cursor_cookie_t   cookie  /**< */,
298                               xcb_generic_error_t              **e  /**< */);
299
300/**
301 * Delivers a request to the X server
302 * @param c The connection
303 * @return A cookie
304 *
305 * Delivers a request to the X server.
306 *
307 * This form can be used only if the request will not cause
308 * a reply to be generated. Any returned error will be
309 * saved for handling by xcb_request_check().
310 */
311
312/*****************************************************************************
313 **
314 ** xcb_void_cookie_t xcb_test_fake_input_checked
315 **
316 ** @param xcb_connection_t *c
317 ** @param uint8_t           type
318 ** @param uint8_t           detail
319 ** @param uint32_t          time
320 ** @param xcb_window_t      root
321 ** @param uint16_t          rootX
322 ** @param uint16_t          rootY
323 ** @param uint8_t           deviceid
324 ** @returns xcb_void_cookie_t
325 **
326 *****************************************************************************/
327
328xcb_void_cookie_t
329xcb_test_fake_input_checked (xcb_connection_t *c  /**< */,
330                             uint8_t           type  /**< */,
331                             uint8_t           detail  /**< */,
332                             uint32_t          time  /**< */,
333                             xcb_window_t      root  /**< */,
334                             uint16_t          rootX  /**< */,
335                             uint16_t          rootY  /**< */,
336                             uint8_t           deviceid  /**< */);
337
338/**
339 * Delivers a request to the X server
340 * @param c The connection
341 * @return A cookie
342 *
343 * Delivers a request to the X server.
344 *
345 */
346
347/*****************************************************************************
348 **
349 ** xcb_void_cookie_t xcb_test_fake_input
350 **
351 ** @param xcb_connection_t *c
352 ** @param uint8_t           type
353 ** @param uint8_t           detail
354 ** @param uint32_t          time
355 ** @param xcb_window_t      root
356 ** @param uint16_t          rootX
357 ** @param uint16_t          rootY
358 ** @param uint8_t           deviceid
359 ** @returns xcb_void_cookie_t
360 **
361 *****************************************************************************/
362
363xcb_void_cookie_t
364xcb_test_fake_input (xcb_connection_t *c  /**< */,
365                     uint8_t           type  /**< */,
366                     uint8_t           detail  /**< */,
367                     uint32_t          time  /**< */,
368                     xcb_window_t      root  /**< */,
369                     uint16_t          rootX  /**< */,
370                     uint16_t          rootY  /**< */,
371                     uint8_t           deviceid  /**< */);
372
373/**
374 * Delivers a request to the X server
375 * @param c The connection
376 * @return A cookie
377 *
378 * Delivers a request to the X server.
379 *
380 * This form can be used only if the request will not cause
381 * a reply to be generated. Any returned error will be
382 * saved for handling by xcb_request_check().
383 */
384
385/*****************************************************************************
386 **
387 ** xcb_void_cookie_t xcb_test_grab_control_checked
388 **
389 ** @param xcb_connection_t *c
390 ** @param uint8_t           impervious
391 ** @returns xcb_void_cookie_t
392 **
393 *****************************************************************************/
394
395xcb_void_cookie_t
396xcb_test_grab_control_checked (xcb_connection_t *c  /**< */,
397                               uint8_t           impervious  /**< */);
398
399/**
400 * Delivers a request to the X server
401 * @param c The connection
402 * @return A cookie
403 *
404 * Delivers a request to the X server.
405 *
406 */
407
408/*****************************************************************************
409 **
410 ** xcb_void_cookie_t xcb_test_grab_control
411 **
412 ** @param xcb_connection_t *c
413 ** @param uint8_t           impervious
414 ** @returns xcb_void_cookie_t
415 **
416 *****************************************************************************/
417
418xcb_void_cookie_t
419xcb_test_grab_control (xcb_connection_t *c  /**< */,
420                       uint8_t           impervious  /**< */);
421
422
423#ifdef __cplusplus
424}
425#endif
426
427#endif
428
429/**
430 * @}
431 */
432