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
01051 xcb_void_cookie_t
01052 xcb_sync_change_counter_checked (xcb_connection_t *c ,
01053 xcb_sync_counter_t counter ,
01054 xcb_sync_int64_t amount );
01055
01064 xcb_void_cookie_t
01065 xcb_sync_change_counter (xcb_connection_t *c ,
01066 xcb_sync_counter_t counter ,
01067 xcb_sync_int64_t amount );
01068
01080 xcb_void_cookie_t
01081 xcb_sync_set_counter_checked (xcb_connection_t *c ,
01082 xcb_sync_counter_t counter ,
01083 xcb_sync_int64_t value );
01084
01093 xcb_void_cookie_t
01094 xcb_sync_set_counter (xcb_connection_t *c ,
01095 xcb_sync_counter_t counter ,
01096 xcb_sync_int64_t value );
01097
01098 int
01099 xcb_sync_create_alarm_value_list_serialize (void **_buffer ,
01100 uint32_t value_mask ,
01101 const xcb_sync_create_alarm_value_list_t *_aux );
01102
01103 int
01104 xcb_sync_create_alarm_value_list_unpack (const void *_buffer ,
01105 uint32_t value_mask ,
01106 xcb_sync_create_alarm_value_list_t *_aux );
01107
01108 int
01109 xcb_sync_create_alarm_value_list_sizeof (const void *_buffer ,
01110 uint32_t value_mask );
01111
01123 xcb_void_cookie_t
01124 xcb_sync_create_alarm_checked (xcb_connection_t *c ,
01125 xcb_sync_alarm_t id ,
01126 uint32_t value_mask ,
01127 const void *value_list );
01128
01137 xcb_void_cookie_t
01138 xcb_sync_create_alarm (xcb_connection_t *c ,
01139 xcb_sync_alarm_t id ,
01140 uint32_t value_mask ,
01141 const void *value_list );
01142
01154 xcb_void_cookie_t
01155 xcb_sync_create_alarm_aux_checked (xcb_connection_t *c ,
01156 xcb_sync_alarm_t id ,
01157 uint32_t value_mask ,
01158 const xcb_sync_create_alarm_value_list_t *value_list );
01159
01168 xcb_void_cookie_t
01169 xcb_sync_create_alarm_aux (xcb_connection_t *c ,
01170 xcb_sync_alarm_t id ,
01171 uint32_t value_mask ,
01172 const xcb_sync_create_alarm_value_list_t *value_list );
01173
01174 int
01175 xcb_sync_change_alarm_value_list_serialize (void **_buffer ,
01176 uint32_t value_mask ,
01177 const xcb_sync_change_alarm_value_list_t *_aux );
01178
01179 int
01180 xcb_sync_change_alarm_value_list_unpack (const void *_buffer ,
01181 uint32_t value_mask ,
01182 xcb_sync_change_alarm_value_list_t *_aux );
01183
01184 int
01185 xcb_sync_change_alarm_value_list_sizeof (const void *_buffer ,
01186 uint32_t value_mask );
01187
01199 xcb_void_cookie_t
01200 xcb_sync_change_alarm_checked (xcb_connection_t *c ,
01201 xcb_sync_alarm_t id ,
01202 uint32_t value_mask ,
01203 const void *value_list );
01204
01213 xcb_void_cookie_t
01214 xcb_sync_change_alarm (xcb_connection_t *c ,
01215 xcb_sync_alarm_t id ,
01216 uint32_t value_mask ,
01217 const void *value_list );
01218
01230 xcb_void_cookie_t
01231 xcb_sync_change_alarm_aux_checked (xcb_connection_t *c ,
01232 xcb_sync_alarm_t id ,
01233 uint32_t value_mask ,
01234 const xcb_sync_change_alarm_value_list_t *value_list );
01235
01244 xcb_void_cookie_t
01245 xcb_sync_change_alarm_aux (xcb_connection_t *c ,
01246 xcb_sync_alarm_t id ,
01247 uint32_t value_mask ,
01248 const xcb_sync_change_alarm_value_list_t *value_list );
01249
01261 xcb_void_cookie_t
01262 xcb_sync_destroy_alarm_checked (xcb_connection_t *c ,
01263 xcb_sync_alarm_t alarm );
01264
01273 xcb_void_cookie_t
01274 xcb_sync_destroy_alarm (xcb_connection_t *c ,
01275 xcb_sync_alarm_t alarm );
01276
01285 xcb_sync_query_alarm_cookie_t
01286 xcb_sync_query_alarm (xcb_connection_t *c ,
01287 xcb_sync_alarm_t alarm );
01288
01300 xcb_sync_query_alarm_cookie_t
01301 xcb_sync_query_alarm_unchecked (xcb_connection_t *c ,
01302 xcb_sync_alarm_t alarm );
01303
01318 xcb_sync_query_alarm_reply_t *
01319 xcb_sync_query_alarm_reply (xcb_connection_t *c ,
01320 xcb_sync_query_alarm_cookie_t cookie ,
01321 xcb_generic_error_t **e );
01322
01334 xcb_void_cookie_t
01335 xcb_sync_set_priority_checked (xcb_connection_t *c ,
01336 uint32_t id ,
01337 int32_t priority );
01338
01347 xcb_void_cookie_t
01348 xcb_sync_set_priority (xcb_connection_t *c ,
01349 uint32_t id ,
01350 int32_t priority );
01351
01360 xcb_sync_get_priority_cookie_t
01361 xcb_sync_get_priority (xcb_connection_t *c ,
01362 uint32_t id );
01363
01375 xcb_sync_get_priority_cookie_t
01376 xcb_sync_get_priority_unchecked (xcb_connection_t *c ,
01377 uint32_t id );
01378
01393 xcb_sync_get_priority_reply_t *
01394 xcb_sync_get_priority_reply (xcb_connection_t *c ,
01395 xcb_sync_get_priority_cookie_t cookie ,
01396 xcb_generic_error_t **e );
01397
01409 xcb_void_cookie_t
01410 xcb_sync_create_fence_checked (xcb_connection_t *c ,
01411 xcb_drawable_t drawable ,
01412 xcb_sync_fence_t fence ,
01413 uint8_t initially_triggered );
01414
01423 xcb_void_cookie_t
01424 xcb_sync_create_fence (xcb_connection_t *c ,
01425 xcb_drawable_t drawable ,
01426 xcb_sync_fence_t fence ,
01427 uint8_t initially_triggered );
01428
01440 xcb_void_cookie_t
01441 xcb_sync_trigger_fence_checked (xcb_connection_t *c ,
01442 xcb_sync_fence_t fence );
01443
01452 xcb_void_cookie_t
01453 xcb_sync_trigger_fence (xcb_connection_t *c ,
01454 xcb_sync_fence_t fence );
01455
01467 xcb_void_cookie_t
01468 xcb_sync_reset_fence_checked (xcb_connection_t *c ,
01469 xcb_sync_fence_t fence );
01470
01479 xcb_void_cookie_t
01480 xcb_sync_reset_fence (xcb_connection_t *c ,
01481 xcb_sync_fence_t fence );
01482
01494 xcb_void_cookie_t
01495 xcb_sync_destroy_fence_checked (xcb_connection_t *c ,
01496 xcb_sync_fence_t fence );
01497
01506 xcb_void_cookie_t
01507 xcb_sync_destroy_fence (xcb_connection_t *c ,
01508 xcb_sync_fence_t fence );
01509
01518 xcb_sync_query_fence_cookie_t
01519 xcb_sync_query_fence (xcb_connection_t *c ,
01520 xcb_sync_fence_t fence );
01521
01533 xcb_sync_query_fence_cookie_t
01534 xcb_sync_query_fence_unchecked (xcb_connection_t *c ,
01535 xcb_sync_fence_t fence );
01536
01551 xcb_sync_query_fence_reply_t *
01552 xcb_sync_query_fence_reply (xcb_connection_t *c ,
01553 xcb_sync_query_fence_cookie_t cookie ,
01554 xcb_generic_error_t **e );
01555
01556 int
01557 xcb_sync_await_fence_sizeof (const void *_buffer ,
01558 uint32_t fence_list_len );
01559
01571 xcb_void_cookie_t
01572 xcb_sync_await_fence_checked (xcb_connection_t *c ,
01573 uint32_t fence_list_len ,
01574 const xcb_sync_fence_t *fence_list );
01575
01584 xcb_void_cookie_t
01585 xcb_sync_await_fence (xcb_connection_t *c ,
01586 uint32_t fence_list_len ,
01587 const xcb_sync_fence_t *fence_list );
01588
01589
01590 #ifdef __cplusplus
01591 }
01592 #endif
01593
01594 #endif
01595