XCB: xtest.h Source File

XCB 1.17.0

xtest.h
1/*
2 * This file generated automatically from xtest.xml by c_client.py.
3 * Edit at your peril.
4 */
5
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 2
24
25extern xcb_extension_t xcb_test_id;
26
30 typedef struct xcb_test_get_version_cookie_t {
31 unsigned int sequence;
32} xcb_test_get_version_cookie_t;
33
35#define XCB_TEST_GET_VERSION 0
36
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;
48
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;
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
68 typedef struct xcb_test_compare_cursor_cookie_t {
69 unsigned int sequence;
70} xcb_test_compare_cursor_cookie_t;
71
73#define XCB_TEST_COMPARE_CURSOR 1
74
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;
85
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;
95
97#define XCB_TEST_FAKE_INPUT 2
98
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;
117
119#define XCB_TEST_GRAB_CONTROL 3
120
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;
131
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);
144
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);
160
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);
179
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);
192
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);
208
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);
227
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);
248
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);
266
278 xcb_void_cookie_t
279 xcb_test_grab_control_checked (xcb_connection_t *c,
280 uint8_t impervious);
281
290 xcb_void_cookie_t
291 xcb_test_grab_control (xcb_connection_t *c,
292 uint8_t impervious);
293
294
295#ifdef __cplusplus
296}
297#endif
298
299#endif
300
xcb_test_get_version_reply
xcb_test_get_version_reply_t * xcb_test_get_version_reply(xcb_connection_t *c, xcb_test_get_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: xtest.c:80
xcb_test_fake_input_checked
xcb_void_cookie_t xcb_test_fake_input_checked(xcb_connection_t *c, uint8_t type, uint8_t detail, uint32_t time, xcb_window_t root, int16_t rootX, int16_t rootY, uint8_t deviceid)
Definition: xtest.c:152
xcb_test_compare_cursor_reply
xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply(xcb_connection_t *c, xcb_test_compare_cursor_cookie_t cookie, xcb_generic_error_t **e)
Definition: xtest.c:144
xcb_test_get_version_unchecked
xcb_test_get_version_cookie_t xcb_test_get_version_unchecked(xcb_connection_t *c, uint8_t major_version, uint16_t minor_version)
Definition: xtest.c:51
xcb_test_compare_cursor_unchecked
xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked(xcb_connection_t *c, xcb_window_t window, xcb_cursor_t cursor)
Definition: xtest.c:116
xcb_test_get_version
xcb_test_get_version_cookie_t xcb_test_get_version(xcb_connection_t *c, uint8_t major_version, uint16_t minor_version)
Definition: xtest.c:22
xcb_test_grab_control
xcb_void_cookie_t xcb_test_grab_control(xcb_connection_t *c, uint8_t impervious)
Definition: xtest.c:261
xcb_test_compare_cursor
xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor(xcb_connection_t *c, xcb_window_t window, xcb_cursor_t cursor)
Definition: xtest.c:88
xcb_test_fake_input
xcb_void_cookie_t xcb_test_fake_input(xcb_connection_t *c, uint8_t type, uint8_t detail, uint32_t time, xcb_window_t root, int16_t rootX, int16_t rootY, uint8_t deviceid)
Definition: xtest.c:193
xcb_test_grab_control_checked
xcb_void_cookie_t xcb_test_grab_control_checked(xcb_connection_t *c, uint8_t impervious)
Definition: xtest.c:234
xcb_connection_t
Definition: xcbint.h:208
xcb_extension_t
Definition: xcbext.h:39
xcb_generic_error_t
Generic error.
Definition: xcb.h:186
xcb_test_compare_cursor_cookie_t
xcb_test_compare_cursor_cookie_t
Definition: xtest.h:68
xcb_test_compare_cursor_reply_t
xcb_test_compare_cursor_reply_t
Definition: xtest.h:89
xcb_test_compare_cursor_request_t
xcb_test_compare_cursor_request_t
Definition: xtest.h:78
xcb_test_fake_input_request_t
xcb_test_fake_input_request_t
Definition: xtest.h:102
xcb_test_get_version_cookie_t
xcb_test_get_version_cookie_t
Definition: xtest.h:30
xcb_test_get_version_reply_t
xcb_test_get_version_reply_t
Definition: xtest.h:52
xcb_test_get_version_request_t
xcb_test_get_version_request_t
Definition: xtest.h:40
xcb_test_grab_control_request_t
xcb_test_grab_control_request_t
Definition: xtest.h:124
xcb_void_cookie_t
Generic cookie.
Definition: xcb.h:203
xcb.h