File indexing completed on 2025-01-18 10:14:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __XTEST_H
0013 #define __XTEST_H
0014
0015 #include "xcb.h"
0016 #include "xproto.h"
0017
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021
0022 #define XCB_TEST_MAJOR_VERSION 2
0023 #define XCB_TEST_MINOR_VERSION 2
0024
0025 extern xcb_extension_t xcb_test_id;
0026
0027
0028
0029
0030 typedef struct xcb_test_get_version_cookie_t {
0031 unsigned int sequence;
0032 } xcb_test_get_version_cookie_t;
0033
0034
0035 #define XCB_TEST_GET_VERSION 0
0036
0037
0038
0039
0040 typedef struct xcb_test_get_version_request_t {
0041 uint8_t major_opcode;
0042 uint8_t minor_opcode;
0043 uint16_t length;
0044 uint8_t major_version;
0045 uint8_t pad0;
0046 uint16_t minor_version;
0047 } xcb_test_get_version_request_t;
0048
0049
0050
0051
0052 typedef struct xcb_test_get_version_reply_t {
0053 uint8_t response_type;
0054 uint8_t major_version;
0055 uint16_t sequence;
0056 uint32_t length;
0057 uint16_t minor_version;
0058 } xcb_test_get_version_reply_t;
0059
0060 typedef enum xcb_test_cursor_t {
0061 XCB_TEST_CURSOR_NONE = 0,
0062 XCB_TEST_CURSOR_CURRENT = 1
0063 } xcb_test_cursor_t;
0064
0065
0066
0067
0068 typedef struct xcb_test_compare_cursor_cookie_t {
0069 unsigned int sequence;
0070 } xcb_test_compare_cursor_cookie_t;
0071
0072
0073 #define XCB_TEST_COMPARE_CURSOR 1
0074
0075
0076
0077
0078 typedef struct xcb_test_compare_cursor_request_t {
0079 uint8_t major_opcode;
0080 uint8_t minor_opcode;
0081 uint16_t length;
0082 xcb_window_t window;
0083 xcb_cursor_t cursor;
0084 } xcb_test_compare_cursor_request_t;
0085
0086
0087
0088
0089 typedef struct xcb_test_compare_cursor_reply_t {
0090 uint8_t response_type;
0091 uint8_t same;
0092 uint16_t sequence;
0093 uint32_t length;
0094 } xcb_test_compare_cursor_reply_t;
0095
0096
0097 #define XCB_TEST_FAKE_INPUT 2
0098
0099
0100
0101
0102 typedef struct xcb_test_fake_input_request_t {
0103 uint8_t major_opcode;
0104 uint8_t minor_opcode;
0105 uint16_t length;
0106 uint8_t type;
0107 uint8_t detail;
0108 uint8_t pad0[2];
0109 uint32_t time;
0110 xcb_window_t root;
0111 uint8_t pad1[8];
0112 int16_t rootX;
0113 int16_t rootY;
0114 uint8_t pad2[7];
0115 uint8_t deviceid;
0116 } xcb_test_fake_input_request_t;
0117
0118
0119 #define XCB_TEST_GRAB_CONTROL 3
0120
0121
0122
0123
0124 typedef struct xcb_test_grab_control_request_t {
0125 uint8_t major_opcode;
0126 uint8_t minor_opcode;
0127 uint16_t length;
0128 uint8_t impervious;
0129 uint8_t pad0[3];
0130 } xcb_test_grab_control_request_t;
0131
0132
0133
0134
0135
0136
0137
0138
0139
0140 xcb_test_get_version_cookie_t
0141 xcb_test_get_version (xcb_connection_t *c,
0142 uint8_t major_version,
0143 uint16_t minor_version);
0144
0145
0146
0147
0148
0149
0150
0151
0152
0153
0154
0155
0156 xcb_test_get_version_cookie_t
0157 xcb_test_get_version_unchecked (xcb_connection_t *c,
0158 uint8_t major_version,
0159 uint16_t minor_version);
0160
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175 xcb_test_get_version_reply_t *
0176 xcb_test_get_version_reply (xcb_connection_t *c,
0177 xcb_test_get_version_cookie_t cookie ,
0178 xcb_generic_error_t **e);
0179
0180
0181
0182
0183
0184
0185
0186
0187
0188 xcb_test_compare_cursor_cookie_t
0189 xcb_test_compare_cursor (xcb_connection_t *c,
0190 xcb_window_t window,
0191 xcb_cursor_t cursor);
0192
0193
0194
0195
0196
0197
0198
0199
0200
0201
0202
0203
0204 xcb_test_compare_cursor_cookie_t
0205 xcb_test_compare_cursor_unchecked (xcb_connection_t *c,
0206 xcb_window_t window,
0207 xcb_cursor_t cursor);
0208
0209
0210
0211
0212
0213
0214
0215
0216
0217
0218
0219
0220
0221
0222
0223 xcb_test_compare_cursor_reply_t *
0224 xcb_test_compare_cursor_reply (xcb_connection_t *c,
0225 xcb_test_compare_cursor_cookie_t cookie ,
0226 xcb_generic_error_t **e);
0227
0228
0229
0230
0231
0232
0233
0234
0235
0236
0237
0238
0239 xcb_void_cookie_t
0240 xcb_test_fake_input_checked (xcb_connection_t *c,
0241 uint8_t type,
0242 uint8_t detail,
0243 uint32_t time,
0244 xcb_window_t root,
0245 int16_t rootX,
0246 int16_t rootY,
0247 uint8_t deviceid);
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257 xcb_void_cookie_t
0258 xcb_test_fake_input (xcb_connection_t *c,
0259 uint8_t type,
0260 uint8_t detail,
0261 uint32_t time,
0262 xcb_window_t root,
0263 int16_t rootX,
0264 int16_t rootY,
0265 uint8_t deviceid);
0266
0267
0268
0269
0270
0271
0272
0273
0274
0275
0276
0277
0278 xcb_void_cookie_t
0279 xcb_test_grab_control_checked (xcb_connection_t *c,
0280 uint8_t impervious);
0281
0282
0283
0284
0285
0286
0287
0288
0289
0290 xcb_void_cookie_t
0291 xcb_test_grab_control (xcb_connection_t *c,
0292 uint8_t impervious);
0293
0294
0295 #ifdef __cplusplus
0296 }
0297 #endif
0298
0299 #endif
0300
0301
0302
0303