xref: /minix3/external/mit/xorg/lib/libxcb/files/sync.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1971bb1a5SLionel Sambuc /*
2971bb1a5SLionel Sambuc  * This file generated automatically from sync.xml by c_client.py.
3971bb1a5SLionel Sambuc  * Edit at your peril.
4971bb1a5SLionel Sambuc  */
5971bb1a5SLionel Sambuc 
6971bb1a5SLionel Sambuc /**
7971bb1a5SLionel Sambuc  * @defgroup XCB_Sync_API XCB Sync API
8971bb1a5SLionel Sambuc  * @brief Sync XCB Protocol Implementation.
9971bb1a5SLionel Sambuc  * @{
10971bb1a5SLionel Sambuc  **/
11971bb1a5SLionel Sambuc 
12971bb1a5SLionel Sambuc #ifndef __SYNC_H
13971bb1a5SLionel Sambuc #define __SYNC_H
14971bb1a5SLionel Sambuc 
15971bb1a5SLionel Sambuc #include "xcb.h"
16971bb1a5SLionel Sambuc #include "xproto.h"
17971bb1a5SLionel Sambuc 
18971bb1a5SLionel Sambuc #ifdef __cplusplus
19971bb1a5SLionel Sambuc extern "C" {
20971bb1a5SLionel Sambuc #endif
21971bb1a5SLionel Sambuc 
22971bb1a5SLionel Sambuc #define XCB_SYNC_MAJOR_VERSION 3
23971bb1a5SLionel Sambuc #define XCB_SYNC_MINOR_VERSION 1
24971bb1a5SLionel Sambuc 
25971bb1a5SLionel Sambuc extern xcb_extension_t xcb_sync_id;
26971bb1a5SLionel Sambuc 
27971bb1a5SLionel Sambuc typedef uint32_t xcb_sync_alarm_t;
28971bb1a5SLionel Sambuc 
29971bb1a5SLionel Sambuc /**
30971bb1a5SLionel Sambuc  * @brief xcb_sync_alarm_iterator_t
31971bb1a5SLionel Sambuc  **/
32971bb1a5SLionel Sambuc typedef struct xcb_sync_alarm_iterator_t {
33971bb1a5SLionel Sambuc     xcb_sync_alarm_t *data; /**<  */
34971bb1a5SLionel Sambuc     int               rem; /**<  */
35971bb1a5SLionel Sambuc     int               index; /**<  */
36971bb1a5SLionel Sambuc } xcb_sync_alarm_iterator_t;
37971bb1a5SLionel Sambuc 
38971bb1a5SLionel Sambuc typedef enum xcb_sync_alarmstate_t {
39*0a6a1f1dSLionel Sambuc     XCB_SYNC_ALARMSTATE_ACTIVE = 0,
40*0a6a1f1dSLionel Sambuc     XCB_SYNC_ALARMSTATE_INACTIVE = 1,
41*0a6a1f1dSLionel Sambuc     XCB_SYNC_ALARMSTATE_DESTROYED = 2
42971bb1a5SLionel Sambuc } xcb_sync_alarmstate_t;
43971bb1a5SLionel Sambuc 
44971bb1a5SLionel Sambuc typedef uint32_t xcb_sync_counter_t;
45971bb1a5SLionel Sambuc 
46971bb1a5SLionel Sambuc /**
47971bb1a5SLionel Sambuc  * @brief xcb_sync_counter_iterator_t
48971bb1a5SLionel Sambuc  **/
49971bb1a5SLionel Sambuc typedef struct xcb_sync_counter_iterator_t {
50971bb1a5SLionel Sambuc     xcb_sync_counter_t *data; /**<  */
51971bb1a5SLionel Sambuc     int                 rem; /**<  */
52971bb1a5SLionel Sambuc     int                 index; /**<  */
53971bb1a5SLionel Sambuc } xcb_sync_counter_iterator_t;
54971bb1a5SLionel Sambuc 
55971bb1a5SLionel Sambuc typedef uint32_t xcb_sync_fence_t;
56971bb1a5SLionel Sambuc 
57971bb1a5SLionel Sambuc /**
58971bb1a5SLionel Sambuc  * @brief xcb_sync_fence_iterator_t
59971bb1a5SLionel Sambuc  **/
60971bb1a5SLionel Sambuc typedef struct xcb_sync_fence_iterator_t {
61971bb1a5SLionel Sambuc     xcb_sync_fence_t *data; /**<  */
62971bb1a5SLionel Sambuc     int               rem; /**<  */
63971bb1a5SLionel Sambuc     int               index; /**<  */
64971bb1a5SLionel Sambuc } xcb_sync_fence_iterator_t;
65971bb1a5SLionel Sambuc 
66971bb1a5SLionel Sambuc typedef enum xcb_sync_testtype_t {
67*0a6a1f1dSLionel Sambuc     XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION = 0,
68*0a6a1f1dSLionel Sambuc     XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION = 1,
69*0a6a1f1dSLionel Sambuc     XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON = 2,
70*0a6a1f1dSLionel Sambuc     XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON = 3
71971bb1a5SLionel Sambuc } xcb_sync_testtype_t;
72971bb1a5SLionel Sambuc 
73971bb1a5SLionel Sambuc typedef enum xcb_sync_valuetype_t {
74*0a6a1f1dSLionel Sambuc     XCB_SYNC_VALUETYPE_ABSOLUTE = 0,
75*0a6a1f1dSLionel Sambuc     XCB_SYNC_VALUETYPE_RELATIVE = 1
76971bb1a5SLionel Sambuc } xcb_sync_valuetype_t;
77971bb1a5SLionel Sambuc 
78971bb1a5SLionel Sambuc typedef enum xcb_sync_ca_t {
79971bb1a5SLionel Sambuc     XCB_SYNC_CA_COUNTER = 1,
80971bb1a5SLionel Sambuc     XCB_SYNC_CA_VALUE_TYPE = 2,
81971bb1a5SLionel Sambuc     XCB_SYNC_CA_VALUE = 4,
82971bb1a5SLionel Sambuc     XCB_SYNC_CA_TEST_TYPE = 8,
83971bb1a5SLionel Sambuc     XCB_SYNC_CA_DELTA = 16,
84971bb1a5SLionel Sambuc     XCB_SYNC_CA_EVENTS = 32
85971bb1a5SLionel Sambuc } xcb_sync_ca_t;
86971bb1a5SLionel Sambuc 
87971bb1a5SLionel Sambuc /**
88971bb1a5SLionel Sambuc  * @brief xcb_sync_int64_t
89971bb1a5SLionel Sambuc  **/
90971bb1a5SLionel Sambuc typedef struct xcb_sync_int64_t {
91971bb1a5SLionel Sambuc     int32_t  hi; /**<  */
92971bb1a5SLionel Sambuc     uint32_t lo; /**<  */
93971bb1a5SLionel Sambuc } xcb_sync_int64_t;
94971bb1a5SLionel Sambuc 
95971bb1a5SLionel Sambuc /**
96971bb1a5SLionel Sambuc  * @brief xcb_sync_int64_iterator_t
97971bb1a5SLionel Sambuc  **/
98971bb1a5SLionel Sambuc typedef struct xcb_sync_int64_iterator_t {
99971bb1a5SLionel Sambuc     xcb_sync_int64_t *data; /**<  */
100971bb1a5SLionel Sambuc     int               rem; /**<  */
101971bb1a5SLionel Sambuc     int               index; /**<  */
102971bb1a5SLionel Sambuc } xcb_sync_int64_iterator_t;
103971bb1a5SLionel Sambuc 
104971bb1a5SLionel Sambuc /**
105971bb1a5SLionel Sambuc  * @brief xcb_sync_systemcounter_t
106971bb1a5SLionel Sambuc  **/
107971bb1a5SLionel Sambuc typedef struct xcb_sync_systemcounter_t {
108971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
109971bb1a5SLionel Sambuc     xcb_sync_int64_t   resolution; /**<  */
110971bb1a5SLionel Sambuc     uint16_t           name_len; /**<  */
111971bb1a5SLionel Sambuc } xcb_sync_systemcounter_t;
112971bb1a5SLionel Sambuc 
113971bb1a5SLionel Sambuc /**
114971bb1a5SLionel Sambuc  * @brief xcb_sync_systemcounter_iterator_t
115971bb1a5SLionel Sambuc  **/
116971bb1a5SLionel Sambuc typedef struct xcb_sync_systemcounter_iterator_t {
117971bb1a5SLionel Sambuc     xcb_sync_systemcounter_t *data; /**<  */
118971bb1a5SLionel Sambuc     int                       rem; /**<  */
119971bb1a5SLionel Sambuc     int                       index; /**<  */
120971bb1a5SLionel Sambuc } xcb_sync_systemcounter_iterator_t;
121971bb1a5SLionel Sambuc 
122971bb1a5SLionel Sambuc /**
123971bb1a5SLionel Sambuc  * @brief xcb_sync_trigger_t
124971bb1a5SLionel Sambuc  **/
125971bb1a5SLionel Sambuc typedef struct xcb_sync_trigger_t {
126971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
127971bb1a5SLionel Sambuc     uint32_t           wait_type; /**<  */
128971bb1a5SLionel Sambuc     xcb_sync_int64_t   wait_value; /**<  */
129971bb1a5SLionel Sambuc     uint32_t           test_type; /**<  */
130971bb1a5SLionel Sambuc } xcb_sync_trigger_t;
131971bb1a5SLionel Sambuc 
132971bb1a5SLionel Sambuc /**
133971bb1a5SLionel Sambuc  * @brief xcb_sync_trigger_iterator_t
134971bb1a5SLionel Sambuc  **/
135971bb1a5SLionel Sambuc typedef struct xcb_sync_trigger_iterator_t {
136971bb1a5SLionel Sambuc     xcb_sync_trigger_t *data; /**<  */
137971bb1a5SLionel Sambuc     int                 rem; /**<  */
138971bb1a5SLionel Sambuc     int                 index; /**<  */
139971bb1a5SLionel Sambuc } xcb_sync_trigger_iterator_t;
140971bb1a5SLionel Sambuc 
141971bb1a5SLionel Sambuc /**
142971bb1a5SLionel Sambuc  * @brief xcb_sync_waitcondition_t
143971bb1a5SLionel Sambuc  **/
144971bb1a5SLionel Sambuc typedef struct xcb_sync_waitcondition_t {
145971bb1a5SLionel Sambuc     xcb_sync_trigger_t trigger; /**<  */
146971bb1a5SLionel Sambuc     xcb_sync_int64_t   event_threshold; /**<  */
147971bb1a5SLionel Sambuc } xcb_sync_waitcondition_t;
148971bb1a5SLionel Sambuc 
149971bb1a5SLionel Sambuc /**
150971bb1a5SLionel Sambuc  * @brief xcb_sync_waitcondition_iterator_t
151971bb1a5SLionel Sambuc  **/
152971bb1a5SLionel Sambuc typedef struct xcb_sync_waitcondition_iterator_t {
153971bb1a5SLionel Sambuc     xcb_sync_waitcondition_t *data; /**<  */
154971bb1a5SLionel Sambuc     int                       rem; /**<  */
155971bb1a5SLionel Sambuc     int                       index; /**<  */
156971bb1a5SLionel Sambuc } xcb_sync_waitcondition_iterator_t;
157971bb1a5SLionel Sambuc 
158971bb1a5SLionel Sambuc /** Opcode for xcb_sync_counter. */
159971bb1a5SLionel Sambuc #define XCB_SYNC_COUNTER 0
160971bb1a5SLionel Sambuc 
161971bb1a5SLionel Sambuc /**
162971bb1a5SLionel Sambuc  * @brief xcb_sync_counter_error_t
163971bb1a5SLionel Sambuc  **/
164971bb1a5SLionel Sambuc typedef struct xcb_sync_counter_error_t {
165971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
166971bb1a5SLionel Sambuc     uint8_t  error_code; /**<  */
167971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
168971bb1a5SLionel Sambuc     uint32_t bad_counter; /**<  */
169971bb1a5SLionel Sambuc     uint16_t minor_opcode; /**<  */
170971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
171971bb1a5SLionel Sambuc } xcb_sync_counter_error_t;
172971bb1a5SLionel Sambuc 
173971bb1a5SLionel Sambuc /** Opcode for xcb_sync_alarm. */
174971bb1a5SLionel Sambuc #define XCB_SYNC_ALARM 1
175971bb1a5SLionel Sambuc 
176971bb1a5SLionel Sambuc /**
177971bb1a5SLionel Sambuc  * @brief xcb_sync_alarm_error_t
178971bb1a5SLionel Sambuc  **/
179971bb1a5SLionel Sambuc typedef struct xcb_sync_alarm_error_t {
180971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
181971bb1a5SLionel Sambuc     uint8_t  error_code; /**<  */
182971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
183971bb1a5SLionel Sambuc     uint32_t bad_alarm; /**<  */
184971bb1a5SLionel Sambuc     uint16_t minor_opcode; /**<  */
185971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
186971bb1a5SLionel Sambuc } xcb_sync_alarm_error_t;
187971bb1a5SLionel Sambuc 
188971bb1a5SLionel Sambuc /**
189971bb1a5SLionel Sambuc  * @brief xcb_sync_initialize_cookie_t
190971bb1a5SLionel Sambuc  **/
191971bb1a5SLionel Sambuc typedef struct xcb_sync_initialize_cookie_t {
192971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
193971bb1a5SLionel Sambuc } xcb_sync_initialize_cookie_t;
194971bb1a5SLionel Sambuc 
195971bb1a5SLionel Sambuc /** Opcode for xcb_sync_initialize. */
196971bb1a5SLionel Sambuc #define XCB_SYNC_INITIALIZE 0
197971bb1a5SLionel Sambuc 
198971bb1a5SLionel Sambuc /**
199971bb1a5SLionel Sambuc  * @brief xcb_sync_initialize_request_t
200971bb1a5SLionel Sambuc  **/
201971bb1a5SLionel Sambuc typedef struct xcb_sync_initialize_request_t {
202971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
203971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
204971bb1a5SLionel Sambuc     uint16_t length; /**<  */
205971bb1a5SLionel Sambuc     uint8_t  desired_major_version; /**<  */
206971bb1a5SLionel Sambuc     uint8_t  desired_minor_version; /**<  */
207971bb1a5SLionel Sambuc } xcb_sync_initialize_request_t;
208971bb1a5SLionel Sambuc 
209971bb1a5SLionel Sambuc /**
210971bb1a5SLionel Sambuc  * @brief xcb_sync_initialize_reply_t
211971bb1a5SLionel Sambuc  **/
212971bb1a5SLionel Sambuc typedef struct xcb_sync_initialize_reply_t {
213971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
214971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
215971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
216971bb1a5SLionel Sambuc     uint32_t length; /**<  */
217971bb1a5SLionel Sambuc     uint8_t  major_version; /**<  */
218971bb1a5SLionel Sambuc     uint8_t  minor_version; /**<  */
219971bb1a5SLionel Sambuc     uint8_t  pad1[22]; /**<  */
220971bb1a5SLionel Sambuc } xcb_sync_initialize_reply_t;
221971bb1a5SLionel Sambuc 
222971bb1a5SLionel Sambuc /**
223971bb1a5SLionel Sambuc  * @brief xcb_sync_list_system_counters_cookie_t
224971bb1a5SLionel Sambuc  **/
225971bb1a5SLionel Sambuc typedef struct xcb_sync_list_system_counters_cookie_t {
226971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
227971bb1a5SLionel Sambuc } xcb_sync_list_system_counters_cookie_t;
228971bb1a5SLionel Sambuc 
229971bb1a5SLionel Sambuc /** Opcode for xcb_sync_list_system_counters. */
230971bb1a5SLionel Sambuc #define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
231971bb1a5SLionel Sambuc 
232971bb1a5SLionel Sambuc /**
233971bb1a5SLionel Sambuc  * @brief xcb_sync_list_system_counters_request_t
234971bb1a5SLionel Sambuc  **/
235971bb1a5SLionel Sambuc typedef struct xcb_sync_list_system_counters_request_t {
236971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
237971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
238971bb1a5SLionel Sambuc     uint16_t length; /**<  */
239971bb1a5SLionel Sambuc } xcb_sync_list_system_counters_request_t;
240971bb1a5SLionel Sambuc 
241971bb1a5SLionel Sambuc /**
242971bb1a5SLionel Sambuc  * @brief xcb_sync_list_system_counters_reply_t
243971bb1a5SLionel Sambuc  **/
244971bb1a5SLionel Sambuc typedef struct xcb_sync_list_system_counters_reply_t {
245971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
246971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
247971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
248971bb1a5SLionel Sambuc     uint32_t length; /**<  */
249971bb1a5SLionel Sambuc     uint32_t counters_len; /**<  */
250971bb1a5SLionel Sambuc     uint8_t  pad1[20]; /**<  */
251971bb1a5SLionel Sambuc } xcb_sync_list_system_counters_reply_t;
252971bb1a5SLionel Sambuc 
253971bb1a5SLionel Sambuc /** Opcode for xcb_sync_create_counter. */
254971bb1a5SLionel Sambuc #define XCB_SYNC_CREATE_COUNTER 2
255971bb1a5SLionel Sambuc 
256971bb1a5SLionel Sambuc /**
257971bb1a5SLionel Sambuc  * @brief xcb_sync_create_counter_request_t
258971bb1a5SLionel Sambuc  **/
259971bb1a5SLionel Sambuc typedef struct xcb_sync_create_counter_request_t {
260971bb1a5SLionel Sambuc     uint8_t            major_opcode; /**<  */
261971bb1a5SLionel Sambuc     uint8_t            minor_opcode; /**<  */
262971bb1a5SLionel Sambuc     uint16_t           length; /**<  */
263971bb1a5SLionel Sambuc     xcb_sync_counter_t id; /**<  */
264971bb1a5SLionel Sambuc     xcb_sync_int64_t   initial_value; /**<  */
265971bb1a5SLionel Sambuc } xcb_sync_create_counter_request_t;
266971bb1a5SLionel Sambuc 
267971bb1a5SLionel Sambuc /** Opcode for xcb_sync_destroy_counter. */
268971bb1a5SLionel Sambuc #define XCB_SYNC_DESTROY_COUNTER 6
269971bb1a5SLionel Sambuc 
270971bb1a5SLionel Sambuc /**
271971bb1a5SLionel Sambuc  * @brief xcb_sync_destroy_counter_request_t
272971bb1a5SLionel Sambuc  **/
273971bb1a5SLionel Sambuc typedef struct xcb_sync_destroy_counter_request_t {
274971bb1a5SLionel Sambuc     uint8_t            major_opcode; /**<  */
275971bb1a5SLionel Sambuc     uint8_t            minor_opcode; /**<  */
276971bb1a5SLionel Sambuc     uint16_t           length; /**<  */
277971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
278971bb1a5SLionel Sambuc } xcb_sync_destroy_counter_request_t;
279971bb1a5SLionel Sambuc 
280971bb1a5SLionel Sambuc /**
281971bb1a5SLionel Sambuc  * @brief xcb_sync_query_counter_cookie_t
282971bb1a5SLionel Sambuc  **/
283971bb1a5SLionel Sambuc typedef struct xcb_sync_query_counter_cookie_t {
284971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
285971bb1a5SLionel Sambuc } xcb_sync_query_counter_cookie_t;
286971bb1a5SLionel Sambuc 
287971bb1a5SLionel Sambuc /** Opcode for xcb_sync_query_counter. */
288971bb1a5SLionel Sambuc #define XCB_SYNC_QUERY_COUNTER 5
289971bb1a5SLionel Sambuc 
290971bb1a5SLionel Sambuc /**
291971bb1a5SLionel Sambuc  * @brief xcb_sync_query_counter_request_t
292971bb1a5SLionel Sambuc  **/
293971bb1a5SLionel Sambuc typedef struct xcb_sync_query_counter_request_t {
294971bb1a5SLionel Sambuc     uint8_t            major_opcode; /**<  */
295971bb1a5SLionel Sambuc     uint8_t            minor_opcode; /**<  */
296971bb1a5SLionel Sambuc     uint16_t           length; /**<  */
297971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
298971bb1a5SLionel Sambuc } xcb_sync_query_counter_request_t;
299971bb1a5SLionel Sambuc 
300971bb1a5SLionel Sambuc /**
301971bb1a5SLionel Sambuc  * @brief xcb_sync_query_counter_reply_t
302971bb1a5SLionel Sambuc  **/
303971bb1a5SLionel Sambuc typedef struct xcb_sync_query_counter_reply_t {
304971bb1a5SLionel Sambuc     uint8_t          response_type; /**<  */
305971bb1a5SLionel Sambuc     uint8_t          pad0; /**<  */
306971bb1a5SLionel Sambuc     uint16_t         sequence; /**<  */
307971bb1a5SLionel Sambuc     uint32_t         length; /**<  */
308971bb1a5SLionel Sambuc     xcb_sync_int64_t counter_value; /**<  */
309971bb1a5SLionel Sambuc } xcb_sync_query_counter_reply_t;
310971bb1a5SLionel Sambuc 
311971bb1a5SLionel Sambuc /** Opcode for xcb_sync_await. */
312971bb1a5SLionel Sambuc #define XCB_SYNC_AWAIT 7
313971bb1a5SLionel Sambuc 
314971bb1a5SLionel Sambuc /**
315971bb1a5SLionel Sambuc  * @brief xcb_sync_await_request_t
316971bb1a5SLionel Sambuc  **/
317971bb1a5SLionel Sambuc typedef struct xcb_sync_await_request_t {
318971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
319971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
320971bb1a5SLionel Sambuc     uint16_t length; /**<  */
321971bb1a5SLionel Sambuc } xcb_sync_await_request_t;
322971bb1a5SLionel Sambuc 
323971bb1a5SLionel Sambuc /** Opcode for xcb_sync_change_counter. */
324971bb1a5SLionel Sambuc #define XCB_SYNC_CHANGE_COUNTER 4
325971bb1a5SLionel Sambuc 
326971bb1a5SLionel Sambuc /**
327971bb1a5SLionel Sambuc  * @brief xcb_sync_change_counter_request_t
328971bb1a5SLionel Sambuc  **/
329971bb1a5SLionel Sambuc typedef struct xcb_sync_change_counter_request_t {
330971bb1a5SLionel Sambuc     uint8_t            major_opcode; /**<  */
331971bb1a5SLionel Sambuc     uint8_t            minor_opcode; /**<  */
332971bb1a5SLionel Sambuc     uint16_t           length; /**<  */
333971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
334971bb1a5SLionel Sambuc     xcb_sync_int64_t   amount; /**<  */
335971bb1a5SLionel Sambuc } xcb_sync_change_counter_request_t;
336971bb1a5SLionel Sambuc 
337971bb1a5SLionel Sambuc /** Opcode for xcb_sync_set_counter. */
338971bb1a5SLionel Sambuc #define XCB_SYNC_SET_COUNTER 3
339971bb1a5SLionel Sambuc 
340971bb1a5SLionel Sambuc /**
341971bb1a5SLionel Sambuc  * @brief xcb_sync_set_counter_request_t
342971bb1a5SLionel Sambuc  **/
343971bb1a5SLionel Sambuc typedef struct xcb_sync_set_counter_request_t {
344971bb1a5SLionel Sambuc     uint8_t            major_opcode; /**<  */
345971bb1a5SLionel Sambuc     uint8_t            minor_opcode; /**<  */
346971bb1a5SLionel Sambuc     uint16_t           length; /**<  */
347971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
348971bb1a5SLionel Sambuc     xcb_sync_int64_t   value; /**<  */
349971bb1a5SLionel Sambuc } xcb_sync_set_counter_request_t;
350971bb1a5SLionel Sambuc 
351*0a6a1f1dSLionel Sambuc /**
352*0a6a1f1dSLionel Sambuc  * @brief xcb_sync_create_alarm_value_list_t
353*0a6a1f1dSLionel Sambuc  **/
354*0a6a1f1dSLionel Sambuc typedef struct xcb_sync_create_alarm_value_list_t {
355*0a6a1f1dSLionel Sambuc     xcb_sync_counter_t counter; /**<  */
356*0a6a1f1dSLionel Sambuc     uint32_t           valueType; /**<  */
357*0a6a1f1dSLionel Sambuc     xcb_sync_int64_t   value; /**<  */
358*0a6a1f1dSLionel Sambuc     uint32_t           testType; /**<  */
359*0a6a1f1dSLionel Sambuc     xcb_sync_int64_t   delta; /**<  */
360*0a6a1f1dSLionel Sambuc     uint32_t           events; /**<  */
361*0a6a1f1dSLionel Sambuc } xcb_sync_create_alarm_value_list_t;
362*0a6a1f1dSLionel Sambuc 
363971bb1a5SLionel Sambuc /** Opcode for xcb_sync_create_alarm. */
364971bb1a5SLionel Sambuc #define XCB_SYNC_CREATE_ALARM 8
365971bb1a5SLionel Sambuc 
366971bb1a5SLionel Sambuc /**
367971bb1a5SLionel Sambuc  * @brief xcb_sync_create_alarm_request_t
368971bb1a5SLionel Sambuc  **/
369971bb1a5SLionel Sambuc typedef struct xcb_sync_create_alarm_request_t {
370971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
371971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
372971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
373971bb1a5SLionel Sambuc     xcb_sync_alarm_t id; /**<  */
374971bb1a5SLionel Sambuc     uint32_t         value_mask; /**<  */
375971bb1a5SLionel Sambuc } xcb_sync_create_alarm_request_t;
376971bb1a5SLionel Sambuc 
377*0a6a1f1dSLionel Sambuc /**
378*0a6a1f1dSLionel Sambuc  * @brief xcb_sync_change_alarm_value_list_t
379*0a6a1f1dSLionel Sambuc  **/
380*0a6a1f1dSLionel Sambuc typedef struct xcb_sync_change_alarm_value_list_t {
381*0a6a1f1dSLionel Sambuc     xcb_sync_counter_t counter; /**<  */
382*0a6a1f1dSLionel Sambuc     uint32_t           valueType; /**<  */
383*0a6a1f1dSLionel Sambuc     xcb_sync_int64_t   value; /**<  */
384*0a6a1f1dSLionel Sambuc     uint32_t           testType; /**<  */
385*0a6a1f1dSLionel Sambuc     xcb_sync_int64_t   delta; /**<  */
386*0a6a1f1dSLionel Sambuc     uint32_t           events; /**<  */
387*0a6a1f1dSLionel Sambuc } xcb_sync_change_alarm_value_list_t;
388*0a6a1f1dSLionel Sambuc 
389971bb1a5SLionel Sambuc /** Opcode for xcb_sync_change_alarm. */
390971bb1a5SLionel Sambuc #define XCB_SYNC_CHANGE_ALARM 9
391971bb1a5SLionel Sambuc 
392971bb1a5SLionel Sambuc /**
393971bb1a5SLionel Sambuc  * @brief xcb_sync_change_alarm_request_t
394971bb1a5SLionel Sambuc  **/
395971bb1a5SLionel Sambuc typedef struct xcb_sync_change_alarm_request_t {
396971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
397971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
398971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
399971bb1a5SLionel Sambuc     xcb_sync_alarm_t id; /**<  */
400971bb1a5SLionel Sambuc     uint32_t         value_mask; /**<  */
401971bb1a5SLionel Sambuc } xcb_sync_change_alarm_request_t;
402971bb1a5SLionel Sambuc 
403971bb1a5SLionel Sambuc /** Opcode for xcb_sync_destroy_alarm. */
404971bb1a5SLionel Sambuc #define XCB_SYNC_DESTROY_ALARM 11
405971bb1a5SLionel Sambuc 
406971bb1a5SLionel Sambuc /**
407971bb1a5SLionel Sambuc  * @brief xcb_sync_destroy_alarm_request_t
408971bb1a5SLionel Sambuc  **/
409971bb1a5SLionel Sambuc typedef struct xcb_sync_destroy_alarm_request_t {
410971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
411971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
412971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
413971bb1a5SLionel Sambuc     xcb_sync_alarm_t alarm; /**<  */
414971bb1a5SLionel Sambuc } xcb_sync_destroy_alarm_request_t;
415971bb1a5SLionel Sambuc 
416971bb1a5SLionel Sambuc /**
417971bb1a5SLionel Sambuc  * @brief xcb_sync_query_alarm_cookie_t
418971bb1a5SLionel Sambuc  **/
419971bb1a5SLionel Sambuc typedef struct xcb_sync_query_alarm_cookie_t {
420971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
421971bb1a5SLionel Sambuc } xcb_sync_query_alarm_cookie_t;
422971bb1a5SLionel Sambuc 
423971bb1a5SLionel Sambuc /** Opcode for xcb_sync_query_alarm. */
424971bb1a5SLionel Sambuc #define XCB_SYNC_QUERY_ALARM 10
425971bb1a5SLionel Sambuc 
426971bb1a5SLionel Sambuc /**
427971bb1a5SLionel Sambuc  * @brief xcb_sync_query_alarm_request_t
428971bb1a5SLionel Sambuc  **/
429971bb1a5SLionel Sambuc typedef struct xcb_sync_query_alarm_request_t {
430971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
431971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
432971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
433971bb1a5SLionel Sambuc     xcb_sync_alarm_t alarm; /**<  */
434971bb1a5SLionel Sambuc } xcb_sync_query_alarm_request_t;
435971bb1a5SLionel Sambuc 
436971bb1a5SLionel Sambuc /**
437971bb1a5SLionel Sambuc  * @brief xcb_sync_query_alarm_reply_t
438971bb1a5SLionel Sambuc  **/
439971bb1a5SLionel Sambuc typedef struct xcb_sync_query_alarm_reply_t {
440971bb1a5SLionel Sambuc     uint8_t            response_type; /**<  */
441971bb1a5SLionel Sambuc     uint8_t            pad0; /**<  */
442971bb1a5SLionel Sambuc     uint16_t           sequence; /**<  */
443971bb1a5SLionel Sambuc     uint32_t           length; /**<  */
444971bb1a5SLionel Sambuc     xcb_sync_trigger_t trigger; /**<  */
445971bb1a5SLionel Sambuc     xcb_sync_int64_t   delta; /**<  */
446971bb1a5SLionel Sambuc     uint8_t            events; /**<  */
447971bb1a5SLionel Sambuc     uint8_t            state; /**<  */
448971bb1a5SLionel Sambuc     uint8_t            pad1[2]; /**<  */
449971bb1a5SLionel Sambuc } xcb_sync_query_alarm_reply_t;
450971bb1a5SLionel Sambuc 
451971bb1a5SLionel Sambuc /** Opcode for xcb_sync_set_priority. */
452971bb1a5SLionel Sambuc #define XCB_SYNC_SET_PRIORITY 12
453971bb1a5SLionel Sambuc 
454971bb1a5SLionel Sambuc /**
455971bb1a5SLionel Sambuc  * @brief xcb_sync_set_priority_request_t
456971bb1a5SLionel Sambuc  **/
457971bb1a5SLionel Sambuc typedef struct xcb_sync_set_priority_request_t {
458971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
459971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
460971bb1a5SLionel Sambuc     uint16_t length; /**<  */
461971bb1a5SLionel Sambuc     uint32_t id; /**<  */
462971bb1a5SLionel Sambuc     int32_t  priority; /**<  */
463971bb1a5SLionel Sambuc } xcb_sync_set_priority_request_t;
464971bb1a5SLionel Sambuc 
465971bb1a5SLionel Sambuc /**
466971bb1a5SLionel Sambuc  * @brief xcb_sync_get_priority_cookie_t
467971bb1a5SLionel Sambuc  **/
468971bb1a5SLionel Sambuc typedef struct xcb_sync_get_priority_cookie_t {
469971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
470971bb1a5SLionel Sambuc } xcb_sync_get_priority_cookie_t;
471971bb1a5SLionel Sambuc 
472971bb1a5SLionel Sambuc /** Opcode for xcb_sync_get_priority. */
473971bb1a5SLionel Sambuc #define XCB_SYNC_GET_PRIORITY 13
474971bb1a5SLionel Sambuc 
475971bb1a5SLionel Sambuc /**
476971bb1a5SLionel Sambuc  * @brief xcb_sync_get_priority_request_t
477971bb1a5SLionel Sambuc  **/
478971bb1a5SLionel Sambuc typedef struct xcb_sync_get_priority_request_t {
479971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
480971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
481971bb1a5SLionel Sambuc     uint16_t length; /**<  */
482971bb1a5SLionel Sambuc     uint32_t id; /**<  */
483971bb1a5SLionel Sambuc } xcb_sync_get_priority_request_t;
484971bb1a5SLionel Sambuc 
485971bb1a5SLionel Sambuc /**
486971bb1a5SLionel Sambuc  * @brief xcb_sync_get_priority_reply_t
487971bb1a5SLionel Sambuc  **/
488971bb1a5SLionel Sambuc typedef struct xcb_sync_get_priority_reply_t {
489971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
490971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
491971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
492971bb1a5SLionel Sambuc     uint32_t length; /**<  */
493971bb1a5SLionel Sambuc     int32_t  priority; /**<  */
494971bb1a5SLionel Sambuc } xcb_sync_get_priority_reply_t;
495971bb1a5SLionel Sambuc 
496971bb1a5SLionel Sambuc /** Opcode for xcb_sync_create_fence. */
497971bb1a5SLionel Sambuc #define XCB_SYNC_CREATE_FENCE 14
498971bb1a5SLionel Sambuc 
499971bb1a5SLionel Sambuc /**
500971bb1a5SLionel Sambuc  * @brief xcb_sync_create_fence_request_t
501971bb1a5SLionel Sambuc  **/
502971bb1a5SLionel Sambuc typedef struct xcb_sync_create_fence_request_t {
503971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
504971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
505971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
506971bb1a5SLionel Sambuc     xcb_drawable_t   drawable; /**<  */
507971bb1a5SLionel Sambuc     xcb_sync_fence_t fence; /**<  */
508971bb1a5SLionel Sambuc     uint8_t          initially_triggered; /**<  */
509971bb1a5SLionel Sambuc } xcb_sync_create_fence_request_t;
510971bb1a5SLionel Sambuc 
511971bb1a5SLionel Sambuc /** Opcode for xcb_sync_trigger_fence. */
512971bb1a5SLionel Sambuc #define XCB_SYNC_TRIGGER_FENCE 15
513971bb1a5SLionel Sambuc 
514971bb1a5SLionel Sambuc /**
515971bb1a5SLionel Sambuc  * @brief xcb_sync_trigger_fence_request_t
516971bb1a5SLionel Sambuc  **/
517971bb1a5SLionel Sambuc typedef struct xcb_sync_trigger_fence_request_t {
518971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
519971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
520971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
521971bb1a5SLionel Sambuc     xcb_sync_fence_t fence; /**<  */
522971bb1a5SLionel Sambuc } xcb_sync_trigger_fence_request_t;
523971bb1a5SLionel Sambuc 
524971bb1a5SLionel Sambuc /** Opcode for xcb_sync_reset_fence. */
525971bb1a5SLionel Sambuc #define XCB_SYNC_RESET_FENCE 16
526971bb1a5SLionel Sambuc 
527971bb1a5SLionel Sambuc /**
528971bb1a5SLionel Sambuc  * @brief xcb_sync_reset_fence_request_t
529971bb1a5SLionel Sambuc  **/
530971bb1a5SLionel Sambuc typedef struct xcb_sync_reset_fence_request_t {
531971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
532971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
533971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
534971bb1a5SLionel Sambuc     xcb_sync_fence_t fence; /**<  */
535971bb1a5SLionel Sambuc } xcb_sync_reset_fence_request_t;
536971bb1a5SLionel Sambuc 
537971bb1a5SLionel Sambuc /** Opcode for xcb_sync_destroy_fence. */
538971bb1a5SLionel Sambuc #define XCB_SYNC_DESTROY_FENCE 17
539971bb1a5SLionel Sambuc 
540971bb1a5SLionel Sambuc /**
541971bb1a5SLionel Sambuc  * @brief xcb_sync_destroy_fence_request_t
542971bb1a5SLionel Sambuc  **/
543971bb1a5SLionel Sambuc typedef struct xcb_sync_destroy_fence_request_t {
544971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
545971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
546971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
547971bb1a5SLionel Sambuc     xcb_sync_fence_t fence; /**<  */
548971bb1a5SLionel Sambuc } xcb_sync_destroy_fence_request_t;
549971bb1a5SLionel Sambuc 
550971bb1a5SLionel Sambuc /**
551971bb1a5SLionel Sambuc  * @brief xcb_sync_query_fence_cookie_t
552971bb1a5SLionel Sambuc  **/
553971bb1a5SLionel Sambuc typedef struct xcb_sync_query_fence_cookie_t {
554971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
555971bb1a5SLionel Sambuc } xcb_sync_query_fence_cookie_t;
556971bb1a5SLionel Sambuc 
557971bb1a5SLionel Sambuc /** Opcode for xcb_sync_query_fence. */
558971bb1a5SLionel Sambuc #define XCB_SYNC_QUERY_FENCE 18
559971bb1a5SLionel Sambuc 
560971bb1a5SLionel Sambuc /**
561971bb1a5SLionel Sambuc  * @brief xcb_sync_query_fence_request_t
562971bb1a5SLionel Sambuc  **/
563971bb1a5SLionel Sambuc typedef struct xcb_sync_query_fence_request_t {
564971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
565971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
566971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
567971bb1a5SLionel Sambuc     xcb_sync_fence_t fence; /**<  */
568971bb1a5SLionel Sambuc } xcb_sync_query_fence_request_t;
569971bb1a5SLionel Sambuc 
570971bb1a5SLionel Sambuc /**
571971bb1a5SLionel Sambuc  * @brief xcb_sync_query_fence_reply_t
572971bb1a5SLionel Sambuc  **/
573971bb1a5SLionel Sambuc typedef struct xcb_sync_query_fence_reply_t {
574971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
575971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
576971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
577971bb1a5SLionel Sambuc     uint32_t length; /**<  */
578971bb1a5SLionel Sambuc     uint8_t  triggered; /**<  */
579971bb1a5SLionel Sambuc     uint8_t  pad1[23]; /**<  */
580971bb1a5SLionel Sambuc } xcb_sync_query_fence_reply_t;
581971bb1a5SLionel Sambuc 
582971bb1a5SLionel Sambuc /** Opcode for xcb_sync_await_fence. */
583971bb1a5SLionel Sambuc #define XCB_SYNC_AWAIT_FENCE 19
584971bb1a5SLionel Sambuc 
585971bb1a5SLionel Sambuc /**
586971bb1a5SLionel Sambuc  * @brief xcb_sync_await_fence_request_t
587971bb1a5SLionel Sambuc  **/
588971bb1a5SLionel Sambuc typedef struct xcb_sync_await_fence_request_t {
589971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
590971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
591971bb1a5SLionel Sambuc     uint16_t length; /**<  */
592971bb1a5SLionel Sambuc } xcb_sync_await_fence_request_t;
593971bb1a5SLionel Sambuc 
594971bb1a5SLionel Sambuc /** Opcode for xcb_sync_counter_notify. */
595971bb1a5SLionel Sambuc #define XCB_SYNC_COUNTER_NOTIFY 0
596971bb1a5SLionel Sambuc 
597971bb1a5SLionel Sambuc /**
598971bb1a5SLionel Sambuc  * @brief xcb_sync_counter_notify_event_t
599971bb1a5SLionel Sambuc  **/
600971bb1a5SLionel Sambuc typedef struct xcb_sync_counter_notify_event_t {
601971bb1a5SLionel Sambuc     uint8_t            response_type; /**<  */
602971bb1a5SLionel Sambuc     uint8_t            kind; /**<  */
603971bb1a5SLionel Sambuc     uint16_t           sequence; /**<  */
604971bb1a5SLionel Sambuc     xcb_sync_counter_t counter; /**<  */
605971bb1a5SLionel Sambuc     xcb_sync_int64_t   wait_value; /**<  */
606971bb1a5SLionel Sambuc     xcb_sync_int64_t   counter_value; /**<  */
607971bb1a5SLionel Sambuc     xcb_timestamp_t    timestamp; /**<  */
608971bb1a5SLionel Sambuc     uint16_t           count; /**<  */
609971bb1a5SLionel Sambuc     uint8_t            destroyed; /**<  */
610971bb1a5SLionel Sambuc     uint8_t            pad0; /**<  */
611971bb1a5SLionel Sambuc } xcb_sync_counter_notify_event_t;
612971bb1a5SLionel Sambuc 
613971bb1a5SLionel Sambuc /** Opcode for xcb_sync_alarm_notify. */
614971bb1a5SLionel Sambuc #define XCB_SYNC_ALARM_NOTIFY 1
615971bb1a5SLionel Sambuc 
616971bb1a5SLionel Sambuc /**
617971bb1a5SLionel Sambuc  * @brief xcb_sync_alarm_notify_event_t
618971bb1a5SLionel Sambuc  **/
619971bb1a5SLionel Sambuc typedef struct xcb_sync_alarm_notify_event_t {
620971bb1a5SLionel Sambuc     uint8_t          response_type; /**<  */
621971bb1a5SLionel Sambuc     uint8_t          kind; /**<  */
622971bb1a5SLionel Sambuc     uint16_t         sequence; /**<  */
623971bb1a5SLionel Sambuc     xcb_sync_alarm_t alarm; /**<  */
624971bb1a5SLionel Sambuc     xcb_sync_int64_t counter_value; /**<  */
625971bb1a5SLionel Sambuc     xcb_sync_int64_t alarm_value; /**<  */
626971bb1a5SLionel Sambuc     xcb_timestamp_t  timestamp; /**<  */
627971bb1a5SLionel Sambuc     uint8_t          state; /**<  */
628971bb1a5SLionel Sambuc     uint8_t          pad0[3]; /**<  */
629971bb1a5SLionel Sambuc } xcb_sync_alarm_notify_event_t;
630971bb1a5SLionel Sambuc 
631971bb1a5SLionel Sambuc /**
632971bb1a5SLionel Sambuc  * Get the next element of the iterator
633971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_alarm_iterator_t
634971bb1a5SLionel Sambuc  *
635971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
636971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
637971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_alarm_t)
638971bb1a5SLionel Sambuc  */
639971bb1a5SLionel Sambuc void
640971bb1a5SLionel Sambuc xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i  /**< */);
641971bb1a5SLionel Sambuc 
642971bb1a5SLionel Sambuc /**
643971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
644971bb1a5SLionel Sambuc  * @param i An xcb_sync_alarm_iterator_t
645971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
646971bb1a5SLionel Sambuc  *
647971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
648971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
649971bb1a5SLionel Sambuc  * last element.
650971bb1a5SLionel Sambuc  */
651971bb1a5SLionel Sambuc xcb_generic_iterator_t
652971bb1a5SLionel Sambuc xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i  /**< */);
653971bb1a5SLionel Sambuc 
654971bb1a5SLionel Sambuc /**
655971bb1a5SLionel Sambuc  * Get the next element of the iterator
656971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_counter_iterator_t
657971bb1a5SLionel Sambuc  *
658971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
659971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
660971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_counter_t)
661971bb1a5SLionel Sambuc  */
662971bb1a5SLionel Sambuc void
663971bb1a5SLionel Sambuc xcb_sync_counter_next (xcb_sync_counter_iterator_t *i  /**< */);
664971bb1a5SLionel Sambuc 
665971bb1a5SLionel Sambuc /**
666971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
667971bb1a5SLionel Sambuc  * @param i An xcb_sync_counter_iterator_t
668971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
669971bb1a5SLionel Sambuc  *
670971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
671971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
672971bb1a5SLionel Sambuc  * last element.
673971bb1a5SLionel Sambuc  */
674971bb1a5SLionel Sambuc xcb_generic_iterator_t
675971bb1a5SLionel Sambuc xcb_sync_counter_end (xcb_sync_counter_iterator_t i  /**< */);
676971bb1a5SLionel Sambuc 
677971bb1a5SLionel Sambuc /**
678971bb1a5SLionel Sambuc  * Get the next element of the iterator
679971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_fence_iterator_t
680971bb1a5SLionel Sambuc  *
681971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
682971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
683971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_fence_t)
684971bb1a5SLionel Sambuc  */
685971bb1a5SLionel Sambuc void
686971bb1a5SLionel Sambuc xcb_sync_fence_next (xcb_sync_fence_iterator_t *i  /**< */);
687971bb1a5SLionel Sambuc 
688971bb1a5SLionel Sambuc /**
689971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
690971bb1a5SLionel Sambuc  * @param i An xcb_sync_fence_iterator_t
691971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
692971bb1a5SLionel Sambuc  *
693971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
694971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
695971bb1a5SLionel Sambuc  * last element.
696971bb1a5SLionel Sambuc  */
697971bb1a5SLionel Sambuc xcb_generic_iterator_t
698971bb1a5SLionel Sambuc xcb_sync_fence_end (xcb_sync_fence_iterator_t i  /**< */);
699971bb1a5SLionel Sambuc 
700971bb1a5SLionel Sambuc /**
701971bb1a5SLionel Sambuc  * Get the next element of the iterator
702971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_int64_iterator_t
703971bb1a5SLionel Sambuc  *
704971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
705971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
706971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_int64_t)
707971bb1a5SLionel Sambuc  */
708971bb1a5SLionel Sambuc void
709971bb1a5SLionel Sambuc xcb_sync_int64_next (xcb_sync_int64_iterator_t *i  /**< */);
710971bb1a5SLionel Sambuc 
711971bb1a5SLionel Sambuc /**
712971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
713971bb1a5SLionel Sambuc  * @param i An xcb_sync_int64_iterator_t
714971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
715971bb1a5SLionel Sambuc  *
716971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
717971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
718971bb1a5SLionel Sambuc  * last element.
719971bb1a5SLionel Sambuc  */
720971bb1a5SLionel Sambuc xcb_generic_iterator_t
721971bb1a5SLionel Sambuc xcb_sync_int64_end (xcb_sync_int64_iterator_t i  /**< */);
722971bb1a5SLionel Sambuc 
723971bb1a5SLionel Sambuc int
724971bb1a5SLionel Sambuc xcb_sync_systemcounter_sizeof (const void  *_buffer  /**< */);
725971bb1a5SLionel Sambuc 
726971bb1a5SLionel Sambuc char *
727971bb1a5SLionel Sambuc xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R  /**< */);
728971bb1a5SLionel Sambuc 
729971bb1a5SLionel Sambuc int
730971bb1a5SLionel Sambuc xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R  /**< */);
731971bb1a5SLionel Sambuc 
732971bb1a5SLionel Sambuc xcb_generic_iterator_t
733971bb1a5SLionel Sambuc xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R  /**< */);
734971bb1a5SLionel Sambuc 
735971bb1a5SLionel Sambuc /**
736971bb1a5SLionel Sambuc  * Get the next element of the iterator
737971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_systemcounter_iterator_t
738971bb1a5SLionel Sambuc  *
739971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
740971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
741971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_systemcounter_t)
742971bb1a5SLionel Sambuc  */
743971bb1a5SLionel Sambuc void
744971bb1a5SLionel Sambuc xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i  /**< */);
745971bb1a5SLionel Sambuc 
746971bb1a5SLionel Sambuc /**
747971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
748971bb1a5SLionel Sambuc  * @param i An xcb_sync_systemcounter_iterator_t
749971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
750971bb1a5SLionel Sambuc  *
751971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
752971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
753971bb1a5SLionel Sambuc  * last element.
754971bb1a5SLionel Sambuc  */
755971bb1a5SLionel Sambuc xcb_generic_iterator_t
756971bb1a5SLionel Sambuc xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i  /**< */);
757971bb1a5SLionel Sambuc 
758971bb1a5SLionel Sambuc /**
759971bb1a5SLionel Sambuc  * Get the next element of the iterator
760971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_trigger_iterator_t
761971bb1a5SLionel Sambuc  *
762971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
763971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
764971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_trigger_t)
765971bb1a5SLionel Sambuc  */
766971bb1a5SLionel Sambuc void
767971bb1a5SLionel Sambuc xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i  /**< */);
768971bb1a5SLionel Sambuc 
769971bb1a5SLionel Sambuc /**
770971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
771971bb1a5SLionel Sambuc  * @param i An xcb_sync_trigger_iterator_t
772971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
773971bb1a5SLionel Sambuc  *
774971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
775971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
776971bb1a5SLionel Sambuc  * last element.
777971bb1a5SLionel Sambuc  */
778971bb1a5SLionel Sambuc xcb_generic_iterator_t
779971bb1a5SLionel Sambuc xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i  /**< */);
780971bb1a5SLionel Sambuc 
781971bb1a5SLionel Sambuc /**
782971bb1a5SLionel Sambuc  * Get the next element of the iterator
783971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_sync_waitcondition_iterator_t
784971bb1a5SLionel Sambuc  *
785971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
786971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
787971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_sync_waitcondition_t)
788971bb1a5SLionel Sambuc  */
789971bb1a5SLionel Sambuc void
790971bb1a5SLionel Sambuc xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i  /**< */);
791971bb1a5SLionel Sambuc 
792971bb1a5SLionel Sambuc /**
793971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
794971bb1a5SLionel Sambuc  * @param i An xcb_sync_waitcondition_iterator_t
795971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
796971bb1a5SLionel Sambuc  *
797971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
798971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
799971bb1a5SLionel Sambuc  * last element.
800971bb1a5SLionel Sambuc  */
801971bb1a5SLionel Sambuc xcb_generic_iterator_t
802971bb1a5SLionel Sambuc xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i  /**< */);
803971bb1a5SLionel Sambuc 
804971bb1a5SLionel Sambuc /**
805971bb1a5SLionel Sambuc  *
806971bb1a5SLionel Sambuc  * @param c The connection
807971bb1a5SLionel Sambuc  * @return A cookie
808971bb1a5SLionel Sambuc  *
809971bb1a5SLionel Sambuc  * Delivers a request to the X server.
810971bb1a5SLionel Sambuc  *
811971bb1a5SLionel Sambuc  */
812971bb1a5SLionel Sambuc xcb_sync_initialize_cookie_t
813971bb1a5SLionel Sambuc xcb_sync_initialize (xcb_connection_t *c  /**< */,
814971bb1a5SLionel Sambuc                      uint8_t           desired_major_version  /**< */,
815971bb1a5SLionel Sambuc                      uint8_t           desired_minor_version  /**< */);
816971bb1a5SLionel Sambuc 
817971bb1a5SLionel Sambuc /**
818971bb1a5SLionel Sambuc  *
819971bb1a5SLionel Sambuc  * @param c The connection
820971bb1a5SLionel Sambuc  * @return A cookie
821971bb1a5SLionel Sambuc  *
822971bb1a5SLionel Sambuc  * Delivers a request to the X server.
823971bb1a5SLionel Sambuc  *
824971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
825971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
826971bb1a5SLionel Sambuc  * placed in the event queue.
827971bb1a5SLionel Sambuc  */
828971bb1a5SLionel Sambuc xcb_sync_initialize_cookie_t
829971bb1a5SLionel Sambuc xcb_sync_initialize_unchecked (xcb_connection_t *c  /**< */,
830971bb1a5SLionel Sambuc                                uint8_t           desired_major_version  /**< */,
831971bb1a5SLionel Sambuc                                uint8_t           desired_minor_version  /**< */);
832971bb1a5SLionel Sambuc 
833971bb1a5SLionel Sambuc /**
834971bb1a5SLionel Sambuc  * Return the reply
835971bb1a5SLionel Sambuc  * @param c      The connection
836971bb1a5SLionel Sambuc  * @param cookie The cookie
837971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
838971bb1a5SLionel Sambuc  *
839971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
840971bb1a5SLionel Sambuc  *
841971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
842971bb1a5SLionel Sambuc  * xcb_sync_initialize_unchecked(). is used.
843971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
844971bb1a5SLionel Sambuc  *
845971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
846971bb1a5SLionel Sambuc  */
847971bb1a5SLionel Sambuc xcb_sync_initialize_reply_t *
848971bb1a5SLionel Sambuc xcb_sync_initialize_reply (xcb_connection_t              *c  /**< */,
849971bb1a5SLionel Sambuc                            xcb_sync_initialize_cookie_t   cookie  /**< */,
850971bb1a5SLionel Sambuc                            xcb_generic_error_t          **e  /**< */);
851971bb1a5SLionel Sambuc 
852971bb1a5SLionel Sambuc int
853971bb1a5SLionel Sambuc xcb_sync_list_system_counters_sizeof (const void  *_buffer  /**< */);
854971bb1a5SLionel Sambuc 
855971bb1a5SLionel Sambuc /**
856971bb1a5SLionel Sambuc  *
857971bb1a5SLionel Sambuc  * @param c The connection
858971bb1a5SLionel Sambuc  * @return A cookie
859971bb1a5SLionel Sambuc  *
860971bb1a5SLionel Sambuc  * Delivers a request to the X server.
861971bb1a5SLionel Sambuc  *
862971bb1a5SLionel Sambuc  */
863971bb1a5SLionel Sambuc xcb_sync_list_system_counters_cookie_t
864971bb1a5SLionel Sambuc xcb_sync_list_system_counters (xcb_connection_t *c  /**< */);
865971bb1a5SLionel Sambuc 
866971bb1a5SLionel Sambuc /**
867971bb1a5SLionel Sambuc  *
868971bb1a5SLionel Sambuc  * @param c The connection
869971bb1a5SLionel Sambuc  * @return A cookie
870971bb1a5SLionel Sambuc  *
871971bb1a5SLionel Sambuc  * Delivers a request to the X server.
872971bb1a5SLionel Sambuc  *
873971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
874971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
875971bb1a5SLionel Sambuc  * placed in the event queue.
876971bb1a5SLionel Sambuc  */
877971bb1a5SLionel Sambuc xcb_sync_list_system_counters_cookie_t
878971bb1a5SLionel Sambuc xcb_sync_list_system_counters_unchecked (xcb_connection_t *c  /**< */);
879971bb1a5SLionel Sambuc 
880971bb1a5SLionel Sambuc int
881971bb1a5SLionel Sambuc xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R  /**< */);
882971bb1a5SLionel Sambuc 
883971bb1a5SLionel Sambuc xcb_sync_systemcounter_iterator_t
884971bb1a5SLionel Sambuc xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R  /**< */);
885971bb1a5SLionel Sambuc 
886971bb1a5SLionel Sambuc /**
887971bb1a5SLionel Sambuc  * Return the reply
888971bb1a5SLionel Sambuc  * @param c      The connection
889971bb1a5SLionel Sambuc  * @param cookie The cookie
890971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
891971bb1a5SLionel Sambuc  *
892971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
893971bb1a5SLionel Sambuc  *
894971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
895971bb1a5SLionel Sambuc  * xcb_sync_list_system_counters_unchecked(). is used.
896971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
897971bb1a5SLionel Sambuc  *
898971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
899971bb1a5SLionel Sambuc  */
900971bb1a5SLionel Sambuc xcb_sync_list_system_counters_reply_t *
901971bb1a5SLionel Sambuc xcb_sync_list_system_counters_reply (xcb_connection_t                        *c  /**< */,
902971bb1a5SLionel Sambuc                                      xcb_sync_list_system_counters_cookie_t   cookie  /**< */,
903971bb1a5SLionel Sambuc                                      xcb_generic_error_t                    **e  /**< */);
904971bb1a5SLionel Sambuc 
905971bb1a5SLionel Sambuc /**
906971bb1a5SLionel Sambuc  *
907971bb1a5SLionel Sambuc  * @param c The connection
908971bb1a5SLionel Sambuc  * @return A cookie
909971bb1a5SLionel Sambuc  *
910971bb1a5SLionel Sambuc  * Delivers a request to the X server.
911971bb1a5SLionel Sambuc  *
912971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
913971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
914971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
915971bb1a5SLionel Sambuc  */
916971bb1a5SLionel Sambuc xcb_void_cookie_t
917971bb1a5SLionel Sambuc xcb_sync_create_counter_checked (xcb_connection_t   *c  /**< */,
918971bb1a5SLionel Sambuc                                  xcb_sync_counter_t  id  /**< */,
919971bb1a5SLionel Sambuc                                  xcb_sync_int64_t    initial_value  /**< */);
920971bb1a5SLionel Sambuc 
921971bb1a5SLionel Sambuc /**
922971bb1a5SLionel Sambuc  *
923971bb1a5SLionel Sambuc  * @param c The connection
924971bb1a5SLionel Sambuc  * @return A cookie
925971bb1a5SLionel Sambuc  *
926971bb1a5SLionel Sambuc  * Delivers a request to the X server.
927971bb1a5SLionel Sambuc  *
928971bb1a5SLionel Sambuc  */
929971bb1a5SLionel Sambuc xcb_void_cookie_t
930971bb1a5SLionel Sambuc xcb_sync_create_counter (xcb_connection_t   *c  /**< */,
931971bb1a5SLionel Sambuc                          xcb_sync_counter_t  id  /**< */,
932971bb1a5SLionel Sambuc                          xcb_sync_int64_t    initial_value  /**< */);
933971bb1a5SLionel Sambuc 
934971bb1a5SLionel Sambuc /**
935971bb1a5SLionel Sambuc  *
936971bb1a5SLionel Sambuc  * @param c The connection
937971bb1a5SLionel Sambuc  * @return A cookie
938971bb1a5SLionel Sambuc  *
939971bb1a5SLionel Sambuc  * Delivers a request to the X server.
940971bb1a5SLionel Sambuc  *
941971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
942971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
943971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
944971bb1a5SLionel Sambuc  */
945971bb1a5SLionel Sambuc xcb_void_cookie_t
946971bb1a5SLionel Sambuc xcb_sync_destroy_counter_checked (xcb_connection_t   *c  /**< */,
947971bb1a5SLionel Sambuc                                   xcb_sync_counter_t  counter  /**< */);
948971bb1a5SLionel Sambuc 
949971bb1a5SLionel Sambuc /**
950971bb1a5SLionel Sambuc  *
951971bb1a5SLionel Sambuc  * @param c The connection
952971bb1a5SLionel Sambuc  * @return A cookie
953971bb1a5SLionel Sambuc  *
954971bb1a5SLionel Sambuc  * Delivers a request to the X server.
955971bb1a5SLionel Sambuc  *
956971bb1a5SLionel Sambuc  */
957971bb1a5SLionel Sambuc xcb_void_cookie_t
958971bb1a5SLionel Sambuc xcb_sync_destroy_counter (xcb_connection_t   *c  /**< */,
959971bb1a5SLionel Sambuc                           xcb_sync_counter_t  counter  /**< */);
960971bb1a5SLionel Sambuc 
961971bb1a5SLionel Sambuc /**
962971bb1a5SLionel Sambuc  *
963971bb1a5SLionel Sambuc  * @param c The connection
964971bb1a5SLionel Sambuc  * @return A cookie
965971bb1a5SLionel Sambuc  *
966971bb1a5SLionel Sambuc  * Delivers a request to the X server.
967971bb1a5SLionel Sambuc  *
968971bb1a5SLionel Sambuc  */
969971bb1a5SLionel Sambuc xcb_sync_query_counter_cookie_t
970971bb1a5SLionel Sambuc xcb_sync_query_counter (xcb_connection_t   *c  /**< */,
971971bb1a5SLionel Sambuc                         xcb_sync_counter_t  counter  /**< */);
972971bb1a5SLionel Sambuc 
973971bb1a5SLionel Sambuc /**
974971bb1a5SLionel Sambuc  *
975971bb1a5SLionel Sambuc  * @param c The connection
976971bb1a5SLionel Sambuc  * @return A cookie
977971bb1a5SLionel Sambuc  *
978971bb1a5SLionel Sambuc  * Delivers a request to the X server.
979971bb1a5SLionel Sambuc  *
980971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
981971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
982971bb1a5SLionel Sambuc  * placed in the event queue.
983971bb1a5SLionel Sambuc  */
984971bb1a5SLionel Sambuc xcb_sync_query_counter_cookie_t
985971bb1a5SLionel Sambuc xcb_sync_query_counter_unchecked (xcb_connection_t   *c  /**< */,
986971bb1a5SLionel Sambuc                                   xcb_sync_counter_t  counter  /**< */);
987971bb1a5SLionel Sambuc 
988971bb1a5SLionel Sambuc /**
989971bb1a5SLionel Sambuc  * Return the reply
990971bb1a5SLionel Sambuc  * @param c      The connection
991971bb1a5SLionel Sambuc  * @param cookie The cookie
992971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
993971bb1a5SLionel Sambuc  *
994971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
995971bb1a5SLionel Sambuc  *
996971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
997971bb1a5SLionel Sambuc  * xcb_sync_query_counter_unchecked(). is used.
998971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
999971bb1a5SLionel Sambuc  *
1000971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1001971bb1a5SLionel Sambuc  */
1002971bb1a5SLionel Sambuc xcb_sync_query_counter_reply_t *
1003971bb1a5SLionel Sambuc xcb_sync_query_counter_reply (xcb_connection_t                 *c  /**< */,
1004971bb1a5SLionel Sambuc                               xcb_sync_query_counter_cookie_t   cookie  /**< */,
1005971bb1a5SLionel Sambuc                               xcb_generic_error_t             **e  /**< */);
1006971bb1a5SLionel Sambuc 
1007971bb1a5SLionel Sambuc int
1008971bb1a5SLionel Sambuc xcb_sync_await_sizeof (const void  *_buffer  /**< */,
1009971bb1a5SLionel Sambuc                        uint32_t     wait_list_len  /**< */);
1010971bb1a5SLionel Sambuc 
1011971bb1a5SLionel Sambuc /**
1012971bb1a5SLionel Sambuc  *
1013971bb1a5SLionel Sambuc  * @param c The connection
1014971bb1a5SLionel Sambuc  * @return A cookie
1015971bb1a5SLionel Sambuc  *
1016971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1017971bb1a5SLionel Sambuc  *
1018971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1019971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1020971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1021971bb1a5SLionel Sambuc  */
1022971bb1a5SLionel Sambuc xcb_void_cookie_t
1023971bb1a5SLionel Sambuc xcb_sync_await_checked (xcb_connection_t               *c  /**< */,
1024971bb1a5SLionel Sambuc                         uint32_t                        wait_list_len  /**< */,
1025971bb1a5SLionel Sambuc                         const xcb_sync_waitcondition_t *wait_list  /**< */);
1026971bb1a5SLionel Sambuc 
1027971bb1a5SLionel Sambuc /**
1028971bb1a5SLionel Sambuc  *
1029971bb1a5SLionel Sambuc  * @param c The connection
1030971bb1a5SLionel Sambuc  * @return A cookie
1031971bb1a5SLionel Sambuc  *
1032971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1033971bb1a5SLionel Sambuc  *
1034971bb1a5SLionel Sambuc  */
1035971bb1a5SLionel Sambuc xcb_void_cookie_t
1036971bb1a5SLionel Sambuc xcb_sync_await (xcb_connection_t               *c  /**< */,
1037971bb1a5SLionel Sambuc                 uint32_t                        wait_list_len  /**< */,
1038971bb1a5SLionel Sambuc                 const xcb_sync_waitcondition_t *wait_list  /**< */);
1039971bb1a5SLionel Sambuc 
1040971bb1a5SLionel Sambuc /**
1041971bb1a5SLionel Sambuc  *
1042971bb1a5SLionel Sambuc  * @param c The connection
1043971bb1a5SLionel Sambuc  * @return A cookie
1044971bb1a5SLionel Sambuc  *
1045971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1046971bb1a5SLionel Sambuc  *
1047971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1048971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1049971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1050971bb1a5SLionel Sambuc  */
1051971bb1a5SLionel Sambuc xcb_void_cookie_t
1052971bb1a5SLionel Sambuc xcb_sync_change_counter_checked (xcb_connection_t   *c  /**< */,
1053971bb1a5SLionel Sambuc                                  xcb_sync_counter_t  counter  /**< */,
1054971bb1a5SLionel Sambuc                                  xcb_sync_int64_t    amount  /**< */);
1055971bb1a5SLionel Sambuc 
1056971bb1a5SLionel Sambuc /**
1057971bb1a5SLionel Sambuc  *
1058971bb1a5SLionel Sambuc  * @param c The connection
1059971bb1a5SLionel Sambuc  * @return A cookie
1060971bb1a5SLionel Sambuc  *
1061971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1062971bb1a5SLionel Sambuc  *
1063971bb1a5SLionel Sambuc  */
1064971bb1a5SLionel Sambuc xcb_void_cookie_t
1065971bb1a5SLionel Sambuc xcb_sync_change_counter (xcb_connection_t   *c  /**< */,
1066971bb1a5SLionel Sambuc                          xcb_sync_counter_t  counter  /**< */,
1067971bb1a5SLionel Sambuc                          xcb_sync_int64_t    amount  /**< */);
1068971bb1a5SLionel Sambuc 
1069971bb1a5SLionel Sambuc /**
1070971bb1a5SLionel Sambuc  *
1071971bb1a5SLionel Sambuc  * @param c The connection
1072971bb1a5SLionel Sambuc  * @return A cookie
1073971bb1a5SLionel Sambuc  *
1074971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1075971bb1a5SLionel Sambuc  *
1076971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1077971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1078971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1079971bb1a5SLionel Sambuc  */
1080971bb1a5SLionel Sambuc xcb_void_cookie_t
1081971bb1a5SLionel Sambuc xcb_sync_set_counter_checked (xcb_connection_t   *c  /**< */,
1082971bb1a5SLionel Sambuc                               xcb_sync_counter_t  counter  /**< */,
1083971bb1a5SLionel Sambuc                               xcb_sync_int64_t    value  /**< */);
1084971bb1a5SLionel Sambuc 
1085971bb1a5SLionel Sambuc /**
1086971bb1a5SLionel Sambuc  *
1087971bb1a5SLionel Sambuc  * @param c The connection
1088971bb1a5SLionel Sambuc  * @return A cookie
1089971bb1a5SLionel Sambuc  *
1090971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1091971bb1a5SLionel Sambuc  *
1092971bb1a5SLionel Sambuc  */
1093971bb1a5SLionel Sambuc xcb_void_cookie_t
1094971bb1a5SLionel Sambuc xcb_sync_set_counter (xcb_connection_t   *c  /**< */,
1095971bb1a5SLionel Sambuc                       xcb_sync_counter_t  counter  /**< */,
1096971bb1a5SLionel Sambuc                       xcb_sync_int64_t    value  /**< */);
1097971bb1a5SLionel Sambuc 
1098971bb1a5SLionel Sambuc int
1099*0a6a1f1dSLionel Sambuc xcb_sync_create_alarm_value_list_serialize (void                                     **_buffer  /**< */,
1100*0a6a1f1dSLionel Sambuc                                             uint32_t                                   value_mask  /**< */,
1101*0a6a1f1dSLionel Sambuc                                             const xcb_sync_create_alarm_value_list_t  *_aux  /**< */);
1102*0a6a1f1dSLionel Sambuc 
1103*0a6a1f1dSLionel Sambuc int
1104*0a6a1f1dSLionel Sambuc xcb_sync_create_alarm_value_list_unpack (const void                          *_buffer  /**< */,
1105*0a6a1f1dSLionel Sambuc                                          uint32_t                             value_mask  /**< */,
1106*0a6a1f1dSLionel Sambuc                                          xcb_sync_create_alarm_value_list_t  *_aux  /**< */);
1107*0a6a1f1dSLionel Sambuc 
1108*0a6a1f1dSLionel Sambuc int
1109*0a6a1f1dSLionel Sambuc xcb_sync_create_alarm_value_list_sizeof (const void  *_buffer  /**< */,
1110*0a6a1f1dSLionel Sambuc                                          uint32_t     value_mask  /**< */);
1111971bb1a5SLionel Sambuc 
1112971bb1a5SLionel Sambuc /**
1113971bb1a5SLionel Sambuc  *
1114971bb1a5SLionel Sambuc  * @param c The connection
1115971bb1a5SLionel Sambuc  * @return A cookie
1116971bb1a5SLionel Sambuc  *
1117971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1118971bb1a5SLionel Sambuc  *
1119971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1120971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1121971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1122971bb1a5SLionel Sambuc  */
1123971bb1a5SLionel Sambuc xcb_void_cookie_t
1124971bb1a5SLionel Sambuc xcb_sync_create_alarm_checked (xcb_connection_t *c  /**< */,
1125971bb1a5SLionel Sambuc                                xcb_sync_alarm_t  id  /**< */,
1126971bb1a5SLionel Sambuc                                uint32_t          value_mask  /**< */,
1127*0a6a1f1dSLionel Sambuc                                const void       *value_list  /**< */);
1128971bb1a5SLionel Sambuc 
1129971bb1a5SLionel Sambuc /**
1130971bb1a5SLionel Sambuc  *
1131971bb1a5SLionel Sambuc  * @param c The connection
1132971bb1a5SLionel Sambuc  * @return A cookie
1133971bb1a5SLionel Sambuc  *
1134971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1135971bb1a5SLionel Sambuc  *
1136971bb1a5SLionel Sambuc  */
1137971bb1a5SLionel Sambuc xcb_void_cookie_t
1138971bb1a5SLionel Sambuc xcb_sync_create_alarm (xcb_connection_t *c  /**< */,
1139971bb1a5SLionel Sambuc                        xcb_sync_alarm_t  id  /**< */,
1140971bb1a5SLionel Sambuc                        uint32_t          value_mask  /**< */,
1141*0a6a1f1dSLionel Sambuc                        const void       *value_list  /**< */);
1142971bb1a5SLionel Sambuc 
1143971bb1a5SLionel Sambuc /**
1144971bb1a5SLionel Sambuc  *
1145971bb1a5SLionel Sambuc  * @param c The connection
1146971bb1a5SLionel Sambuc  * @return A cookie
1147971bb1a5SLionel Sambuc  *
1148971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1149971bb1a5SLionel Sambuc  *
1150971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1151971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1152971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1153971bb1a5SLionel Sambuc  */
1154*0a6a1f1dSLionel Sambuc xcb_void_cookie_t
1155*0a6a1f1dSLionel Sambuc xcb_sync_create_alarm_aux_checked (xcb_connection_t                         *c  /**< */,
1156*0a6a1f1dSLionel Sambuc                                    xcb_sync_alarm_t                          id  /**< */,
1157*0a6a1f1dSLionel Sambuc                                    uint32_t                                  value_mask  /**< */,
1158*0a6a1f1dSLionel Sambuc                                    const xcb_sync_create_alarm_value_list_t *value_list  /**< */);
1159971bb1a5SLionel Sambuc 
1160*0a6a1f1dSLionel Sambuc /**
1161*0a6a1f1dSLionel Sambuc  *
1162*0a6a1f1dSLionel Sambuc  * @param c The connection
1163*0a6a1f1dSLionel Sambuc  * @return A cookie
1164*0a6a1f1dSLionel Sambuc  *
1165*0a6a1f1dSLionel Sambuc  * Delivers a request to the X server.
1166*0a6a1f1dSLionel Sambuc  *
1167*0a6a1f1dSLionel Sambuc  */
1168*0a6a1f1dSLionel Sambuc xcb_void_cookie_t
1169*0a6a1f1dSLionel Sambuc xcb_sync_create_alarm_aux (xcb_connection_t                         *c  /**< */,
1170*0a6a1f1dSLionel Sambuc                            xcb_sync_alarm_t                          id  /**< */,
1171*0a6a1f1dSLionel Sambuc                            uint32_t                                  value_mask  /**< */,
1172*0a6a1f1dSLionel Sambuc                            const xcb_sync_create_alarm_value_list_t *value_list  /**< */);
1173971bb1a5SLionel Sambuc 
1174*0a6a1f1dSLionel Sambuc int
1175*0a6a1f1dSLionel Sambuc xcb_sync_change_alarm_value_list_serialize (void                                     **_buffer  /**< */,
1176*0a6a1f1dSLionel Sambuc                                             uint32_t                                   value_mask  /**< */,
1177*0a6a1f1dSLionel Sambuc                                             const xcb_sync_change_alarm_value_list_t  *_aux  /**< */);
1178*0a6a1f1dSLionel Sambuc 
1179*0a6a1f1dSLionel Sambuc int
1180*0a6a1f1dSLionel Sambuc xcb_sync_change_alarm_value_list_unpack (const void                          *_buffer  /**< */,
1181*0a6a1f1dSLionel Sambuc                                          uint32_t                             value_mask  /**< */,
1182*0a6a1f1dSLionel Sambuc                                          xcb_sync_change_alarm_value_list_t  *_aux  /**< */);
1183*0a6a1f1dSLionel Sambuc 
1184*0a6a1f1dSLionel Sambuc int
1185*0a6a1f1dSLionel Sambuc xcb_sync_change_alarm_value_list_sizeof (const void  *_buffer  /**< */,
1186*0a6a1f1dSLionel Sambuc                                          uint32_t     value_mask  /**< */);
1187*0a6a1f1dSLionel Sambuc 
1188*0a6a1f1dSLionel Sambuc /**
1189*0a6a1f1dSLionel Sambuc  *
1190*0a6a1f1dSLionel Sambuc  * @param c The connection
1191*0a6a1f1dSLionel Sambuc  * @return A cookie
1192*0a6a1f1dSLionel Sambuc  *
1193*0a6a1f1dSLionel Sambuc  * Delivers a request to the X server.
1194*0a6a1f1dSLionel Sambuc  *
1195*0a6a1f1dSLionel Sambuc  * This form can be used only if the request will not cause
1196*0a6a1f1dSLionel Sambuc  * a reply to be generated. Any returned error will be
1197*0a6a1f1dSLionel Sambuc  * saved for handling by xcb_request_check().
1198*0a6a1f1dSLionel Sambuc  */
1199971bb1a5SLionel Sambuc xcb_void_cookie_t
1200971bb1a5SLionel Sambuc xcb_sync_change_alarm_checked (xcb_connection_t *c  /**< */,
1201971bb1a5SLionel Sambuc                                xcb_sync_alarm_t  id  /**< */,
1202971bb1a5SLionel Sambuc                                uint32_t          value_mask  /**< */,
1203*0a6a1f1dSLionel Sambuc                                const void       *value_list  /**< */);
1204971bb1a5SLionel Sambuc 
1205971bb1a5SLionel Sambuc /**
1206971bb1a5SLionel Sambuc  *
1207971bb1a5SLionel Sambuc  * @param c The connection
1208971bb1a5SLionel Sambuc  * @return A cookie
1209971bb1a5SLionel Sambuc  *
1210971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1211971bb1a5SLionel Sambuc  *
1212971bb1a5SLionel Sambuc  */
1213971bb1a5SLionel Sambuc xcb_void_cookie_t
1214971bb1a5SLionel Sambuc xcb_sync_change_alarm (xcb_connection_t *c  /**< */,
1215971bb1a5SLionel Sambuc                        xcb_sync_alarm_t  id  /**< */,
1216971bb1a5SLionel Sambuc                        uint32_t          value_mask  /**< */,
1217*0a6a1f1dSLionel Sambuc                        const void       *value_list  /**< */);
1218971bb1a5SLionel Sambuc 
1219971bb1a5SLionel Sambuc /**
1220971bb1a5SLionel Sambuc  *
1221971bb1a5SLionel Sambuc  * @param c The connection
1222971bb1a5SLionel Sambuc  * @return A cookie
1223971bb1a5SLionel Sambuc  *
1224971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1225971bb1a5SLionel Sambuc  *
1226971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1227971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1228971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1229971bb1a5SLionel Sambuc  */
1230*0a6a1f1dSLionel Sambuc xcb_void_cookie_t
1231*0a6a1f1dSLionel Sambuc xcb_sync_change_alarm_aux_checked (xcb_connection_t                         *c  /**< */,
1232*0a6a1f1dSLionel Sambuc                                    xcb_sync_alarm_t                          id  /**< */,
1233*0a6a1f1dSLionel Sambuc                                    uint32_t                                  value_mask  /**< */,
1234*0a6a1f1dSLionel Sambuc                                    const xcb_sync_change_alarm_value_list_t *value_list  /**< */);
1235971bb1a5SLionel Sambuc 
1236*0a6a1f1dSLionel Sambuc /**
1237*0a6a1f1dSLionel Sambuc  *
1238*0a6a1f1dSLionel Sambuc  * @param c The connection
1239*0a6a1f1dSLionel Sambuc  * @return A cookie
1240*0a6a1f1dSLionel Sambuc  *
1241*0a6a1f1dSLionel Sambuc  * Delivers a request to the X server.
1242*0a6a1f1dSLionel Sambuc  *
1243*0a6a1f1dSLionel Sambuc  */
1244*0a6a1f1dSLionel Sambuc xcb_void_cookie_t
1245*0a6a1f1dSLionel Sambuc xcb_sync_change_alarm_aux (xcb_connection_t                         *c  /**< */,
1246*0a6a1f1dSLionel Sambuc                            xcb_sync_alarm_t                          id  /**< */,
1247*0a6a1f1dSLionel Sambuc                            uint32_t                                  value_mask  /**< */,
1248*0a6a1f1dSLionel Sambuc                            const xcb_sync_change_alarm_value_list_t *value_list  /**< */);
1249971bb1a5SLionel Sambuc 
1250*0a6a1f1dSLionel Sambuc /**
1251*0a6a1f1dSLionel Sambuc  *
1252*0a6a1f1dSLionel Sambuc  * @param c The connection
1253*0a6a1f1dSLionel Sambuc  * @return A cookie
1254*0a6a1f1dSLionel Sambuc  *
1255*0a6a1f1dSLionel Sambuc  * Delivers a request to the X server.
1256*0a6a1f1dSLionel Sambuc  *
1257*0a6a1f1dSLionel Sambuc  * This form can be used only if the request will not cause
1258*0a6a1f1dSLionel Sambuc  * a reply to be generated. Any returned error will be
1259*0a6a1f1dSLionel Sambuc  * saved for handling by xcb_request_check().
1260*0a6a1f1dSLionel Sambuc  */
1261971bb1a5SLionel Sambuc xcb_void_cookie_t
1262971bb1a5SLionel Sambuc xcb_sync_destroy_alarm_checked (xcb_connection_t *c  /**< */,
1263971bb1a5SLionel Sambuc                                 xcb_sync_alarm_t  alarm  /**< */);
1264971bb1a5SLionel Sambuc 
1265971bb1a5SLionel Sambuc /**
1266971bb1a5SLionel Sambuc  *
1267971bb1a5SLionel Sambuc  * @param c The connection
1268971bb1a5SLionel Sambuc  * @return A cookie
1269971bb1a5SLionel Sambuc  *
1270971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1271971bb1a5SLionel Sambuc  *
1272971bb1a5SLionel Sambuc  */
1273971bb1a5SLionel Sambuc xcb_void_cookie_t
1274971bb1a5SLionel Sambuc xcb_sync_destroy_alarm (xcb_connection_t *c  /**< */,
1275971bb1a5SLionel Sambuc                         xcb_sync_alarm_t  alarm  /**< */);
1276971bb1a5SLionel Sambuc 
1277971bb1a5SLionel Sambuc /**
1278971bb1a5SLionel Sambuc  *
1279971bb1a5SLionel Sambuc  * @param c The connection
1280971bb1a5SLionel Sambuc  * @return A cookie
1281971bb1a5SLionel Sambuc  *
1282971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1283971bb1a5SLionel Sambuc  *
1284971bb1a5SLionel Sambuc  */
1285971bb1a5SLionel Sambuc xcb_sync_query_alarm_cookie_t
1286971bb1a5SLionel Sambuc xcb_sync_query_alarm (xcb_connection_t *c  /**< */,
1287971bb1a5SLionel Sambuc                       xcb_sync_alarm_t  alarm  /**< */);
1288971bb1a5SLionel Sambuc 
1289971bb1a5SLionel Sambuc /**
1290971bb1a5SLionel Sambuc  *
1291971bb1a5SLionel Sambuc  * @param c The connection
1292971bb1a5SLionel Sambuc  * @return A cookie
1293971bb1a5SLionel Sambuc  *
1294971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1295971bb1a5SLionel Sambuc  *
1296971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1297971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1298971bb1a5SLionel Sambuc  * placed in the event queue.
1299971bb1a5SLionel Sambuc  */
1300971bb1a5SLionel Sambuc xcb_sync_query_alarm_cookie_t
1301971bb1a5SLionel Sambuc xcb_sync_query_alarm_unchecked (xcb_connection_t *c  /**< */,
1302971bb1a5SLionel Sambuc                                 xcb_sync_alarm_t  alarm  /**< */);
1303971bb1a5SLionel Sambuc 
1304971bb1a5SLionel Sambuc /**
1305971bb1a5SLionel Sambuc  * Return the reply
1306971bb1a5SLionel Sambuc  * @param c      The connection
1307971bb1a5SLionel Sambuc  * @param cookie The cookie
1308971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1309971bb1a5SLionel Sambuc  *
1310971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1311971bb1a5SLionel Sambuc  *
1312971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1313971bb1a5SLionel Sambuc  * xcb_sync_query_alarm_unchecked(). is used.
1314971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1315971bb1a5SLionel Sambuc  *
1316971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1317971bb1a5SLionel Sambuc  */
1318971bb1a5SLionel Sambuc xcb_sync_query_alarm_reply_t *
1319971bb1a5SLionel Sambuc xcb_sync_query_alarm_reply (xcb_connection_t               *c  /**< */,
1320971bb1a5SLionel Sambuc                             xcb_sync_query_alarm_cookie_t   cookie  /**< */,
1321971bb1a5SLionel Sambuc                             xcb_generic_error_t           **e  /**< */);
1322971bb1a5SLionel Sambuc 
1323971bb1a5SLionel Sambuc /**
1324971bb1a5SLionel Sambuc  *
1325971bb1a5SLionel Sambuc  * @param c The connection
1326971bb1a5SLionel Sambuc  * @return A cookie
1327971bb1a5SLionel Sambuc  *
1328971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1329971bb1a5SLionel Sambuc  *
1330971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1331971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1332971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1333971bb1a5SLionel Sambuc  */
1334971bb1a5SLionel Sambuc xcb_void_cookie_t
1335971bb1a5SLionel Sambuc xcb_sync_set_priority_checked (xcb_connection_t *c  /**< */,
1336971bb1a5SLionel Sambuc                                uint32_t          id  /**< */,
1337971bb1a5SLionel Sambuc                                int32_t           priority  /**< */);
1338971bb1a5SLionel Sambuc 
1339971bb1a5SLionel Sambuc /**
1340971bb1a5SLionel Sambuc  *
1341971bb1a5SLionel Sambuc  * @param c The connection
1342971bb1a5SLionel Sambuc  * @return A cookie
1343971bb1a5SLionel Sambuc  *
1344971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1345971bb1a5SLionel Sambuc  *
1346971bb1a5SLionel Sambuc  */
1347971bb1a5SLionel Sambuc xcb_void_cookie_t
1348971bb1a5SLionel Sambuc xcb_sync_set_priority (xcb_connection_t *c  /**< */,
1349971bb1a5SLionel Sambuc                        uint32_t          id  /**< */,
1350971bb1a5SLionel Sambuc                        int32_t           priority  /**< */);
1351971bb1a5SLionel Sambuc 
1352971bb1a5SLionel Sambuc /**
1353971bb1a5SLionel Sambuc  *
1354971bb1a5SLionel Sambuc  * @param c The connection
1355971bb1a5SLionel Sambuc  * @return A cookie
1356971bb1a5SLionel Sambuc  *
1357971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1358971bb1a5SLionel Sambuc  *
1359971bb1a5SLionel Sambuc  */
1360971bb1a5SLionel Sambuc xcb_sync_get_priority_cookie_t
1361971bb1a5SLionel Sambuc xcb_sync_get_priority (xcb_connection_t *c  /**< */,
1362971bb1a5SLionel Sambuc                        uint32_t          id  /**< */);
1363971bb1a5SLionel Sambuc 
1364971bb1a5SLionel Sambuc /**
1365971bb1a5SLionel Sambuc  *
1366971bb1a5SLionel Sambuc  * @param c The connection
1367971bb1a5SLionel Sambuc  * @return A cookie
1368971bb1a5SLionel Sambuc  *
1369971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1370971bb1a5SLionel Sambuc  *
1371971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1372971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1373971bb1a5SLionel Sambuc  * placed in the event queue.
1374971bb1a5SLionel Sambuc  */
1375971bb1a5SLionel Sambuc xcb_sync_get_priority_cookie_t
1376971bb1a5SLionel Sambuc xcb_sync_get_priority_unchecked (xcb_connection_t *c  /**< */,
1377971bb1a5SLionel Sambuc                                  uint32_t          id  /**< */);
1378971bb1a5SLionel Sambuc 
1379971bb1a5SLionel Sambuc /**
1380971bb1a5SLionel Sambuc  * Return the reply
1381971bb1a5SLionel Sambuc  * @param c      The connection
1382971bb1a5SLionel Sambuc  * @param cookie The cookie
1383971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1384971bb1a5SLionel Sambuc  *
1385971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1386971bb1a5SLionel Sambuc  *
1387971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1388971bb1a5SLionel Sambuc  * xcb_sync_get_priority_unchecked(). is used.
1389971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1390971bb1a5SLionel Sambuc  *
1391971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1392971bb1a5SLionel Sambuc  */
1393971bb1a5SLionel Sambuc xcb_sync_get_priority_reply_t *
1394971bb1a5SLionel Sambuc xcb_sync_get_priority_reply (xcb_connection_t                *c  /**< */,
1395971bb1a5SLionel Sambuc                              xcb_sync_get_priority_cookie_t   cookie  /**< */,
1396971bb1a5SLionel Sambuc                              xcb_generic_error_t            **e  /**< */);
1397971bb1a5SLionel Sambuc 
1398971bb1a5SLionel Sambuc /**
1399971bb1a5SLionel Sambuc  *
1400971bb1a5SLionel Sambuc  * @param c The connection
1401971bb1a5SLionel Sambuc  * @return A cookie
1402971bb1a5SLionel Sambuc  *
1403971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1404971bb1a5SLionel Sambuc  *
1405971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1406971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1407971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1408971bb1a5SLionel Sambuc  */
1409971bb1a5SLionel Sambuc xcb_void_cookie_t
1410971bb1a5SLionel Sambuc xcb_sync_create_fence_checked (xcb_connection_t *c  /**< */,
1411971bb1a5SLionel Sambuc                                xcb_drawable_t    drawable  /**< */,
1412971bb1a5SLionel Sambuc                                xcb_sync_fence_t  fence  /**< */,
1413971bb1a5SLionel Sambuc                                uint8_t           initially_triggered  /**< */);
1414971bb1a5SLionel Sambuc 
1415971bb1a5SLionel Sambuc /**
1416971bb1a5SLionel Sambuc  *
1417971bb1a5SLionel Sambuc  * @param c The connection
1418971bb1a5SLionel Sambuc  * @return A cookie
1419971bb1a5SLionel Sambuc  *
1420971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1421971bb1a5SLionel Sambuc  *
1422971bb1a5SLionel Sambuc  */
1423971bb1a5SLionel Sambuc xcb_void_cookie_t
1424971bb1a5SLionel Sambuc xcb_sync_create_fence (xcb_connection_t *c  /**< */,
1425971bb1a5SLionel Sambuc                        xcb_drawable_t    drawable  /**< */,
1426971bb1a5SLionel Sambuc                        xcb_sync_fence_t  fence  /**< */,
1427971bb1a5SLionel Sambuc                        uint8_t           initially_triggered  /**< */);
1428971bb1a5SLionel Sambuc 
1429971bb1a5SLionel Sambuc /**
1430971bb1a5SLionel Sambuc  *
1431971bb1a5SLionel Sambuc  * @param c The connection
1432971bb1a5SLionel Sambuc  * @return A cookie
1433971bb1a5SLionel Sambuc  *
1434971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1435971bb1a5SLionel Sambuc  *
1436971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1437971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1438971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1439971bb1a5SLionel Sambuc  */
1440971bb1a5SLionel Sambuc xcb_void_cookie_t
1441971bb1a5SLionel Sambuc xcb_sync_trigger_fence_checked (xcb_connection_t *c  /**< */,
1442971bb1a5SLionel Sambuc                                 xcb_sync_fence_t  fence  /**< */);
1443971bb1a5SLionel Sambuc 
1444971bb1a5SLionel Sambuc /**
1445971bb1a5SLionel Sambuc  *
1446971bb1a5SLionel Sambuc  * @param c The connection
1447971bb1a5SLionel Sambuc  * @return A cookie
1448971bb1a5SLionel Sambuc  *
1449971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1450971bb1a5SLionel Sambuc  *
1451971bb1a5SLionel Sambuc  */
1452971bb1a5SLionel Sambuc xcb_void_cookie_t
1453971bb1a5SLionel Sambuc xcb_sync_trigger_fence (xcb_connection_t *c  /**< */,
1454971bb1a5SLionel Sambuc                         xcb_sync_fence_t  fence  /**< */);
1455971bb1a5SLionel Sambuc 
1456971bb1a5SLionel Sambuc /**
1457971bb1a5SLionel Sambuc  *
1458971bb1a5SLionel Sambuc  * @param c The connection
1459971bb1a5SLionel Sambuc  * @return A cookie
1460971bb1a5SLionel Sambuc  *
1461971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1462971bb1a5SLionel Sambuc  *
1463971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1464971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1465971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1466971bb1a5SLionel Sambuc  */
1467971bb1a5SLionel Sambuc xcb_void_cookie_t
1468971bb1a5SLionel Sambuc xcb_sync_reset_fence_checked (xcb_connection_t *c  /**< */,
1469971bb1a5SLionel Sambuc                               xcb_sync_fence_t  fence  /**< */);
1470971bb1a5SLionel Sambuc 
1471971bb1a5SLionel Sambuc /**
1472971bb1a5SLionel Sambuc  *
1473971bb1a5SLionel Sambuc  * @param c The connection
1474971bb1a5SLionel Sambuc  * @return A cookie
1475971bb1a5SLionel Sambuc  *
1476971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1477971bb1a5SLionel Sambuc  *
1478971bb1a5SLionel Sambuc  */
1479971bb1a5SLionel Sambuc xcb_void_cookie_t
1480971bb1a5SLionel Sambuc xcb_sync_reset_fence (xcb_connection_t *c  /**< */,
1481971bb1a5SLionel Sambuc                       xcb_sync_fence_t  fence  /**< */);
1482971bb1a5SLionel Sambuc 
1483971bb1a5SLionel Sambuc /**
1484971bb1a5SLionel Sambuc  *
1485971bb1a5SLionel Sambuc  * @param c The connection
1486971bb1a5SLionel Sambuc  * @return A cookie
1487971bb1a5SLionel Sambuc  *
1488971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1489971bb1a5SLionel Sambuc  *
1490971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1491971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1492971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1493971bb1a5SLionel Sambuc  */
1494971bb1a5SLionel Sambuc xcb_void_cookie_t
1495971bb1a5SLionel Sambuc xcb_sync_destroy_fence_checked (xcb_connection_t *c  /**< */,
1496971bb1a5SLionel Sambuc                                 xcb_sync_fence_t  fence  /**< */);
1497971bb1a5SLionel Sambuc 
1498971bb1a5SLionel Sambuc /**
1499971bb1a5SLionel Sambuc  *
1500971bb1a5SLionel Sambuc  * @param c The connection
1501971bb1a5SLionel Sambuc  * @return A cookie
1502971bb1a5SLionel Sambuc  *
1503971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1504971bb1a5SLionel Sambuc  *
1505971bb1a5SLionel Sambuc  */
1506971bb1a5SLionel Sambuc xcb_void_cookie_t
1507971bb1a5SLionel Sambuc xcb_sync_destroy_fence (xcb_connection_t *c  /**< */,
1508971bb1a5SLionel Sambuc                         xcb_sync_fence_t  fence  /**< */);
1509971bb1a5SLionel Sambuc 
1510971bb1a5SLionel Sambuc /**
1511971bb1a5SLionel Sambuc  *
1512971bb1a5SLionel Sambuc  * @param c The connection
1513971bb1a5SLionel Sambuc  * @return A cookie
1514971bb1a5SLionel Sambuc  *
1515971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1516971bb1a5SLionel Sambuc  *
1517971bb1a5SLionel Sambuc  */
1518971bb1a5SLionel Sambuc xcb_sync_query_fence_cookie_t
1519971bb1a5SLionel Sambuc xcb_sync_query_fence (xcb_connection_t *c  /**< */,
1520971bb1a5SLionel Sambuc                       xcb_sync_fence_t  fence  /**< */);
1521971bb1a5SLionel Sambuc 
1522971bb1a5SLionel Sambuc /**
1523971bb1a5SLionel Sambuc  *
1524971bb1a5SLionel Sambuc  * @param c The connection
1525971bb1a5SLionel Sambuc  * @return A cookie
1526971bb1a5SLionel Sambuc  *
1527971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1528971bb1a5SLionel Sambuc  *
1529971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
1530971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1531971bb1a5SLionel Sambuc  * placed in the event queue.
1532971bb1a5SLionel Sambuc  */
1533971bb1a5SLionel Sambuc xcb_sync_query_fence_cookie_t
1534971bb1a5SLionel Sambuc xcb_sync_query_fence_unchecked (xcb_connection_t *c  /**< */,
1535971bb1a5SLionel Sambuc                                 xcb_sync_fence_t  fence  /**< */);
1536971bb1a5SLionel Sambuc 
1537971bb1a5SLionel Sambuc /**
1538971bb1a5SLionel Sambuc  * Return the reply
1539971bb1a5SLionel Sambuc  * @param c      The connection
1540971bb1a5SLionel Sambuc  * @param cookie The cookie
1541971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
1542971bb1a5SLionel Sambuc  *
1543971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
1544971bb1a5SLionel Sambuc  *
1545971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
1546971bb1a5SLionel Sambuc  * xcb_sync_query_fence_unchecked(). is used.
1547971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
1548971bb1a5SLionel Sambuc  *
1549971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
1550971bb1a5SLionel Sambuc  */
1551971bb1a5SLionel Sambuc xcb_sync_query_fence_reply_t *
1552971bb1a5SLionel Sambuc xcb_sync_query_fence_reply (xcb_connection_t               *c  /**< */,
1553971bb1a5SLionel Sambuc                             xcb_sync_query_fence_cookie_t   cookie  /**< */,
1554971bb1a5SLionel Sambuc                             xcb_generic_error_t           **e  /**< */);
1555971bb1a5SLionel Sambuc 
1556971bb1a5SLionel Sambuc int
1557971bb1a5SLionel Sambuc xcb_sync_await_fence_sizeof (const void  *_buffer  /**< */,
1558971bb1a5SLionel Sambuc                              uint32_t     fence_list_len  /**< */);
1559971bb1a5SLionel Sambuc 
1560971bb1a5SLionel Sambuc /**
1561971bb1a5SLionel Sambuc  *
1562971bb1a5SLionel Sambuc  * @param c The connection
1563971bb1a5SLionel Sambuc  * @return A cookie
1564971bb1a5SLionel Sambuc  *
1565971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1566971bb1a5SLionel Sambuc  *
1567971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
1568971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
1569971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
1570971bb1a5SLionel Sambuc  */
1571971bb1a5SLionel Sambuc xcb_void_cookie_t
1572971bb1a5SLionel Sambuc xcb_sync_await_fence_checked (xcb_connection_t       *c  /**< */,
1573971bb1a5SLionel Sambuc                               uint32_t                fence_list_len  /**< */,
1574971bb1a5SLionel Sambuc                               const xcb_sync_fence_t *fence_list  /**< */);
1575971bb1a5SLionel Sambuc 
1576971bb1a5SLionel Sambuc /**
1577971bb1a5SLionel Sambuc  *
1578971bb1a5SLionel Sambuc  * @param c The connection
1579971bb1a5SLionel Sambuc  * @return A cookie
1580971bb1a5SLionel Sambuc  *
1581971bb1a5SLionel Sambuc  * Delivers a request to the X server.
1582971bb1a5SLionel Sambuc  *
1583971bb1a5SLionel Sambuc  */
1584971bb1a5SLionel Sambuc xcb_void_cookie_t
1585971bb1a5SLionel Sambuc xcb_sync_await_fence (xcb_connection_t       *c  /**< */,
1586971bb1a5SLionel Sambuc                       uint32_t                fence_list_len  /**< */,
1587971bb1a5SLionel Sambuc                       const xcb_sync_fence_t *fence_list  /**< */);
1588971bb1a5SLionel Sambuc 
1589971bb1a5SLionel Sambuc 
1590971bb1a5SLionel Sambuc #ifdef __cplusplus
1591971bb1a5SLionel Sambuc }
1592971bb1a5SLionel Sambuc #endif
1593971bb1a5SLionel Sambuc 
1594971bb1a5SLionel Sambuc #endif
1595971bb1a5SLionel Sambuc 
1596971bb1a5SLionel Sambuc /**
1597971bb1a5SLionel Sambuc  * @}
1598971bb1a5SLionel Sambuc  */
1599