Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / lib / libxcb / files / xtest.h
blobd51e4ec492912951c2142dfa32ba88a31b22a5cc
1 /*
2 * This file generated automatically from xtest.xml by c_client.py.
3 * Edit at your peril.
4 */
6 /**
7 * @defgroup XCB_Test_API XCB Test API
8 * @brief Test XCB Protocol Implementation.
9 * @{
10 **/
12 #ifndef __XTEST_H
13 #define __XTEST_H
15 #include "xcb.h"
16 #include "xproto.h"
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
22 #define XCB_TEST_MAJOR_VERSION 2
23 #define XCB_TEST_MINOR_VERSION 2
25 extern xcb_extension_t xcb_test_id;
27 /**
28 * @brief xcb_test_get_version_cookie_t
29 **/
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
37 /**
38 * @brief xcb_test_get_version_request_t
39 **/
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; /**< */
45 uint8_t pad0; /**< */
46 uint16_t minor_version; /**< */
47 } xcb_test_get_version_request_t;
49 /**
50 * @brief xcb_test_get_version_reply_t
51 **/
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
63 } xcb_test_cursor_t;
65 /**
66 * @brief xcb_test_compare_cursor_cookie_t
67 **/
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
75 /**
76 * @brief xcb_test_compare_cursor_request_t
77 **/
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;
86 /**
87 * @brief xcb_test_compare_cursor_reply_t
88 **/
89 typedef 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;
96 /** Opcode for xcb_test_fake_input. */
97 #define XCB_TEST_FAKE_INPUT 2
99 /**
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
135 * @return A cookie
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
148 * @return A cookie
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 /**< */);
162 * Return the reply
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
183 * @return A cookie
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
196 * @return A cookie
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 /**< */);
210 * Return the reply
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
231 * @return A cookie
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().
239 xcb_void_cookie_t
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
252 * @return A cookie
254 * Delivers a request to the X server.
257 xcb_void_cookie_t
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
270 * @return A cookie
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().
278 xcb_void_cookie_t
279 xcb_test_grab_control_checked (xcb_connection_t *c /**< */,
280 uint8_t impervious /**< */);
284 * @param c The connection
285 * @return A cookie
287 * Delivers a request to the X server.
290 xcb_void_cookie_t
291 xcb_test_grab_control (xcb_connection_t *c /**< */,
292 uint8_t impervious /**< */);
295 #ifdef __cplusplus
297 #endif
299 #endif
302 * @}