22 #define XCB_SYNC_MAJOR_VERSION 3
23 #define XCB_SYNC_MINOR_VERSION 1
27 typedef uint32_t xcb_sync_alarm_t;
33 xcb_sync_alarm_t *data;
38 typedef enum xcb_sync_alarmstate_t {
39 XCB_SYNC_ALARMSTATE_ACTIVE,
40 XCB_SYNC_ALARMSTATE_INACTIVE,
41 XCB_SYNC_ALARMSTATE_DESTROYED
42 } xcb_sync_alarmstate_t;
44 typedef uint32_t xcb_sync_counter_t;
50 xcb_sync_counter_t *data;
55 typedef uint32_t xcb_sync_fence_t;
61 xcb_sync_fence_t *data;
66 typedef enum xcb_sync_testtype_t {
67 XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION,
68 XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION,
69 XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON,
70 XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON
71 } xcb_sync_testtype_t;
73 typedef enum xcb_sync_valuetype_t {
74 XCB_SYNC_VALUETYPE_ABSOLUTE,
75 XCB_SYNC_VALUETYPE_RELATIVE
76 } xcb_sync_valuetype_t;
78 typedef enum xcb_sync_ca_t {
79 XCB_SYNC_CA_COUNTER = 1,
80 XCB_SYNC_CA_VALUE_TYPE = 2,
81 XCB_SYNC_CA_VALUE = 4,
82 XCB_SYNC_CA_TEST_TYPE = 8,
83 XCB_SYNC_CA_DELTA = 16,
84 XCB_SYNC_CA_EVENTS = 32
108 xcb_sync_counter_t counter;
126 xcb_sync_counter_t counter;
159 #define XCB_SYNC_COUNTER 0
165 uint8_t response_type;
168 uint32_t bad_counter;
169 uint16_t minor_opcode;
170 uint8_t major_opcode;
174 #define XCB_SYNC_ALARM 1
180 uint8_t response_type;
184 uint16_t minor_opcode;
185 uint8_t major_opcode;
192 unsigned int sequence;
196 #define XCB_SYNC_INITIALIZE 0
202 uint8_t major_opcode;
203 uint8_t minor_opcode;
205 uint8_t desired_major_version;
206 uint8_t desired_minor_version;
213 uint8_t response_type;
217 uint8_t major_version;
218 uint8_t minor_version;
226 unsigned int sequence;
230 #define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
236 uint8_t major_opcode;
237 uint8_t minor_opcode;
245 uint8_t response_type;
249 uint32_t counters_len;
254 #define XCB_SYNC_CREATE_COUNTER 2
260 uint8_t major_opcode;
261 uint8_t minor_opcode;
263 xcb_sync_counter_t id;
268 #define XCB_SYNC_DESTROY_COUNTER 6
274 uint8_t major_opcode;
275 uint8_t minor_opcode;
277 xcb_sync_counter_t counter;
284 unsigned int sequence;
288 #define XCB_SYNC_QUERY_COUNTER 5
294 uint8_t major_opcode;
295 uint8_t minor_opcode;
297 xcb_sync_counter_t counter;
304 uint8_t response_type;
312 #define XCB_SYNC_AWAIT 7
318 uint8_t major_opcode;
319 uint8_t minor_opcode;
324 #define XCB_SYNC_CHANGE_COUNTER 4
330 uint8_t major_opcode;
331 uint8_t minor_opcode;
333 xcb_sync_counter_t counter;
338 #define XCB_SYNC_SET_COUNTER 3
344 uint8_t major_opcode;
345 uint8_t minor_opcode;
347 xcb_sync_counter_t counter;
352 #define XCB_SYNC_CREATE_ALARM 8
358 uint8_t major_opcode;
359 uint8_t minor_opcode;
366 #define XCB_SYNC_CHANGE_ALARM 9
372 uint8_t major_opcode;
373 uint8_t minor_opcode;
380 #define XCB_SYNC_DESTROY_ALARM 11
386 uint8_t major_opcode;
387 uint8_t minor_opcode;
389 xcb_sync_alarm_t alarm;
396 unsigned int sequence;
400 #define XCB_SYNC_QUERY_ALARM 10
406 uint8_t major_opcode;
407 uint8_t minor_opcode;
409 xcb_sync_alarm_t alarm;
416 uint8_t response_type;
428 #define XCB_SYNC_SET_PRIORITY 12
434 uint8_t major_opcode;
435 uint8_t minor_opcode;
445 unsigned int sequence;
449 #define XCB_SYNC_GET_PRIORITY 13
455 uint8_t major_opcode;
456 uint8_t minor_opcode;
465 uint8_t response_type;
473 #define XCB_SYNC_CREATE_FENCE 14
479 uint8_t major_opcode;
480 uint8_t minor_opcode;
482 xcb_drawable_t drawable;
483 xcb_sync_fence_t fence;
484 uint8_t initially_triggered;
488 #define XCB_SYNC_TRIGGER_FENCE 15
494 uint8_t major_opcode;
495 uint8_t minor_opcode;
497 xcb_sync_fence_t fence;
501 #define XCB_SYNC_RESET_FENCE 16
507 uint8_t major_opcode;
508 uint8_t minor_opcode;
510 xcb_sync_fence_t fence;
514 #define XCB_SYNC_DESTROY_FENCE 17
520 uint8_t major_opcode;
521 uint8_t minor_opcode;
523 xcb_sync_fence_t fence;
530 unsigned int sequence;
534 #define XCB_SYNC_QUERY_FENCE 18
540 uint8_t major_opcode;
541 uint8_t minor_opcode;
543 xcb_sync_fence_t fence;
550 uint8_t response_type;
559 #define XCB_SYNC_AWAIT_FENCE 19
565 uint8_t major_opcode;
566 uint8_t minor_opcode;
571 #define XCB_SYNC_COUNTER_NOTIFY 0
577 uint8_t response_type;
580 xcb_sync_counter_t counter;
583 xcb_timestamp_t timestamp;
590 #define XCB_SYNC_ALARM_NOTIFY 1
596 uint8_t response_type;
599 xcb_sync_alarm_t alarm;
602 xcb_timestamp_t timestamp;
780 xcb_sync_systemcounter_sizeof (
const void *_buffer );
972 uint8_t desired_major_version ,
973 uint8_t desired_minor_version );
1000 uint8_t desired_major_version ,
1001 uint8_t desired_minor_version );
1035 xcb_sync_list_system_counters_sizeof (
const void *_buffer );
1164 xcb_sync_counter_t
id ,
1189 xcb_sync_counter_t
id ,
1216 xcb_sync_counter_t counter );
1239 xcb_sync_counter_t counter );
1262 xcb_sync_counter_t counter );
1288 xcb_sync_counter_t counter );
1322 xcb_sync_await_sizeof (
const void *_buffer ,
1323 uint32_t wait_list_len );
1350 uint32_t wait_list_len ,
1375 uint32_t wait_list_len ,
1403 xcb_sync_counter_t counter ,
1428 xcb_sync_counter_t counter ,
1456 xcb_sync_counter_t counter ,
1481 xcb_sync_counter_t counter ,
1485 xcb_sync_create_alarm_sizeof (
const void *_buffer );
1513 xcb_sync_alarm_t
id ,
1514 uint32_t value_mask ,
1515 const uint32_t *value_list );
1540 xcb_sync_alarm_t
id ,
1541 uint32_t value_mask ,
1542 const uint32_t *value_list );
1545 xcb_sync_change_alarm_sizeof (
const void *_buffer );
1573 xcb_sync_alarm_t
id ,
1574 uint32_t value_mask ,
1575 const uint32_t *value_list );
1600 xcb_sync_alarm_t
id ,
1601 uint32_t value_mask ,
1602 const uint32_t *value_list );
1628 xcb_sync_alarm_t alarm );
1651 xcb_sync_alarm_t alarm );
1674 xcb_sync_alarm_t alarm );
1700 xcb_sync_alarm_t alarm );
1892 xcb_drawable_t drawable ,
1893 xcb_sync_fence_t fence ,
1894 uint8_t initially_triggered );
1919 xcb_drawable_t drawable ,
1920 xcb_sync_fence_t fence ,
1921 uint8_t initially_triggered );
1947 xcb_sync_fence_t fence );
1970 xcb_sync_fence_t fence );
1996 xcb_sync_fence_t fence );
2019 xcb_sync_fence_t fence );
2045 xcb_sync_fence_t fence );
2068 xcb_sync_fence_t fence );
2091 xcb_sync_fence_t fence );
2117 xcb_sync_fence_t fence );
2151 xcb_sync_await_fence_sizeof (
const void *_buffer ,
2152 uint32_t fence_list_len );
2179 uint32_t fence_list_len ,
2180 const xcb_sync_fence_t *fence_list );
2204 uint32_t fence_list_len ,
2205 const xcb_sync_fence_t *fence_list );