jpayne@69: /* jpayne@69: * This file generated automatically from sync.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB_Sync_API XCB Sync API jpayne@69: * @brief Sync XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __SYNC_H jpayne@69: #define __SYNC_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: #include "xproto.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define XCB_SYNC_MAJOR_VERSION 3 jpayne@69: #define XCB_SYNC_MINOR_VERSION 1 jpayne@69: jpayne@69: extern xcb_extension_t xcb_sync_id; jpayne@69: jpayne@69: typedef uint32_t xcb_sync_alarm_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_alarm_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_alarm_iterator_t { jpayne@69: xcb_sync_alarm_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_alarm_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_sync_alarmstate_t { jpayne@69: XCB_SYNC_ALARMSTATE_ACTIVE = 0, jpayne@69: XCB_SYNC_ALARMSTATE_INACTIVE = 1, jpayne@69: XCB_SYNC_ALARMSTATE_DESTROYED = 2 jpayne@69: } xcb_sync_alarmstate_t; jpayne@69: jpayne@69: typedef uint32_t xcb_sync_counter_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_counter_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_counter_iterator_t { jpayne@69: xcb_sync_counter_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_counter_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_sync_fence_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_fence_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_fence_iterator_t { jpayne@69: xcb_sync_fence_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_fence_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_sync_testtype_t { jpayne@69: XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0, jpayne@69: XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1, jpayne@69: XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2, jpayne@69: XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3 jpayne@69: } xcb_sync_testtype_t; jpayne@69: jpayne@69: typedef enum xcb_sync_valuetype_t { jpayne@69: XCB_SYNC_VALUETYPE_ABSOLUTE = 0, jpayne@69: XCB_SYNC_VALUETYPE_RELATIVE = 1 jpayne@69: } xcb_sync_valuetype_t; jpayne@69: jpayne@69: typedef enum xcb_sync_ca_t { jpayne@69: XCB_SYNC_CA_COUNTER = 1, jpayne@69: XCB_SYNC_CA_VALUE_TYPE = 2, jpayne@69: XCB_SYNC_CA_VALUE = 4, jpayne@69: XCB_SYNC_CA_TEST_TYPE = 8, jpayne@69: XCB_SYNC_CA_DELTA = 16, jpayne@69: XCB_SYNC_CA_EVENTS = 32 jpayne@69: } xcb_sync_ca_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_int64_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_int64_t { jpayne@69: int32_t hi; jpayne@69: uint32_t lo; jpayne@69: } xcb_sync_int64_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_int64_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_int64_iterator_t { jpayne@69: xcb_sync_int64_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_int64_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_systemcounter_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_systemcounter_t { jpayne@69: xcb_sync_counter_t counter; jpayne@69: xcb_sync_int64_t resolution; jpayne@69: uint16_t name_len; jpayne@69: } xcb_sync_systemcounter_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_systemcounter_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_systemcounter_iterator_t { jpayne@69: xcb_sync_systemcounter_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_systemcounter_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_trigger_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_trigger_t { jpayne@69: xcb_sync_counter_t counter; jpayne@69: uint32_t wait_type; jpayne@69: xcb_sync_int64_t wait_value; jpayne@69: uint32_t test_type; jpayne@69: } xcb_sync_trigger_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_trigger_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_trigger_iterator_t { jpayne@69: xcb_sync_trigger_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_trigger_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_waitcondition_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_waitcondition_t { jpayne@69: xcb_sync_trigger_t trigger; jpayne@69: xcb_sync_int64_t event_threshold; jpayne@69: } xcb_sync_waitcondition_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_waitcondition_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_waitcondition_iterator_t { jpayne@69: xcb_sync_waitcondition_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_sync_waitcondition_iterator_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_counter. */ jpayne@69: #define XCB_SYNC_COUNTER 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_counter_error_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_counter_error_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t error_code; jpayne@69: uint16_t sequence; jpayne@69: uint32_t bad_counter; jpayne@69: uint16_t minor_opcode; jpayne@69: uint8_t major_opcode; jpayne@69: } xcb_sync_counter_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_alarm. */ jpayne@69: #define XCB_SYNC_ALARM 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_alarm_error_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_alarm_error_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t error_code; jpayne@69: uint16_t sequence; jpayne@69: uint32_t bad_alarm; jpayne@69: uint16_t minor_opcode; jpayne@69: uint8_t major_opcode; jpayne@69: } xcb_sync_alarm_error_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_initialize_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_initialize_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_initialize_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_initialize. */ jpayne@69: #define XCB_SYNC_INITIALIZE 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_initialize_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_initialize_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint8_t desired_major_version; jpayne@69: uint8_t desired_minor_version; jpayne@69: } xcb_sync_initialize_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_initialize_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_initialize_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t major_version; jpayne@69: uint8_t minor_version; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_sync_initialize_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_list_system_counters_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_list_system_counters_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_list_system_counters_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_list_system_counters. */ jpayne@69: #define XCB_SYNC_LIST_SYSTEM_COUNTERS 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_list_system_counters_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_list_system_counters_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_sync_list_system_counters_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_list_system_counters_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_list_system_counters_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t counters_len; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_sync_list_system_counters_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_create_counter. */ jpayne@69: #define XCB_SYNC_CREATE_COUNTER 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_create_counter_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_create_counter_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_counter_t id; jpayne@69: xcb_sync_int64_t initial_value; jpayne@69: } xcb_sync_create_counter_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_destroy_counter. */ jpayne@69: #define XCB_SYNC_DESTROY_COUNTER 6 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_destroy_counter_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_destroy_counter_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_counter_t counter; jpayne@69: } xcb_sync_destroy_counter_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_counter_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_counter_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_query_counter_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_query_counter. */ jpayne@69: #define XCB_SYNC_QUERY_COUNTER 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_counter_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_counter_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_counter_t counter; jpayne@69: } xcb_sync_query_counter_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_counter_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_counter_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_sync_int64_t counter_value; jpayne@69: } xcb_sync_query_counter_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_await. */ jpayne@69: #define XCB_SYNC_AWAIT 7 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_await_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_await_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_sync_await_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_change_counter. */ jpayne@69: #define XCB_SYNC_CHANGE_COUNTER 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_change_counter_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_change_counter_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_counter_t counter; jpayne@69: xcb_sync_int64_t amount; jpayne@69: } xcb_sync_change_counter_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_set_counter. */ jpayne@69: #define XCB_SYNC_SET_COUNTER 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_set_counter_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_set_counter_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_counter_t counter; jpayne@69: xcb_sync_int64_t value; jpayne@69: } xcb_sync_set_counter_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_create_alarm_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_create_alarm_value_list_t { jpayne@69: xcb_sync_counter_t counter; jpayne@69: uint32_t valueType; jpayne@69: xcb_sync_int64_t value; jpayne@69: uint32_t testType; jpayne@69: xcb_sync_int64_t delta; jpayne@69: uint32_t events; jpayne@69: } xcb_sync_create_alarm_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_create_alarm. */ jpayne@69: #define XCB_SYNC_CREATE_ALARM 8 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_create_alarm_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_create_alarm_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_alarm_t id; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_sync_create_alarm_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_change_alarm_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_change_alarm_value_list_t { jpayne@69: xcb_sync_counter_t counter; jpayne@69: uint32_t valueType; jpayne@69: xcb_sync_int64_t value; jpayne@69: uint32_t testType; jpayne@69: xcb_sync_int64_t delta; jpayne@69: uint32_t events; jpayne@69: } xcb_sync_change_alarm_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_change_alarm. */ jpayne@69: #define XCB_SYNC_CHANGE_ALARM 9 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_change_alarm_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_change_alarm_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_alarm_t id; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_sync_change_alarm_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_destroy_alarm. */ jpayne@69: #define XCB_SYNC_DESTROY_ALARM 11 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_destroy_alarm_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_destroy_alarm_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_alarm_t alarm; jpayne@69: } xcb_sync_destroy_alarm_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_alarm_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_alarm_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_query_alarm_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_query_alarm. */ jpayne@69: #define XCB_SYNC_QUERY_ALARM 10 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_alarm_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_alarm_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_alarm_t alarm; jpayne@69: } xcb_sync_query_alarm_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_alarm_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_alarm_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_sync_trigger_t trigger; jpayne@69: xcb_sync_int64_t delta; jpayne@69: uint8_t events; jpayne@69: uint8_t state; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_sync_query_alarm_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_set_priority. */ jpayne@69: #define XCB_SYNC_SET_PRIORITY 12 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_set_priority_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_set_priority_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t id; jpayne@69: int32_t priority; jpayne@69: } xcb_sync_set_priority_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_get_priority_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_get_priority_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_get_priority_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_get_priority. */ jpayne@69: #define XCB_SYNC_GET_PRIORITY 13 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_get_priority_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_get_priority_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t id; jpayne@69: } xcb_sync_get_priority_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_get_priority_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_get_priority_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: int32_t priority; jpayne@69: } xcb_sync_get_priority_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_create_fence. */ jpayne@69: #define XCB_SYNC_CREATE_FENCE 14 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_create_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_create_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_sync_fence_t fence; jpayne@69: uint8_t initially_triggered; jpayne@69: } xcb_sync_create_fence_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_trigger_fence. */ jpayne@69: #define XCB_SYNC_TRIGGER_FENCE 15 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_trigger_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_trigger_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_fence_t fence; jpayne@69: } xcb_sync_trigger_fence_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_reset_fence. */ jpayne@69: #define XCB_SYNC_RESET_FENCE 16 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_reset_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_reset_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_fence_t fence; jpayne@69: } xcb_sync_reset_fence_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_destroy_fence. */ jpayne@69: #define XCB_SYNC_DESTROY_FENCE 17 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_destroy_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_destroy_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_fence_t fence; jpayne@69: } xcb_sync_destroy_fence_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_fence_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_fence_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_sync_query_fence_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_query_fence. */ jpayne@69: #define XCB_SYNC_QUERY_FENCE 18 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_sync_fence_t fence; jpayne@69: } xcb_sync_query_fence_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_query_fence_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_query_fence_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t triggered; jpayne@69: uint8_t pad1[23]; jpayne@69: } xcb_sync_query_fence_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_await_fence. */ jpayne@69: #define XCB_SYNC_AWAIT_FENCE 19 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_await_fence_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_await_fence_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_sync_await_fence_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_counter_notify. */ jpayne@69: #define XCB_SYNC_COUNTER_NOTIFY 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_counter_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_counter_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t kind; jpayne@69: uint16_t sequence; jpayne@69: xcb_sync_counter_t counter; jpayne@69: xcb_sync_int64_t wait_value; jpayne@69: xcb_sync_int64_t counter_value; jpayne@69: xcb_timestamp_t timestamp; jpayne@69: uint16_t count; jpayne@69: uint8_t destroyed; jpayne@69: uint8_t pad0; jpayne@69: } xcb_sync_counter_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_sync_alarm_notify. */ jpayne@69: #define XCB_SYNC_ALARM_NOTIFY 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_sync_alarm_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_sync_alarm_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t kind; jpayne@69: uint16_t sequence; jpayne@69: xcb_sync_alarm_t alarm; jpayne@69: xcb_sync_int64_t counter_value; jpayne@69: xcb_sync_int64_t alarm_value; jpayne@69: xcb_timestamp_t timestamp; jpayne@69: uint8_t state; jpayne@69: uint8_t pad0[3]; jpayne@69: } xcb_sync_alarm_notify_event_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_alarm_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_alarm_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_alarm_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_counter_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_counter_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_counter_next (xcb_sync_counter_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_counter_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_counter_end (xcb_sync_counter_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_fence_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_fence_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_fence_next (xcb_sync_fence_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_fence_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_fence_end (xcb_sync_fence_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_int64_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_int64_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_int64_next (xcb_sync_int64_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_int64_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_int64_end (xcb_sync_int64_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_systemcounter_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_systemcounter_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_systemcounter_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_systemcounter_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_trigger_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_trigger_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_trigger_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_sync_waitcondition_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_sync_waitcondition_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_sync_waitcondition_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_initialize_cookie_t jpayne@69: xcb_sync_initialize (xcb_connection_t *c, jpayne@69: uint8_t desired_major_version, jpayne@69: uint8_t desired_minor_version); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_initialize_cookie_t jpayne@69: xcb_sync_initialize_unchecked (xcb_connection_t *c, jpayne@69: uint8_t desired_major_version, jpayne@69: uint8_t desired_minor_version); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_initialize_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_initialize_reply_t * jpayne@69: xcb_sync_initialize_reply (xcb_connection_t *c, jpayne@69: xcb_sync_initialize_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_list_system_counters_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_list_system_counters_cookie_t jpayne@69: xcb_sync_list_system_counters (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_list_system_counters_cookie_t jpayne@69: xcb_sync_list_system_counters_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R); jpayne@69: jpayne@69: xcb_sync_systemcounter_iterator_t jpayne@69: xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_list_system_counters_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_list_system_counters_reply_t * jpayne@69: xcb_sync_list_system_counters_reply (xcb_connection_t *c, jpayne@69: xcb_sync_list_system_counters_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_counter_checked (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t id, jpayne@69: xcb_sync_int64_t initial_value); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_counter (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t id, jpayne@69: xcb_sync_int64_t initial_value); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_counter_checked (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_counter (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_query_counter_cookie_t jpayne@69: xcb_sync_query_counter (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_query_counter_cookie_t jpayne@69: xcb_sync_query_counter_unchecked (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_query_counter_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_query_counter_reply_t * jpayne@69: xcb_sync_query_counter_reply (xcb_connection_t *c, jpayne@69: xcb_sync_query_counter_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_await_sizeof (const void *_buffer, jpayne@69: uint32_t wait_list_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_await_checked (xcb_connection_t *c, jpayne@69: uint32_t wait_list_len, jpayne@69: const xcb_sync_waitcondition_t *wait_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_await (xcb_connection_t *c, jpayne@69: uint32_t wait_list_len, jpayne@69: const xcb_sync_waitcondition_t *wait_list); jpayne@69: jpayne@69: xcb_sync_waitcondition_t * jpayne@69: xcb_sync_await_wait_list (const xcb_sync_await_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_await_wait_list_length (const xcb_sync_await_request_t *R); jpayne@69: jpayne@69: xcb_sync_waitcondition_iterator_t jpayne@69: xcb_sync_await_wait_list_iterator (const xcb_sync_await_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_counter_checked (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter, jpayne@69: xcb_sync_int64_t amount); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_counter (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter, jpayne@69: xcb_sync_int64_t amount); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_set_counter_checked (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter, jpayne@69: xcb_sync_int64_t value); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_set_counter (xcb_connection_t *c, jpayne@69: xcb_sync_counter_t counter, jpayne@69: xcb_sync_int64_t value); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_create_alarm_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_create_alarm_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_create_alarm_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_sync_create_alarm_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_create_alarm_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_create_alarm_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_alarm_checked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_alarm (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_alarm_aux_checked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_create_alarm_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_alarm_aux (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_create_alarm_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_sync_create_alarm_value_list (const xcb_sync_create_alarm_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_change_alarm_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_change_alarm_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_change_alarm_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_sync_change_alarm_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_change_alarm_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_change_alarm_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_alarm_checked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_alarm (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_alarm_aux_checked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_change_alarm_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_change_alarm_aux (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t id, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_sync_change_alarm_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_sync_change_alarm_value_list (const xcb_sync_change_alarm_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_alarm_checked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t alarm); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_alarm (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t alarm); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_query_alarm_cookie_t jpayne@69: xcb_sync_query_alarm (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t alarm); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_query_alarm_cookie_t jpayne@69: xcb_sync_query_alarm_unchecked (xcb_connection_t *c, jpayne@69: xcb_sync_alarm_t alarm); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_query_alarm_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_query_alarm_reply_t * jpayne@69: xcb_sync_query_alarm_reply (xcb_connection_t *c, jpayne@69: xcb_sync_query_alarm_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_set_priority_checked (xcb_connection_t *c, jpayne@69: uint32_t id, jpayne@69: int32_t priority); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_set_priority (xcb_connection_t *c, jpayne@69: uint32_t id, jpayne@69: int32_t priority); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_get_priority_cookie_t jpayne@69: xcb_sync_get_priority (xcb_connection_t *c, jpayne@69: uint32_t id); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_get_priority_cookie_t jpayne@69: xcb_sync_get_priority_unchecked (xcb_connection_t *c, jpayne@69: uint32_t id); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_get_priority_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_get_priority_reply_t * jpayne@69: xcb_sync_get_priority_reply (xcb_connection_t *c, jpayne@69: xcb_sync_get_priority_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_fence_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_sync_fence_t fence, jpayne@69: uint8_t initially_triggered); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_create_fence (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_sync_fence_t fence, jpayne@69: uint8_t initially_triggered); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_trigger_fence_checked (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_trigger_fence (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_reset_fence_checked (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_reset_fence (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_fence_checked (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_destroy_fence (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_sync_query_fence_cookie_t jpayne@69: xcb_sync_query_fence (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_sync_query_fence_cookie_t jpayne@69: xcb_sync_query_fence_unchecked (xcb_connection_t *c, jpayne@69: xcb_sync_fence_t fence); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_sync_query_fence_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_sync_query_fence_reply_t * jpayne@69: xcb_sync_query_fence_reply (xcb_connection_t *c, jpayne@69: xcb_sync_query_fence_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_await_fence_sizeof (const void *_buffer, jpayne@69: uint32_t fence_list_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_await_fence_checked (xcb_connection_t *c, jpayne@69: uint32_t fence_list_len, jpayne@69: const xcb_sync_fence_t *fence_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_sync_await_fence (xcb_connection_t *c, jpayne@69: uint32_t fence_list_len, jpayne@69: const xcb_sync_fence_t *fence_list); jpayne@69: jpayne@69: xcb_sync_fence_t * jpayne@69: xcb_sync_await_fence_fence_list (const xcb_sync_await_fence_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_sync_await_fence_fence_list_length (const xcb_sync_await_fence_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_sync_await_fence_fence_list_end (const xcb_sync_await_fence_request_t *R); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */