00001
00002
00003
00004
00005
00012 #ifndef __SYNC_H
00013 #define __SYNC_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022 #define XCB_SYNC_MAJOR_VERSION 3
00023 #define XCB_SYNC_MINOR_VERSION 1
00024
00025 extern xcb_extension_t xcb_sync_id;
00026
00027 typedef uint32_t xcb_sync_alarm_t;
00028
00032 typedef struct xcb_sync_alarm_iterator_t {
00033 xcb_sync_alarm_t *data;
00034 int rem;
00035 int index;
00036 } xcb_sync_alarm_iterator_t;
00037
00038 typedef enum xcb_sync_alarmstate_t {
00039 XCB_SYNC_ALARMSTATE_ACTIVE = 0,
00040 XCB_SYNC_ALARMSTATE_INACTIVE = 1,
00041 XCB_SYNC_ALARMSTATE_DESTROYED = 2
00042 } xcb_sync_alarmstate_t;
00043
00044 typedef uint32_t xcb_sync_counter_t;
00045
00049 typedef struct xcb_sync_counter_iterator_t {
00050 xcb_sync_counter_t *data;
00051 int rem;
00052 int index;
00053 } xcb_sync_counter_iterator_t;
00054
00055 typedef uint32_t xcb_sync_fence_t;
00056
00060 typedef struct xcb_sync_fence_iterator_t {
00061 xcb_sync_fence_t *data;
00062 int rem;
00063 int index;
00064 } xcb_sync_fence_iterator_t;
00065
00066 typedef enum xcb_sync_testtype_t {
00067 XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0,
00068 XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1,
00069 XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2,
00070 XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3
00071 } xcb_sync_testtype_t;
00072
00073 typedef enum xcb_sync_valuetype_t {
00074 XCB_SYNC_VALUETYPE_ABSOLUTE = 0,
00075 XCB_SYNC_VALUETYPE_RELATIVE = 1
00076 } xcb_sync_valuetype_t;
00077
00078 typedef enum xcb_sync_ca_t {
00079 XCB_SYNC_CA_COUNTER = 1,
00080 XCB_SYNC_CA_VALUE_TYPE = 2,
00081 XCB_SYNC_CA_VALUE = 4,
00082 XCB_SYNC_CA_TEST_TYPE = 8,
00083 XCB_SYNC_CA_DELTA = 16,
00084 XCB_SYNC_CA_EVENTS = 32
00085 } xcb_sync_ca_t;
00086
00090 typedef struct xcb_sync_int64_t {
00091 int32_t hi;
00092 uint32_t lo;
00093 } xcb_sync_int64_t;
00094
00098 typedef struct xcb_sync_int64_iterator_t {
00099 xcb_sync_int64_t *data;
00100 int rem;
00101 int index;
00102 } xcb_sync_int64_iterator_t;
00103
00107 typedef struct xcb_sync_systemcounter_t {
00108 xcb_sync_counter_t counter;
00109 xcb_sync_int64_t resolution;
00110 uint16_t name_len;
00111 } xcb_sync_systemcounter_t;
00112
00116 typedef struct xcb_sync_systemcounter_iterator_t {
00117 xcb_sync_systemcounter_t *data;
00118 int rem;
00119 int index;
00120 } xcb_sync_systemcounter_iterator_t;
00121
00125 typedef struct xcb_sync_trigger_t {
00126 xcb_sync_counter_t counter;
00127 uint32_t wait_type;
00128 xcb_sync_int64_t wait_value;
00129 uint32_t test_type;
00130 } xcb_sync_trigger_t;
00131
00135 typedef struct xcb_sync_trigger_iterator_t {
00136 xcb_sync_trigger_t *data;
00137 int rem;
00138 int index;
00139 } xcb_sync_trigger_iterator_t;
00140
00144 typedef struct xcb_sync_waitcondition_t {
00145 xcb_sync_trigger_t trigger;
00146 xcb_sync_int64_t event_threshold;
00147 } xcb_sync_waitcondition_t;
00148
00152 typedef struct xcb_sync_waitcondition_iterator_t {
00153 xcb_sync_waitcondition_t *data;
00154 int rem;
00155 int index;
00156 } xcb_sync_waitcondition_iterator_t;
00157
00159 #define XCB_SYNC_COUNTER 0
00160
00164 typedef struct xcb_sync_counter_error_t {
00165 uint8_t response_type;
00166 uint8_t error_code;
00167 uint16_t sequence;
00168 uint32_t bad_counter;
00169 uint16_t minor_opcode;
00170 uint8_t major_opcode;
00171 } xcb_sync_counter_error_t;
00172
00174 #define XCB_SYNC_ALARM 1
00175
00179 typedef struct xcb_sync_alarm_error_t {
00180 uint8_t response_type;
00181 uint8_t error_code;
00182 uint16_t sequence;
00183 uint32_t bad_alarm;
00184 uint16_t minor_opcode;
00185 uint8_t major_opcode;
00186 } xcb_sync_alarm_error_t;
00187
00191 typedef struct xcb_sync_initialize_cookie_t {
00192 unsigned int sequence;
00193 } xcb_sync_initialize_cookie_t;
00194
00196 #define XCB_SYNC_INITIALIZE 0
00197
00201 typedef struct xcb_sync_initialize_request_t {
00202 uint8_t major_opcode;
00203 uint8_t minor_opcode;
00204 uint16_t length;
00205 uint8_t desired_major_version;
00206 uint8_t desired_minor_version;
00207 } xcb_sync_initialize_request_t;
00208
00212 typedef struct xcb_sync_initialize_reply_t {
00213 uint8_t response_type;
00214 uint8_t pad0;
00215 uint16_t sequence;
00216 uint32_t length;
00217 uint8_t major_version;
00218 uint8_t minor_version;
00219 uint8_t pad1[22];
00220 } xcb_sync_initialize_reply_t;
00221
00225 typedef struct xcb_sync_list_system_counters_cookie_t {
00226 unsigned int sequence;
00227 } xcb_sync_list_system_counters_cookie_t;
00228
00230 #define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
00231
00235 typedef struct xcb_sync_list_system_counters_request_t {
00236 uint8_t major_opcode;
00237 uint8_t minor_opcode;
00238 uint16_t length;
00239 } xcb_sync_list_system_counters_request_t;
00240
00244 typedef struct xcb_sync_list_system_counters_reply_t {
00245 uint8_t response_type;
00246 uint8_t pad0;
00247 uint16_t sequence;
00248 uint32_t length;
00249 uint32_t counters_len;
00250 uint8_t pad1[20];
00251 } xcb_sync_list_system_counters_reply_t;
00252
00254 #define XCB_SYNC_CREATE_COUNTER 2
00255
00259 typedef struct xcb_sync_create_counter_request_t {
00260 uint8_t major_opcode;
00261 uint8_t minor_opcode;
00262 uint16_t length;
00263 xcb_sync_counter_t id;
00264 xcb_sync_int64_t initial_value;
00265 } xcb_sync_create_counter_request_t;
00266
00268 #define XCB_SYNC_DESTROY_COUNTER 6
00269
00273 typedef struct xcb_sync_destroy_counter_request_t {
00274 uint8_t major_opcode;
00275 uint8_t minor_opcode;
00276 uint16_t length;
00277 xcb_sync_counter_t counter;
00278 } xcb_sync_destroy_counter_request_t;
00279
00283 typedef struct xcb_sync_query_counter_cookie_t {
00284 unsigned int sequence;
00285 } xcb_sync_query_counter_cookie_t;
00286
00288 #define XCB_SYNC_QUERY_COUNTER 5
00289
00293 typedef struct xcb_sync_query_counter_request_t {
00294 uint8_t major_opcode;
00295 uint8_t minor_opcode;
00296 uint16_t length;
00297 xcb_sync_counter_t counter;
00298 } xcb_sync_query_counter_request_t;
00299
00303 typedef struct xcb_sync_query_counter_reply_t {
00304 uint8_t response_type;
00305 uint8_t pad0;
00306 uint16_t sequence;
00307 uint32_t length;
00308 xcb_sync_int64_t counter_value;
00309 } xcb_sync_query_counter_reply_t;
00310
00312 #define XCB_SYNC_AWAIT 7
00313
00317 typedef struct xcb_sync_await_request_t {
00318 uint8_t major_opcode;
00319 uint8_t minor_opcode;
00320 uint16_t length;
00321 } xcb_sync_await_request_t;
00322
00324 #define XCB_SYNC_CHANGE_COUNTER 4
00325
00329 typedef struct xcb_sync_change_counter_request_t {
00330 uint8_t major_opcode;
00331 uint8_t minor_opcode;
00332 uint16_t length;
00333 xcb_sync_counter_t counter;
00334 xcb_sync_int64_t amount;
00335 } xcb_sync_change_counter_request_t;
00336
00338 #define XCB_SYNC_SET_COUNTER 3
00339
00343 typedef struct xcb_sync_set_counter_request_t {
00344 uint8_t major_opcode;
00345 uint8_t minor_opcode;
00346 uint16_t length;
00347 xcb_sync_counter_t counter;
00348 xcb_sync_int64_t value;
00349 } xcb_sync_set_counter_request_t;
00350
00354 typedef struct xcb_sync_create_alarm_value_list_t {
00355 xcb_sync_counter_t counter;
00356 uint32_t valueType;
00357 xcb_sync_int64_t value;
00358 uint32_t testType;
00359 xcb_sync_int64_t delta;
00360 uint32_t events;
00361 } xcb_sync_create_alarm_value_list_t;
00362
00364 #define XCB_SYNC_CREATE_ALARM 8
00365
00369 typedef struct xcb_sync_create_alarm_request_t {
00370 uint8_t major_opcode;
00371 uint8_t minor_opcode;
00372 uint16_t length;
00373 xcb_sync_alarm_t id;
00374 uint32_t value_mask;
00375 } xcb_sync_create_alarm_request_t;
00376
00380 typedef struct xcb_sync_change_alarm_value_list_t {
00381 xcb_sync_counter_t counter;
00382 uint32_t valueType;
00383 xcb_sync_int64_t value;
00384 uint32_t testType;
00385 xcb_sync_int64_t delta;
00386 uint32_t events;
00387 } xcb_sync_change_alarm_value_list_t;
00388
00390 #define XCB_SYNC_CHANGE_ALARM 9
00391
00395 typedef struct xcb_sync_change_alarm_request_t {
00396 uint8_t major_opcode;
00397 uint8_t minor_opcode;
00398 uint16_t length;
00399 xcb_sync_alarm_t id;
00400 uint32_t value_mask;
00401 } xcb_sync_change_alarm_request_t;
00402
00404 #define XCB_SYNC_DESTROY_ALARM 11
00405
00409 typedef struct xcb_sync_destroy_alarm_request_t {
00410 uint8_t major_opcode;
00411 uint8_t minor_opcode;
00412 uint16_t length;
00413 xcb_sync_alarm_t alarm;
00414 } xcb_sync_destroy_alarm_request_t;
00415
00419 typedef struct xcb_sync_query_alarm_cookie_t {
00420 unsigned int sequence;
00421 } xcb_sync_query_alarm_cookie_t;
00422
00424 #define XCB_SYNC_QUERY_ALARM 10
00425
00429 typedef struct xcb_sync_query_alarm_request_t {
00430 uint8_t major_opcode;
00431 uint8_t minor_opcode;
00432 uint16_t length;
00433 xcb_sync_alarm_t alarm;
00434 } xcb_sync_query_alarm_request_t;
00435
00439 typedef struct xcb_sync_query_alarm_reply_t {
00440 uint8_t response_type;
00441 uint8_t pad0;
00442 uint16_t sequence;
00443 uint32_t length;
00444 xcb_sync_trigger_t trigger;
00445 xcb_sync_int64_t delta;
00446 uint8_t events;
00447 uint8_t state;
00448 uint8_t pad1[2];
00449 } xcb_sync_query_alarm_reply_t;
00450
00452 #define XCB_SYNC_SET_PRIORITY 12
00453
00457 typedef struct xcb_sync_set_priority_request_t {
00458 uint8_t major_opcode;
00459 uint8_t minor_opcode;
00460 uint16_t length;
00461 uint32_t id;
00462 int32_t priority;
00463 } xcb_sync_set_priority_request_t;
00464
00468 typedef struct xcb_sync_get_priority_cookie_t {
00469 unsigned int sequence;
00470 } xcb_sync_get_priority_cookie_t;
00471
00473 #define XCB_SYNC_GET_PRIORITY 13
00474
00478 typedef struct xcb_sync_get_priority_request_t {
00479 uint8_t major_opcode;
00480 uint8_t minor_opcode;
00481 uint16_t length;
00482 uint32_t id;
00483 } xcb_sync_get_priority_request_t;
00484
00488 typedef struct xcb_sync_get_priority_reply_t {
00489 uint8_t response_type;
00490 uint8_t pad0;
00491 uint16_t sequence;
00492 uint32_t length;
00493 int32_t priority;
00494 } xcb_sync_get_priority_reply_t;
00495
00497 #define XCB_SYNC_CREATE_FENCE 14
00498
00502 typedef struct xcb_sync_create_fence_request_t {
00503 uint8_t major_opcode;
00504 uint8_t minor_opcode;
00505 uint16_t length;
00506 xcb_drawable_t drawable;
00507 xcb_sync_fence_t fence;
00508 uint8_t initially_triggered;
00509 } xcb_sync_create_fence_request_t;
00510
00512 #define XCB_SYNC_TRIGGER_FENCE 15
00513
00517 typedef struct xcb_sync_trigger_fence_request_t {
00518 uint8_t major_opcode;
00519 uint8_t minor_opcode;
00520 uint16_t length;
00521 xcb_sync_fence_t fence;
00522 } xcb_sync_trigger_fence_request_t;
00523
00525 #define XCB_SYNC_RESET_FENCE 16
00526
00530 typedef struct xcb_sync_reset_fence_request_t {
00531 uint8_t major_opcode;
00532 uint8_t minor_opcode;
00533 uint16_t length;
00534 xcb_sync_fence_t fence;
00535 } xcb_sync_reset_fence_request_t;
00536
00538 #define XCB_SYNC_DESTROY_FENCE 17
00539
00543 typedef struct xcb_sync_destroy_fence_request_t {
00544 uint8_t major_opcode;
00545 uint8_t minor_opcode;
00546 uint16_t length;
00547 xcb_sync_fence_t fence;
00548 } xcb_sync_destroy_fence_request_t;
00549
00553 typedef struct xcb_sync_query_fence_cookie_t {
00554 unsigned int sequence;
00555 } xcb_sync_query_fence_cookie_t;
00556
00558 #define XCB_SYNC_QUERY_FENCE 18
00559
00563 typedef struct xcb_sync_query_fence_request_t {
00564 uint8_t major_opcode;
00565 uint8_t minor_opcode;
00566 uint16_t length;
00567 xcb_sync_fence_t fence;
00568 } xcb_sync_query_fence_request_t;
00569
00573 typedef struct xcb_sync_query_fence_reply_t {
00574 uint8_t response_type;
00575 uint8_t pad0;
00576 uint16_t sequence;
00577 uint32_t length;
00578 uint8_t triggered;
00579 uint8_t pad1[23];
00580 } xcb_sync_query_fence_reply_t;
00581
00583 #define XCB_SYNC_AWAIT_FENCE 19
00584
00588 typedef struct xcb_sync_await_fence_request_t {
00589 uint8_t major_opcode;
00590 uint8_t minor_opcode;
00591 uint16_t length;
00592 } xcb_sync_await_fence_request_t;
00593
00595 #define XCB_SYNC_COUNTER_NOTIFY 0
00596
00600 typedef struct xcb_sync_counter_notify_event_t {
00601 uint8_t response_type;
00602 uint8_t kind;
00603 uint16_t sequence;
00604 xcb_sync_counter_t counter;
00605 xcb_sync_int64_t wait_value;
00606 xcb_sync_int64_t counter_value;
00607 xcb_timestamp_t timestamp;
00608 uint16_t count;
00609 uint8_t destroyed;
00610 uint8_t pad0;
00611 } xcb_sync_counter_notify_event_t;
00612
00614 #define XCB_SYNC_ALARM_NOTIFY 1
00615
00619 typedef struct xcb_sync_alarm_notify_event_t {
00620 uint8_t response_type;
00621 uint8_t kind;
00622 uint16_t sequence;
00623 xcb_sync_alarm_t alarm;
00624 xcb_sync_int64_t counter_value;
00625 xcb_sync_int64_t alarm_value;
00626 xcb_timestamp_t timestamp;
00627 uint8_t state;
00628 uint8_t pad0[3];
00629 } xcb_sync_alarm_notify_event_t;
00630
00639 void
00640 xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i);
00641
00651 xcb_generic_iterator_t
00652 xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i);
00653
00662 void
00663 xcb_sync_counter_next (xcb_sync_counter_iterator_t *i);
00664
00674 xcb_generic_iterator_t
00675 xcb_sync_counter_end (xcb_sync_counter_iterator_t i);
00676
00685 void
00686 xcb_sync_fence_next (xcb_sync_fence_iterator_t *i);
00687
00697 xcb_generic_iterator_t
00698 xcb_sync_fence_end (xcb_sync_fence_iterator_t i);
00699
00708 void
00709 xcb_sync_int64_next (xcb_sync_int64_iterator_t *i);
00710
00720 xcb_generic_iterator_t
00721 xcb_sync_int64_end (xcb_sync_int64_iterator_t i);
00722
00723 int
00724 xcb_sync_systemcounter_sizeof (const void *_buffer);
00725
00726 char *
00727 xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R);
00728
00729 int
00730 xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R);
00731
00732 xcb_generic_iterator_t
00733 xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R);
00734
00743 void
00744 xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i);
00745
00755 xcb_generic_iterator_t
00756 xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i);
00757
00766 void
00767 xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i);
00768
00778 xcb_generic_iterator_t
00779 xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i);
00780
00789 void
00790 xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i);
00791
00801 xcb_generic_iterator_t
00802 xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i);
00803
00812 xcb_sync_initialize_cookie_t
00813 xcb_sync_initialize (xcb_connection_t *c,
00814 uint8_t desired_major_version,
00815 uint8_t desired_minor_version);
00816
00828 xcb_sync_initialize_cookie_t
00829 xcb_sync_initialize_unchecked (xcb_connection_t *c,
00830 uint8_t desired_major_version,
00831 uint8_t desired_minor_version);
00832
00847 xcb_sync_initialize_reply_t *
00848 xcb_sync_initialize_reply (xcb_connection_t *c,
00849 xcb_sync_initialize_cookie_t cookie ,
00850 xcb_generic_error_t **e);
00851
00852 int
00853 xcb_sync_list_system_counters_sizeof (const void *_buffer);
00854
00863 xcb_sync_list_system_counters_cookie_t
00864 xcb_sync_list_system_counters (xcb_connection_t *c);
00865
00877 xcb_sync_list_system_counters_cookie_t
00878 xcb_sync_list_system_counters_unchecked (xcb_connection_t *c);
00879
00880 int
00881 xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R);
00882
00883 xcb_sync_systemcounter_iterator_t
00884 xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R);
00885
00900 xcb_sync_list_system_counters_reply_t *
00901 xcb_sync_list_system_counters_reply (xcb_connection_t *c,
00902 xcb_sync_list_system_counters_cookie_t cookie ,
00903 xcb_generic_error_t **e);
00904
00916 xcb_void_cookie_t
00917 xcb_sync_create_counter_checked (xcb_connection_t *c,
00918 xcb_sync_counter_t id,
00919 xcb_sync_int64_t initial_value);
00920
00929 xcb_void_cookie_t
00930 xcb_sync_create_counter (xcb_connection_t *c,
00931 xcb_sync_counter_t id,
00932 xcb_sync_int64_t initial_value);
00933
00945 xcb_void_cookie_t
00946 xcb_sync_destroy_counter_checked (xcb_connection_t *c,
00947 xcb_sync_counter_t counter);
00948
00957 xcb_void_cookie_t
00958 xcb_sync_destroy_counter (xcb_connection_t *c,
00959 xcb_sync_counter_t counter);
00960
00969 xcb_sync_query_counter_cookie_t
00970 xcb_sync_query_counter (xcb_connection_t *c,
00971 xcb_sync_counter_t counter);
00972
00984 xcb_sync_query_counter_cookie_t
00985 xcb_sync_query_counter_unchecked (xcb_connection_t *c,
00986 xcb_sync_counter_t counter);
00987
01002 xcb_sync_query_counter_reply_t *
01003 xcb_sync_query_counter_reply (xcb_connection_t *c,
01004 xcb_sync_query_counter_cookie_t cookie ,
01005 xcb_generic_error_t **e);
01006
01007 int
01008 xcb_sync_await_sizeof (const void *_buffer,
01009 uint32_t wait_list_len);
01010
01022 xcb_void_cookie_t
01023 xcb_sync_await_checked (xcb_connection_t *c,
01024 uint32_t wait_list_len,
01025 const xcb_sync_waitcondition_t *wait_list);
01026
01035 xcb_void_cookie_t
01036 xcb_sync_await (xcb_connection_t *c,
01037 uint32_t wait_list_len,
01038 const xcb_sync_waitcondition_t *wait_list);
01039
01040 xcb_sync_waitcondition_t *
01041 xcb_sync_await_wait_list (const xcb_sync_await_request_t *R);
01042
01043 int
01044 xcb_sync_await_wait_list_length (const xcb_sync_await_request_t *R);
01045
01046 xcb_sync_waitcondition_iterator_t
01047 xcb_sync_await_wait_list_iterator (const xcb_sync_await_request_t *R);
01048
01060 xcb_void_cookie_t
01061 xcb_sync_change_counter_checked (xcb_connection_t *c,
01062 xcb_sync_counter_t counter,
01063 xcb_sync_int64_t amount);
01064
01073 xcb_void_cookie_t
01074 xcb_sync_change_counter (xcb_connection_t *c,
01075 xcb_sync_counter_t counter,
01076 xcb_sync_int64_t amount);
01077
01089 xcb_void_cookie_t
01090 xcb_sync_set_counter_checked (xcb_connection_t *c,
01091 xcb_sync_counter_t counter,
01092 xcb_sync_int64_t value);
01093
01102 xcb_void_cookie_t
01103 xcb_sync_set_counter (xcb_connection_t *c,
01104 xcb_sync_counter_t counter,
01105 xcb_sync_int64_t value);
01106
01107 int
01108 xcb_sync_create_alarm_value_list_serialize (void **_buffer,
01109 uint32_t value_mask,
01110 const xcb_sync_create_alarm_value_list_t *_aux);
01111
01112 int
01113 xcb_sync_create_alarm_value_list_unpack (const void *_buffer,
01114 uint32_t value_mask,
01115 xcb_sync_create_alarm_value_list_t *_aux);
01116
01117 int
01118 xcb_sync_create_alarm_value_list_sizeof (const void *_buffer,
01119 uint32_t value_mask);
01120
01121 int
01122 xcb_sync_create_alarm_sizeof (const void *_buffer);
01123
01135 xcb_void_cookie_t
01136 xcb_sync_create_alarm_checked (xcb_connection_t *c,
01137 xcb_sync_alarm_t id,
01138 uint32_t value_mask,
01139 const void *value_list);
01140
01149 xcb_void_cookie_t
01150 xcb_sync_create_alarm (xcb_connection_t *c,
01151 xcb_sync_alarm_t id,
01152 uint32_t value_mask,
01153 const void *value_list);
01154
01166 xcb_void_cookie_t
01167 xcb_sync_create_alarm_aux_checked (xcb_connection_t *c,
01168 xcb_sync_alarm_t id,
01169 uint32_t value_mask,
01170 const xcb_sync_create_alarm_value_list_t *value_list);
01171
01180 xcb_void_cookie_t
01181 xcb_sync_create_alarm_aux (xcb_connection_t *c,
01182 xcb_sync_alarm_t id,
01183 uint32_t value_mask,
01184 const xcb_sync_create_alarm_value_list_t *value_list);
01185
01186 void *
01187 xcb_sync_create_alarm_value_list (const xcb_sync_create_alarm_request_t *R);
01188
01189 int
01190 xcb_sync_change_alarm_value_list_serialize (void **_buffer,
01191 uint32_t value_mask,
01192 const xcb_sync_change_alarm_value_list_t *_aux);
01193
01194 int
01195 xcb_sync_change_alarm_value_list_unpack (const void *_buffer,
01196 uint32_t value_mask,
01197 xcb_sync_change_alarm_value_list_t *_aux);
01198
01199 int
01200 xcb_sync_change_alarm_value_list_sizeof (const void *_buffer,
01201 uint32_t value_mask);
01202
01203 int
01204 xcb_sync_change_alarm_sizeof (const void *_buffer);
01205
01217 xcb_void_cookie_t
01218 xcb_sync_change_alarm_checked (xcb_connection_t *c,
01219 xcb_sync_alarm_t id,
01220 uint32_t value_mask,
01221 const void *value_list);
01222
01231 xcb_void_cookie_t
01232 xcb_sync_change_alarm (xcb_connection_t *c,
01233 xcb_sync_alarm_t id,
01234 uint32_t value_mask,
01235 const void *value_list);
01236
01248 xcb_void_cookie_t
01249 xcb_sync_change_alarm_aux_checked (xcb_connection_t *c,
01250 xcb_sync_alarm_t id,
01251 uint32_t value_mask,
01252 const xcb_sync_change_alarm_value_list_t *value_list);
01253
01262 xcb_void_cookie_t
01263 xcb_sync_change_alarm_aux (xcb_connection_t *c,
01264 xcb_sync_alarm_t id,
01265 uint32_t value_mask,
01266 const xcb_sync_change_alarm_value_list_t *value_list);
01267
01268 void *
01269 xcb_sync_change_alarm_value_list (const xcb_sync_change_alarm_request_t *R);
01270
01282 xcb_void_cookie_t
01283 xcb_sync_destroy_alarm_checked (xcb_connection_t *c,
01284 xcb_sync_alarm_t alarm);
01285
01294 xcb_void_cookie_t
01295 xcb_sync_destroy_alarm (xcb_connection_t *c,
01296 xcb_sync_alarm_t alarm);
01297
01306 xcb_sync_query_alarm_cookie_t
01307 xcb_sync_query_alarm (xcb_connection_t *c,
01308 xcb_sync_alarm_t alarm);
01309
01321 xcb_sync_query_alarm_cookie_t
01322 xcb_sync_query_alarm_unchecked (xcb_connection_t *c,
01323 xcb_sync_alarm_t alarm);
01324
01339 xcb_sync_query_alarm_reply_t *
01340 xcb_sync_query_alarm_reply (xcb_connection_t *c,
01341 xcb_sync_query_alarm_cookie_t cookie ,
01342 xcb_generic_error_t **e);
01343
01355 xcb_void_cookie_t
01356 xcb_sync_set_priority_checked (xcb_connection_t *c,
01357 uint32_t id,
01358 int32_t priority);
01359
01368 xcb_void_cookie_t
01369 xcb_sync_set_priority (xcb_connection_t *c,
01370 uint32_t id,
01371 int32_t priority);
01372
01381 xcb_sync_get_priority_cookie_t
01382 xcb_sync_get_priority (xcb_connection_t *c,
01383 uint32_t id);
01384
01396 xcb_sync_get_priority_cookie_t
01397 xcb_sync_get_priority_unchecked (xcb_connection_t *c,
01398 uint32_t id);
01399
01414 xcb_sync_get_priority_reply_t *
01415 xcb_sync_get_priority_reply (xcb_connection_t *c,
01416 xcb_sync_get_priority_cookie_t cookie ,
01417 xcb_generic_error_t **e);
01418
01430 xcb_void_cookie_t
01431 xcb_sync_create_fence_checked (xcb_connection_t *c,
01432 xcb_drawable_t drawable,
01433 xcb_sync_fence_t fence,
01434 uint8_t initially_triggered);
01435
01444 xcb_void_cookie_t
01445 xcb_sync_create_fence (xcb_connection_t *c,
01446 xcb_drawable_t drawable,
01447 xcb_sync_fence_t fence,
01448 uint8_t initially_triggered);
01449
01461 xcb_void_cookie_t
01462 xcb_sync_trigger_fence_checked (xcb_connection_t *c,
01463 xcb_sync_fence_t fence);
01464
01473 xcb_void_cookie_t
01474 xcb_sync_trigger_fence (xcb_connection_t *c,
01475 xcb_sync_fence_t fence);
01476
01488 xcb_void_cookie_t
01489 xcb_sync_reset_fence_checked (xcb_connection_t *c,
01490 xcb_sync_fence_t fence);
01491
01500 xcb_void_cookie_t
01501 xcb_sync_reset_fence (xcb_connection_t *c,
01502 xcb_sync_fence_t fence);
01503
01515 xcb_void_cookie_t
01516 xcb_sync_destroy_fence_checked (xcb_connection_t *c,
01517 xcb_sync_fence_t fence);
01518
01527 xcb_void_cookie_t
01528 xcb_sync_destroy_fence (xcb_connection_t *c,
01529 xcb_sync_fence_t fence);
01530
01539 xcb_sync_query_fence_cookie_t
01540 xcb_sync_query_fence (xcb_connection_t *c,
01541 xcb_sync_fence_t fence);
01542
01554 xcb_sync_query_fence_cookie_t
01555 xcb_sync_query_fence_unchecked (xcb_connection_t *c,
01556 xcb_sync_fence_t fence);
01557
01572 xcb_sync_query_fence_reply_t *
01573 xcb_sync_query_fence_reply (xcb_connection_t *c,
01574 xcb_sync_query_fence_cookie_t cookie ,
01575 xcb_generic_error_t **e);
01576
01577 int
01578 xcb_sync_await_fence_sizeof (const void *_buffer,
01579 uint32_t fence_list_len);
01580
01592 xcb_void_cookie_t
01593 xcb_sync_await_fence_checked (xcb_connection_t *c,
01594 uint32_t fence_list_len,
01595 const xcb_sync_fence_t *fence_list);
01596
01605 xcb_void_cookie_t
01606 xcb_sync_await_fence (xcb_connection_t *c,
01607 uint32_t fence_list_len,
01608 const xcb_sync_fence_t *fence_list);
01609
01610 xcb_sync_fence_t *
01611 xcb_sync_await_fence_fence_list (const xcb_sync_await_fence_request_t *R);
01612
01613 int
01614 xcb_sync_await_fence_fence_list_length (const xcb_sync_await_fence_request_t *R);
01615
01616 xcb_generic_iterator_t
01617 xcb_sync_await_fence_fence_list_end (const xcb_sync_await_fence_request_t *R);
01618
01619
01620 #ifdef __cplusplus
01621 }
01622 #endif
01623
01624 #endif
01625