| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | #ifndef __XEVIE_H |
| 13 | #define __XEVIE_H |
| 14 | |
| 15 | #include "xcb.h" |
| 16 | |
| 17 | #ifdef __cplusplus |
| 18 | extern "C" { |
| 19 | #endif |
| 20 | |
| 21 | #define XCB_XEVIE_MAJOR_VERSION 1 |
| 22 | #define XCB_XEVIE_MINOR_VERSION 0 |
| 23 | |
| 24 | extern xcb_extension_t xcb_xevie_id; |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | typedef struct xcb_xevie_query_version_cookie_t { |
| 30 | unsigned int sequence; |
| 31 | } xcb_xevie_query_version_cookie_t; |
| 32 | |
| 33 | |
| 34 | #define XCB_XEVIE_QUERY_VERSION 0 |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | typedef struct xcb_xevie_query_version_request_t { |
| 40 | uint8_t major_opcode; |
| 41 | uint8_t minor_opcode; |
| 42 | uint16_t length; |
| 43 | uint16_t client_major_version; |
| 44 | uint16_t client_minor_version; |
| 45 | } xcb_xevie_query_version_request_t; |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | typedef struct xcb_xevie_query_version_reply_t { |
| 51 | uint8_t response_type; |
| 52 | uint8_t pad0; |
| 53 | uint16_t sequence; |
| 54 | uint32_t length; |
| 55 | uint16_t server_major_version; |
| 56 | uint16_t server_minor_version; |
| 57 | uint8_t pad1[20]; |
| 58 | } xcb_xevie_query_version_reply_t; |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | typedef struct xcb_xevie_start_cookie_t { |
| 64 | unsigned int sequence; |
| 65 | } xcb_xevie_start_cookie_t; |
| 66 | |
| 67 | |
| 68 | #define XCB_XEVIE_START 1 |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | typedef struct xcb_xevie_start_request_t { |
| 74 | uint8_t major_opcode; |
| 75 | uint8_t minor_opcode; |
| 76 | uint16_t length; |
| 77 | uint32_t screen; |
| 78 | } xcb_xevie_start_request_t; |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | typedef struct xcb_xevie_start_reply_t { |
| 84 | uint8_t response_type; |
| 85 | uint8_t pad0; |
| 86 | uint16_t sequence; |
| 87 | uint32_t length; |
| 88 | uint8_t pad1[24]; |
| 89 | } xcb_xevie_start_reply_t; |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | typedef struct xcb_xevie_end_cookie_t { |
| 95 | unsigned int sequence; |
| 96 | } xcb_xevie_end_cookie_t; |
| 97 | |
| 98 | |
| 99 | #define XCB_XEVIE_END 2 |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | typedef struct xcb_xevie_end_request_t { |
| 105 | uint8_t major_opcode; |
| 106 | uint8_t minor_opcode; |
| 107 | uint16_t length; |
| 108 | uint32_t cmap; |
| 109 | } xcb_xevie_end_request_t; |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | typedef struct xcb_xevie_end_reply_t { |
| 115 | uint8_t response_type; |
| 116 | uint8_t pad0; |
| 117 | uint16_t sequence; |
| 118 | uint32_t length; |
| 119 | uint8_t pad1[24]; |
| 120 | } xcb_xevie_end_reply_t; |
| 121 | |
| 122 | typedef enum xcb_xevie_datatype_t { |
| 123 | XCB_XEVIE_DATATYPE_UNMODIFIED = 0, |
| 124 | XCB_XEVIE_DATATYPE_MODIFIED = 1 |
| 125 | } xcb_xevie_datatype_t; |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | typedef struct xcb_xevie_event_t { |
| 131 | uint8_t pad0[32]; |
| 132 | } xcb_xevie_event_t; |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | typedef struct xcb_xevie_event_iterator_t { |
| 138 | xcb_xevie_event_t *data; |
| 139 | int rem; |
| 140 | int index; |
| 141 | } xcb_xevie_event_iterator_t; |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | typedef struct xcb_xevie_send_cookie_t { |
| 147 | unsigned int sequence; |
| 148 | } xcb_xevie_send_cookie_t; |
| 149 | |
| 150 | |
| 151 | #define XCB_XEVIE_SEND 3 |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 | typedef struct xcb_xevie_send_request_t { |
| 157 | uint8_t major_opcode; |
| 158 | uint8_t minor_opcode; |
| 159 | uint16_t length; |
| 160 | xcb_xevie_event_t event; |
| 161 | uint32_t data_type; |
| 162 | uint8_t pad0[64]; |
| 163 | } xcb_xevie_send_request_t; |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | typedef struct xcb_xevie_send_reply_t { |
| 169 | uint8_t response_type; |
| 170 | uint8_t pad0; |
| 171 | uint16_t sequence; |
| 172 | uint32_t length; |
| 173 | uint8_t pad1[24]; |
| 174 | } xcb_xevie_send_reply_t; |
| 175 | |
| 176 | |
| 177 | |
| 178 | |
| 179 | typedef struct xcb_xevie_select_input_cookie_t { |
| 180 | unsigned int sequence; |
| 181 | } xcb_xevie_select_input_cookie_t; |
| 182 | |
| 183 | |
| 184 | #define XCB_XEVIE_SELECT_INPUT 4 |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | typedef struct xcb_xevie_select_input_request_t { |
| 190 | uint8_t major_opcode; |
| 191 | uint8_t minor_opcode; |
| 192 | uint16_t length; |
| 193 | uint32_t event_mask; |
| 194 | } xcb_xevie_select_input_request_t; |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 | typedef struct xcb_xevie_select_input_reply_t { |
| 200 | uint8_t response_type; |
| 201 | uint8_t pad0; |
| 202 | uint16_t sequence; |
| 203 | uint32_t length; |
| 204 | uint8_t pad1[24]; |
| 205 | } xcb_xevie_select_input_reply_t; |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | xcb_xevie_query_version_cookie_t |
| 216 | xcb_xevie_query_version (xcb_connection_t *c, |
| 217 | uint16_t client_major_version, |
| 218 | uint16_t client_minor_version); |
| 219 | |
| 220 | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | xcb_xevie_query_version_cookie_t |
| 232 | xcb_xevie_query_version_unchecked (xcb_connection_t *c, |
| 233 | uint16_t client_major_version, |
| 234 | uint16_t client_minor_version); |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | xcb_xevie_query_version_reply_t * |
| 251 | xcb_xevie_query_version_reply (xcb_connection_t *c, |
| 252 | xcb_xevie_query_version_cookie_t cookie , |
| 253 | xcb_generic_error_t **e); |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | xcb_xevie_start_cookie_t |
| 264 | xcb_xevie_start (xcb_connection_t *c, |
| 265 | uint32_t screen); |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | xcb_xevie_start_cookie_t |
| 279 | xcb_xevie_start_unchecked (xcb_connection_t *c, |
| 280 | uint32_t screen); |
| 281 | |
| 282 | |
| 283 | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 | |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | xcb_xevie_start_reply_t * |
| 297 | xcb_xevie_start_reply (xcb_connection_t *c, |
| 298 | xcb_xevie_start_cookie_t cookie , |
| 299 | xcb_generic_error_t **e); |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | xcb_xevie_end_cookie_t |
| 310 | xcb_xevie_end (xcb_connection_t *c, |
| 311 | uint32_t cmap); |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | xcb_xevie_end_cookie_t |
| 325 | xcb_xevie_end_unchecked (xcb_connection_t *c, |
| 326 | uint32_t cmap); |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | |
| 333 | |
| 334 | |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 | |
| 341 | |
| 342 | xcb_xevie_end_reply_t * |
| 343 | xcb_xevie_end_reply (xcb_connection_t *c, |
| 344 | xcb_xevie_end_cookie_t cookie , |
| 345 | xcb_generic_error_t **e); |
| 346 | |
| 347 | |
| 348 | |
| 349 | |
| 350 | |
| 351 | |
| 352 | |
| 353 | |
| 354 | |
| 355 | void |
| 356 | xcb_xevie_event_next (xcb_xevie_event_iterator_t *i); |
| 357 | |
| 358 | |
| 359 | |
| 360 | |
| 361 | |
| 362 | |
| 363 | |
| 364 | |
| 365 | |
| 366 | |
| 367 | xcb_generic_iterator_t |
| 368 | xcb_xevie_event_end (xcb_xevie_event_iterator_t i); |
| 369 | |
| 370 | |
| 371 | |
| 372 | |
| 373 | |
| 374 | |
| 375 | |
| 376 | |
| 377 | |
| 378 | xcb_xevie_send_cookie_t |
| 379 | xcb_xevie_send (xcb_connection_t *c, |
| 380 | xcb_xevie_event_t event, |
| 381 | uint32_t data_type); |
| 382 | |
| 383 | |
| 384 | |
| 385 | |
| 386 | |
| 387 | |
| 388 | |
| 389 | |
| 390 | |
| 391 | |
| 392 | |
| 393 | |
| 394 | xcb_xevie_send_cookie_t |
| 395 | xcb_xevie_send_unchecked (xcb_connection_t *c, |
| 396 | xcb_xevie_event_t event, |
| 397 | uint32_t data_type); |
| 398 | |
| 399 | |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | |
| 409 | |
| 410 | |
| 411 | |
| 412 | |
| 413 | xcb_xevie_send_reply_t * |
| 414 | xcb_xevie_send_reply (xcb_connection_t *c, |
| 415 | xcb_xevie_send_cookie_t cookie , |
| 416 | xcb_generic_error_t **e); |
| 417 | |
| 418 | |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | xcb_xevie_select_input_cookie_t |
| 427 | xcb_xevie_select_input (xcb_connection_t *c, |
| 428 | uint32_t event_mask); |
| 429 | |
| 430 | |
| 431 | |
| 432 | |
| 433 | |
| 434 | |
| 435 | |
| 436 | |
| 437 | |
| 438 | |
| 439 | |
| 440 | |
| 441 | xcb_xevie_select_input_cookie_t |
| 442 | xcb_xevie_select_input_unchecked (xcb_connection_t *c, |
| 443 | uint32_t event_mask); |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | |
| 449 | |
| 450 | |
| 451 | |
| 452 | |
| 453 | |
| 454 | |
| 455 | |
| 456 | |
| 457 | |
| 458 | |
| 459 | xcb_xevie_select_input_reply_t * |
| 460 | xcb_xevie_select_input_reply (xcb_connection_t *c, |
| 461 | xcb_xevie_select_input_cookie_t cookie , |
| 462 | xcb_generic_error_t **e); |
| 463 | |
| 464 | |
| 465 | #ifdef __cplusplus |
| 466 | } |
| 467 | #endif |
| 468 | |
| 469 | #endif |
| 470 | |
| 471 | |
| 472 | |
| 473 | |