* This file generated automatically from sync.xml by c_client.py.
* @defgroup XCB_Sync_API XCB Sync API
* @brief Sync XCB Protocol Implementation.
#define XCB_SYNC_MAJOR_VERSION 3
#define XCB_SYNC_MINOR_VERSION 1
extern xcb_extension_t xcb_sync_id;
typedef uint32_t xcb_sync_alarm_t;
* @brief xcb_sync_alarm_iterator_t
typedef struct xcb_sync_alarm_iterator_t {
} xcb_sync_alarm_iterator_t;
typedef enum xcb_sync_alarmstate_t {
XCB_SYNC_ALARMSTATE_ACTIVE = 0,
XCB_SYNC_ALARMSTATE_INACTIVE = 1,
XCB_SYNC_ALARMSTATE_DESTROYED = 2
typedef uint32_t xcb_sync_counter_t;
* @brief xcb_sync_counter_iterator_t
typedef struct xcb_sync_counter_iterator_t {
xcb_sync_counter_t *data;
} xcb_sync_counter_iterator_t;
typedef uint32_t xcb_sync_fence_t;
* @brief xcb_sync_fence_iterator_t
typedef struct xcb_sync_fence_iterator_t {
} xcb_sync_fence_iterator_t;
typedef enum xcb_sync_testtype_t {
XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0,
XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1,
XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2,
XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3
typedef enum xcb_sync_valuetype_t {
XCB_SYNC_VALUETYPE_ABSOLUTE = 0,
XCB_SYNC_VALUETYPE_RELATIVE = 1
typedef enum xcb_sync_ca_t {
XCB_SYNC_CA_VALUE_TYPE = 2,
XCB_SYNC_CA_TEST_TYPE = 8,
* @brief xcb_sync_int64_t
typedef struct xcb_sync_int64_t {
* @brief xcb_sync_int64_iterator_t
typedef struct xcb_sync_int64_iterator_t {
} xcb_sync_int64_iterator_t;
* @brief xcb_sync_systemcounter_t
typedef struct xcb_sync_systemcounter_t {
xcb_sync_counter_t counter;
xcb_sync_int64_t resolution;
} xcb_sync_systemcounter_t;
* @brief xcb_sync_systemcounter_iterator_t
typedef struct xcb_sync_systemcounter_iterator_t {
xcb_sync_systemcounter_t *data;
} xcb_sync_systemcounter_iterator_t;
* @brief xcb_sync_trigger_t
typedef struct xcb_sync_trigger_t {
xcb_sync_counter_t counter;
xcb_sync_int64_t wait_value;
* @brief xcb_sync_trigger_iterator_t
typedef struct xcb_sync_trigger_iterator_t {
xcb_sync_trigger_t *data;
} xcb_sync_trigger_iterator_t;
* @brief xcb_sync_waitcondition_t
typedef struct xcb_sync_waitcondition_t {
xcb_sync_trigger_t trigger;
xcb_sync_int64_t event_threshold;
} xcb_sync_waitcondition_t;
* @brief xcb_sync_waitcondition_iterator_t
typedef struct xcb_sync_waitcondition_iterator_t {
xcb_sync_waitcondition_t *data;
} xcb_sync_waitcondition_iterator_t;
/** Opcode for xcb_sync_counter. */
#define XCB_SYNC_COUNTER 0
* @brief xcb_sync_counter_error_t
typedef struct xcb_sync_counter_error_t {
} xcb_sync_counter_error_t;
/** Opcode for xcb_sync_alarm. */
* @brief xcb_sync_alarm_error_t
typedef struct xcb_sync_alarm_error_t {
} xcb_sync_alarm_error_t;
* @brief xcb_sync_initialize_cookie_t
typedef struct xcb_sync_initialize_cookie_t {
} xcb_sync_initialize_cookie_t;
/** Opcode for xcb_sync_initialize. */
#define XCB_SYNC_INITIALIZE 0
* @brief xcb_sync_initialize_request_t
typedef struct xcb_sync_initialize_request_t {
uint8_t desired_major_version;
uint8_t desired_minor_version;
} xcb_sync_initialize_request_t;
* @brief xcb_sync_initialize_reply_t
typedef struct xcb_sync_initialize_reply_t {
} xcb_sync_initialize_reply_t;
* @brief xcb_sync_list_system_counters_cookie_t
typedef struct xcb_sync_list_system_counters_cookie_t {
} xcb_sync_list_system_counters_cookie_t;
/** Opcode for xcb_sync_list_system_counters. */
#define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
* @brief xcb_sync_list_system_counters_request_t
typedef struct xcb_sync_list_system_counters_request_t {
} xcb_sync_list_system_counters_request_t;
* @brief xcb_sync_list_system_counters_reply_t
typedef struct xcb_sync_list_system_counters_reply_t {
} xcb_sync_list_system_counters_reply_t;
/** Opcode for xcb_sync_create_counter. */
#define XCB_SYNC_CREATE_COUNTER 2
* @brief xcb_sync_create_counter_request_t
typedef struct xcb_sync_create_counter_request_t {
xcb_sync_int64_t initial_value;
} xcb_sync_create_counter_request_t;
/** Opcode for xcb_sync_destroy_counter. */
#define XCB_SYNC_DESTROY_COUNTER 6
* @brief xcb_sync_destroy_counter_request_t
typedef struct xcb_sync_destroy_counter_request_t {
xcb_sync_counter_t counter;
} xcb_sync_destroy_counter_request_t;
* @brief xcb_sync_query_counter_cookie_t
typedef struct xcb_sync_query_counter_cookie_t {
} xcb_sync_query_counter_cookie_t;
/** Opcode for xcb_sync_query_counter. */
#define XCB_SYNC_QUERY_COUNTER 5
* @brief xcb_sync_query_counter_request_t
typedef struct xcb_sync_query_counter_request_t {
xcb_sync_counter_t counter;
} xcb_sync_query_counter_request_t;
* @brief xcb_sync_query_counter_reply_t
typedef struct xcb_sync_query_counter_reply_t {
xcb_sync_int64_t counter_value;
} xcb_sync_query_counter_reply_t;
/** Opcode for xcb_sync_await. */
* @brief xcb_sync_await_request_t
typedef struct xcb_sync_await_request_t {
} xcb_sync_await_request_t;
/** Opcode for xcb_sync_change_counter. */
#define XCB_SYNC_CHANGE_COUNTER 4
* @brief xcb_sync_change_counter_request_t
typedef struct xcb_sync_change_counter_request_t {
xcb_sync_counter_t counter;
} xcb_sync_change_counter_request_t;
/** Opcode for xcb_sync_set_counter. */
#define XCB_SYNC_SET_COUNTER 3
* @brief xcb_sync_set_counter_request_t
typedef struct xcb_sync_set_counter_request_t {
xcb_sync_counter_t counter;
} xcb_sync_set_counter_request_t;
* @brief xcb_sync_create_alarm_value_list_t
typedef struct xcb_sync_create_alarm_value_list_t {
xcb_sync_counter_t counter;
} xcb_sync_create_alarm_value_list_t;
/** Opcode for xcb_sync_create_alarm. */
#define XCB_SYNC_CREATE_ALARM 8
* @brief xcb_sync_create_alarm_request_t
typedef struct xcb_sync_create_alarm_request_t {
} xcb_sync_create_alarm_request_t;
* @brief xcb_sync_change_alarm_value_list_t
typedef struct xcb_sync_change_alarm_value_list_t {
xcb_sync_counter_t counter;
} xcb_sync_change_alarm_value_list_t;
/** Opcode for xcb_sync_change_alarm. */
#define XCB_SYNC_CHANGE_ALARM 9
* @brief xcb_sync_change_alarm_request_t
typedef struct xcb_sync_change_alarm_request_t {
} xcb_sync_change_alarm_request_t;
/** Opcode for xcb_sync_destroy_alarm. */
#define XCB_SYNC_DESTROY_ALARM 11
* @brief xcb_sync_destroy_alarm_request_t
typedef struct xcb_sync_destroy_alarm_request_t {
} xcb_sync_destroy_alarm_request_t;
* @brief xcb_sync_query_alarm_cookie_t
typedef struct xcb_sync_query_alarm_cookie_t {
} xcb_sync_query_alarm_cookie_t;
/** Opcode for xcb_sync_query_alarm. */
#define XCB_SYNC_QUERY_ALARM 10
* @brief xcb_sync_query_alarm_request_t
typedef struct xcb_sync_query_alarm_request_t {
} xcb_sync_query_alarm_request_t;
* @brief xcb_sync_query_alarm_reply_t
typedef struct xcb_sync_query_alarm_reply_t {
xcb_sync_trigger_t trigger;
} xcb_sync_query_alarm_reply_t;
/** Opcode for xcb_sync_set_priority. */
#define XCB_SYNC_SET_PRIORITY 12
* @brief xcb_sync_set_priority_request_t
typedef struct xcb_sync_set_priority_request_t {
} xcb_sync_set_priority_request_t;
* @brief xcb_sync_get_priority_cookie_t
typedef struct xcb_sync_get_priority_cookie_t {
} xcb_sync_get_priority_cookie_t;
/** Opcode for xcb_sync_get_priority. */
#define XCB_SYNC_GET_PRIORITY 13
* @brief xcb_sync_get_priority_request_t
typedef struct xcb_sync_get_priority_request_t {
} xcb_sync_get_priority_request_t;
* @brief xcb_sync_get_priority_reply_t
typedef struct xcb_sync_get_priority_reply_t {
} xcb_sync_get_priority_reply_t;
/** Opcode for xcb_sync_create_fence. */
#define XCB_SYNC_CREATE_FENCE 14
* @brief xcb_sync_create_fence_request_t