File indexing completed on 2025-01-18 10:14:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __XEVIE_H
0013 #define __XEVIE_H
0014
0015 #include "xcb.h"
0016
0017 #ifdef __cplusplus
0018 extern "C" {
0019 #endif
0020
0021 #define XCB_XEVIE_MAJOR_VERSION 1
0022 #define XCB_XEVIE_MINOR_VERSION 0
0023
0024 extern xcb_extension_t xcb_xevie_id;
0025
0026
0027
0028
0029 typedef struct xcb_xevie_query_version_cookie_t {
0030 unsigned int sequence;
0031 } xcb_xevie_query_version_cookie_t;
0032
0033
0034 #define XCB_XEVIE_QUERY_VERSION 0
0035
0036
0037
0038
0039 typedef struct xcb_xevie_query_version_request_t {
0040 uint8_t major_opcode;
0041 uint8_t minor_opcode;
0042 uint16_t length;
0043 uint16_t client_major_version;
0044 uint16_t client_minor_version;
0045 } xcb_xevie_query_version_request_t;
0046
0047
0048
0049
0050 typedef struct xcb_xevie_query_version_reply_t {
0051 uint8_t response_type;
0052 uint8_t pad0;
0053 uint16_t sequence;
0054 uint32_t length;
0055 uint16_t server_major_version;
0056 uint16_t server_minor_version;
0057 uint8_t pad1[20];
0058 } xcb_xevie_query_version_reply_t;
0059
0060
0061
0062
0063 typedef struct xcb_xevie_start_cookie_t {
0064 unsigned int sequence;
0065 } xcb_xevie_start_cookie_t;
0066
0067
0068 #define XCB_XEVIE_START 1
0069
0070
0071
0072
0073 typedef struct xcb_xevie_start_request_t {
0074 uint8_t major_opcode;
0075 uint8_t minor_opcode;
0076 uint16_t length;
0077 uint32_t screen;
0078 } xcb_xevie_start_request_t;
0079
0080
0081
0082
0083 typedef struct xcb_xevie_start_reply_t {
0084 uint8_t response_type;
0085 uint8_t pad0;
0086 uint16_t sequence;
0087 uint32_t length;
0088 uint8_t pad1[24];
0089 } xcb_xevie_start_reply_t;
0090
0091
0092
0093
0094 typedef struct xcb_xevie_end_cookie_t {
0095 unsigned int sequence;
0096 } xcb_xevie_end_cookie_t;
0097
0098
0099 #define XCB_XEVIE_END 2
0100
0101
0102
0103
0104 typedef struct xcb_xevie_end_request_t {
0105 uint8_t major_opcode;
0106 uint8_t minor_opcode;
0107 uint16_t length;
0108 uint32_t cmap;
0109 } xcb_xevie_end_request_t;
0110
0111
0112
0113
0114 typedef struct xcb_xevie_end_reply_t {
0115 uint8_t response_type;
0116 uint8_t pad0;
0117 uint16_t sequence;
0118 uint32_t length;
0119 uint8_t pad1[24];
0120 } xcb_xevie_end_reply_t;
0121
0122 typedef enum xcb_xevie_datatype_t {
0123 XCB_XEVIE_DATATYPE_UNMODIFIED = 0,
0124 XCB_XEVIE_DATATYPE_MODIFIED = 1
0125 } xcb_xevie_datatype_t;
0126
0127
0128
0129
0130 typedef struct xcb_xevie_event_t {
0131 uint8_t pad0[32];
0132 } xcb_xevie_event_t;
0133
0134
0135
0136
0137 typedef struct xcb_xevie_event_iterator_t {
0138 xcb_xevie_event_t *data;
0139 int rem;
0140 int index;
0141 } xcb_xevie_event_iterator_t;
0142
0143
0144
0145
0146 typedef struct xcb_xevie_send_cookie_t {
0147 unsigned int sequence;
0148 } xcb_xevie_send_cookie_t;
0149
0150
0151 #define XCB_XEVIE_SEND 3
0152
0153
0154
0155
0156 typedef struct xcb_xevie_send_request_t {
0157 uint8_t major_opcode;
0158 uint8_t minor_opcode;
0159 uint16_t length;
0160 xcb_xevie_event_t event;
0161 uint32_t data_type;
0162 uint8_t pad0[64];
0163 } xcb_xevie_send_request_t;
0164
0165
0166
0167
0168 typedef struct xcb_xevie_send_reply_t {
0169 uint8_t response_type;
0170 uint8_t pad0;
0171 uint16_t sequence;
0172 uint32_t length;
0173 uint8_t pad1[24];
0174 } xcb_xevie_send_reply_t;
0175
0176
0177
0178
0179 typedef struct xcb_xevie_select_input_cookie_t {
0180 unsigned int sequence;
0181 } xcb_xevie_select_input_cookie_t;
0182
0183
0184 #define XCB_XEVIE_SELECT_INPUT 4
0185
0186
0187
0188
0189 typedef struct xcb_xevie_select_input_request_t {
0190 uint8_t major_opcode;
0191 uint8_t minor_opcode;
0192 uint16_t length;
0193 uint32_t event_mask;
0194 } xcb_xevie_select_input_request_t;
0195
0196
0197
0198
0199 typedef struct xcb_xevie_select_input_reply_t {
0200 uint8_t response_type;
0201 uint8_t pad0;
0202 uint16_t sequence;
0203 uint32_t length;
0204 uint8_t pad1[24];
0205 } xcb_xevie_select_input_reply_t;
0206
0207
0208
0209
0210
0211
0212
0213
0214
0215 xcb_xevie_query_version_cookie_t
0216 xcb_xevie_query_version (xcb_connection_t *c,
0217 uint16_t client_major_version,
0218 uint16_t client_minor_version);
0219
0220
0221
0222
0223
0224
0225
0226
0227
0228
0229
0230
0231 xcb_xevie_query_version_cookie_t
0232 xcb_xevie_query_version_unchecked (xcb_connection_t *c,
0233 uint16_t client_major_version,
0234 uint16_t client_minor_version);
0235
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245
0246
0247
0248
0249
0250 xcb_xevie_query_version_reply_t *
0251 xcb_xevie_query_version_reply (xcb_connection_t *c,
0252 xcb_xevie_query_version_cookie_t cookie ,
0253 xcb_generic_error_t **e);
0254
0255
0256
0257
0258
0259
0260
0261
0262
0263 xcb_xevie_start_cookie_t
0264 xcb_xevie_start (xcb_connection_t *c,
0265 uint32_t screen);
0266
0267
0268
0269
0270
0271
0272
0273
0274
0275
0276
0277
0278 xcb_xevie_start_cookie_t
0279 xcb_xevie_start_unchecked (xcb_connection_t *c,
0280 uint32_t screen);
0281
0282
0283
0284
0285
0286
0287
0288
0289
0290
0291
0292
0293
0294
0295
0296 xcb_xevie_start_reply_t *
0297 xcb_xevie_start_reply (xcb_connection_t *c,
0298 xcb_xevie_start_cookie_t cookie ,
0299 xcb_generic_error_t **e);
0300
0301
0302
0303
0304
0305
0306
0307
0308
0309 xcb_xevie_end_cookie_t
0310 xcb_xevie_end (xcb_connection_t *c,
0311 uint32_t cmap);
0312
0313
0314
0315
0316
0317
0318
0319
0320
0321
0322
0323
0324 xcb_xevie_end_cookie_t
0325 xcb_xevie_end_unchecked (xcb_connection_t *c,
0326 uint32_t cmap);
0327
0328
0329
0330
0331
0332
0333
0334
0335
0336
0337
0338
0339
0340
0341
0342 xcb_xevie_end_reply_t *
0343 xcb_xevie_end_reply (xcb_connection_t *c,
0344 xcb_xevie_end_cookie_t cookie ,
0345 xcb_generic_error_t **e);
0346
0347
0348
0349
0350
0351
0352
0353
0354
0355 void
0356 xcb_xevie_event_next (xcb_xevie_event_iterator_t *i);
0357
0358
0359
0360
0361
0362
0363
0364
0365
0366
0367 xcb_generic_iterator_t
0368 xcb_xevie_event_end (xcb_xevie_event_iterator_t i);
0369
0370
0371
0372
0373
0374
0375
0376
0377
0378 xcb_xevie_send_cookie_t
0379 xcb_xevie_send (xcb_connection_t *c,
0380 xcb_xevie_event_t event,
0381 uint32_t data_type);
0382
0383
0384
0385
0386
0387
0388
0389
0390
0391
0392
0393
0394 xcb_xevie_send_cookie_t
0395 xcb_xevie_send_unchecked (xcb_connection_t *c,
0396 xcb_xevie_event_t event,
0397 uint32_t data_type);
0398
0399
0400
0401
0402
0403
0404
0405
0406
0407
0408
0409
0410
0411
0412
0413 xcb_xevie_send_reply_t *
0414 xcb_xevie_send_reply (xcb_connection_t *c,
0415 xcb_xevie_send_cookie_t cookie ,
0416 xcb_generic_error_t **e);
0417
0418
0419
0420
0421
0422
0423
0424
0425
0426 xcb_xevie_select_input_cookie_t
0427 xcb_xevie_select_input (xcb_connection_t *c,
0428 uint32_t event_mask);
0429
0430
0431
0432
0433
0434
0435
0436
0437
0438
0439
0440
0441 xcb_xevie_select_input_cookie_t
0442 xcb_xevie_select_input_unchecked (xcb_connection_t *c,
0443 uint32_t event_mask);
0444
0445
0446
0447
0448
0449
0450
0451
0452
0453
0454
0455
0456
0457
0458
0459 xcb_xevie_select_input_reply_t *
0460 xcb_xevie_select_input_reply (xcb_connection_t *c,
0461 xcb_xevie_select_input_cookie_t cookie ,
0462 xcb_generic_error_t **e);
0463
0464
0465 #ifdef __cplusplus
0466 }
0467 #endif
0468
0469 #endif
0470
0471
0472
0473