00001
00002
00003
00004
00005
00012 #ifndef __XTEST_H
00013 #define __XTEST_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 #define XCB_TEST_MAJOR_VERSION 2
00023 #define XCB_TEST_MINOR_VERSION 1
00024
00025 extern xcb_extension_t xcb_test_id;
00026
00030 typedef struct xcb_test_get_version_cookie_t {
00031 unsigned int sequence;
00032 } xcb_test_get_version_cookie_t;
00033
00035 #define XCB_TEST_GET_VERSION 0
00036
00040 typedef struct xcb_test_get_version_request_t {
00041 uint8_t major_opcode;
00042 uint8_t minor_opcode;
00043 uint16_t length;
00044 uint8_t major_version;
00045 uint8_t pad0;
00046 uint16_t minor_version;
00047 } xcb_test_get_version_request_t;
00048
00052 typedef struct xcb_test_get_version_reply_t {
00053 uint8_t response_type;
00054 uint8_t major_version;
00055 uint16_t sequence;
00056 uint32_t length;
00057 uint16_t minor_version;
00058 } xcb_test_get_version_reply_t;
00059
00060 typedef enum xcb_test_cursor_t {
00061 XCB_TEST_CURSOR_NONE = 0,
00062 XCB_TEST_CURSOR_CURRENT = 1
00063 } xcb_test_cursor_t;
00064
00068 typedef struct xcb_test_compare_cursor_cookie_t {
00069 unsigned int sequence;
00070 } xcb_test_compare_cursor_cookie_t;
00071
00073 #define XCB_TEST_COMPARE_CURSOR 1
00074
00078 typedef struct xcb_test_compare_cursor_request_t {
00079 uint8_t major_opcode;
00080 uint8_t minor_opcode;
00081 uint16_t length;
00082 xcb_window_t window;
00083 xcb_cursor_t cursor;
00084 } xcb_test_compare_cursor_request_t;
00085
00089 typedef struct xcb_test_compare_cursor_reply_t {
00090 uint8_t response_type;
00091 uint8_t same;
00092 uint16_t sequence;
00093 uint32_t length;
00094 } xcb_test_compare_cursor_reply_t;
00095
00097 #define XCB_TEST_FAKE_INPUT 2
00098
00102 typedef struct xcb_test_fake_input_request_t {
00103 uint8_t major_opcode;
00104 uint8_t minor_opcode;
00105 uint16_t length;
00106 uint8_t type;
00107 uint8_t detail;
00108 uint8_t pad0[2];
00109 uint32_t time;
00110 xcb_window_t root;
00111 uint8_t pad1[8];
00112 uint16_t rootX;
00113 uint16_t rootY;
00114 uint8_t pad2[7];
00115 uint8_t deviceid;
00116 } xcb_test_fake_input_request_t;
00117
00119 #define XCB_TEST_GRAB_CONTROL 3
00120
00124 typedef struct xcb_test_grab_control_request_t {
00125 uint8_t major_opcode;
00126 uint8_t minor_opcode;
00127 uint16_t length;
00128 uint8_t impervious;
00129 uint8_t pad0[3];
00130 } xcb_test_grab_control_request_t;
00131
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152 xcb_test_get_version_cookie_t
00153 xcb_test_get_version (xcb_connection_t *c ,
00154 uint8_t major_version ,
00155 uint16_t minor_version );
00156
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180 xcb_test_get_version_cookie_t
00181 xcb_test_get_version_unchecked (xcb_connection_t *c ,
00182 uint8_t major_version ,
00183 uint16_t minor_version );
00184
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211 xcb_test_get_version_reply_t *
00212 xcb_test_get_version_reply (xcb_connection_t *c ,
00213 xcb_test_get_version_cookie_t cookie ,
00214 xcb_generic_error_t **e );
00215
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236 xcb_test_compare_cursor_cookie_t
00237 xcb_test_compare_cursor (xcb_connection_t *c ,
00238 xcb_window_t window ,
00239 xcb_cursor_t cursor );
00240
00253
00254
00255
00256
00257
00258
00259
00260
00261
00262
00263
00264 xcb_test_compare_cursor_cookie_t
00265 xcb_test_compare_cursor_unchecked (xcb_connection_t *c ,
00266 xcb_window_t window ,
00267 xcb_cursor_t cursor );
00268
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295 xcb_test_compare_cursor_reply_t *
00296 xcb_test_compare_cursor_reply (xcb_connection_t *c ,
00297 xcb_test_compare_cursor_cookie_t cookie ,
00298 xcb_generic_error_t **e );
00299
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328 xcb_void_cookie_t
00329 xcb_test_fake_input_checked (xcb_connection_t *c ,
00330 uint8_t type ,
00331 uint8_t detail ,
00332 uint32_t time ,
00333 xcb_window_t root ,
00334 uint16_t rootX ,
00335 uint16_t rootY ,
00336 uint8_t deviceid );
00337
00347
00348
00349
00350
00351
00352
00353
00354
00355
00356
00357
00358
00359
00360
00361
00362
00363 xcb_void_cookie_t
00364 xcb_test_fake_input (xcb_connection_t *c ,
00365 uint8_t type ,
00366 uint8_t detail ,
00367 uint32_t time ,
00368 xcb_window_t root ,
00369 uint16_t rootX ,
00370 uint16_t rootY ,
00371 uint8_t deviceid );
00372
00385
00386
00387
00388
00389
00390
00391
00392
00393
00394
00395 xcb_void_cookie_t
00396 xcb_test_grab_control_checked (xcb_connection_t *c ,
00397 uint8_t impervious );
00398
00408
00409
00410
00411
00412
00413
00414
00415
00416
00417
00418 xcb_void_cookie_t
00419 xcb_test_grab_control (xcb_connection_t *c ,
00420 uint8_t impervious );
00421
00422
00423 #ifdef __cplusplus
00424 }
00425 #endif
00426
00427 #endif
00428