xref: /netbsd/external/mit/xorg/lib/libxcb/files/sync.h (revision 6550d01e)
1 /*
2  * This file generated automatically from sync.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
6 /**
7  * @defgroup XCB_Sync_API XCB Sync API
8  * @brief Sync XCB Protocol Implementation.
9  * @{
10  **/
11 
12 #ifndef __SYNC_H
13 #define __SYNC_H
14 
15 #include "xcb.h"
16 #include "xproto.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_SYNC_MAJOR_VERSION 3
23 #define XCB_SYNC_MINOR_VERSION 0
24 
25 extern xcb_extension_t xcb_sync_id;
26 
27 typedef uint32_t xcb_sync_alarm_t;
28 
29 /**
30  * @brief xcb_sync_alarm_iterator_t
31  **/
32 typedef struct xcb_sync_alarm_iterator_t {
33     xcb_sync_alarm_t *data; /**<  */
34     int               rem; /**<  */
35     int               index; /**<  */
36 } xcb_sync_alarm_iterator_t;
37 
38 typedef enum xcb_sync_alarmstate_t {
39     XCB_SYNC_ALARMSTATE_ACTIVE,
40     XCB_SYNC_ALARMSTATE_INACTIVE,
41     XCB_SYNC_ALARMSTATE_DESTROYED
42 } xcb_sync_alarmstate_t;
43 
44 typedef uint32_t xcb_sync_counter_t;
45 
46 /**
47  * @brief xcb_sync_counter_iterator_t
48  **/
49 typedef struct xcb_sync_counter_iterator_t {
50     xcb_sync_counter_t *data; /**<  */
51     int                 rem; /**<  */
52     int                 index; /**<  */
53 } xcb_sync_counter_iterator_t;
54 
55 typedef enum xcb_sync_testtype_t {
56     XCB_SYNC_TESTTYPE_POSITIVE_TRANSITION,
57     XCB_SYNC_TESTTYPE_NEGATIVE_TRANSITION,
58     XCB_SYNC_TESTTYPE_POSITIVE_COMPARISON,
59     XCB_SYNC_TESTTYPE_NEGATIVE_COMPARISON
60 } xcb_sync_testtype_t;
61 
62 typedef enum xcb_sync_valuetype_t {
63     XCB_SYNC_VALUETYPE_ABSOLUTE,
64     XCB_SYNC_VALUETYPE_RELATIVE
65 } xcb_sync_valuetype_t;
66 
67 typedef enum xcb_sync_ca_t {
68     XCB_SYNC_CA_COUNTER = 1,
69     XCB_SYNC_CA_VALUE_TYPE = 2,
70     XCB_SYNC_CA_VALUE = 4,
71     XCB_SYNC_CA_TEST_TYPE = 8,
72     XCB_SYNC_CA_DELTA = 16,
73     XCB_SYNC_CA_EVENTS = 32
74 } xcb_sync_ca_t;
75 
76 /**
77  * @brief xcb_sync_int64_t
78  **/
79 typedef struct xcb_sync_int64_t {
80     int32_t  hi; /**<  */
81     uint32_t lo; /**<  */
82 } xcb_sync_int64_t;
83 
84 /**
85  * @brief xcb_sync_int64_iterator_t
86  **/
87 typedef struct xcb_sync_int64_iterator_t {
88     xcb_sync_int64_t *data; /**<  */
89     int               rem; /**<  */
90     int               index; /**<  */
91 } xcb_sync_int64_iterator_t;
92 
93 /**
94  * @brief xcb_sync_systemcounter_t
95  **/
96 typedef struct xcb_sync_systemcounter_t {
97     xcb_sync_counter_t counter; /**<  */
98     xcb_sync_int64_t   resolution; /**<  */
99     uint16_t           name_len; /**<  */
100 } xcb_sync_systemcounter_t;
101 
102 /**
103  * @brief xcb_sync_systemcounter_iterator_t
104  **/
105 typedef struct xcb_sync_systemcounter_iterator_t {
106     xcb_sync_systemcounter_t *data; /**<  */
107     int                       rem; /**<  */
108     int                       index; /**<  */
109 } xcb_sync_systemcounter_iterator_t;
110 
111 /**
112  * @brief xcb_sync_trigger_t
113  **/
114 typedef struct xcb_sync_trigger_t {
115     xcb_sync_counter_t counter; /**<  */
116     uint32_t           wait_type; /**<  */
117     xcb_sync_int64_t   wait_value; /**<  */
118     uint32_t           test_type; /**<  */
119 } xcb_sync_trigger_t;
120 
121 /**
122  * @brief xcb_sync_trigger_iterator_t
123  **/
124 typedef struct xcb_sync_trigger_iterator_t {
125     xcb_sync_trigger_t *data; /**<  */
126     int                 rem; /**<  */
127     int                 index; /**<  */
128 } xcb_sync_trigger_iterator_t;
129 
130 /**
131  * @brief xcb_sync_waitcondition_t
132  **/
133 typedef struct xcb_sync_waitcondition_t {
134     xcb_sync_trigger_t trigger; /**<  */
135     xcb_sync_int64_t   event_threshold; /**<  */
136 } xcb_sync_waitcondition_t;
137 
138 /**
139  * @brief xcb_sync_waitcondition_iterator_t
140  **/
141 typedef struct xcb_sync_waitcondition_iterator_t {
142     xcb_sync_waitcondition_t *data; /**<  */
143     int                       rem; /**<  */
144     int                       index; /**<  */
145 } xcb_sync_waitcondition_iterator_t;
146 
147 /** Opcode for xcb_sync_counter. */
148 #define XCB_SYNC_COUNTER 0
149 
150 /**
151  * @brief xcb_sync_counter_error_t
152  **/
153 typedef struct xcb_sync_counter_error_t {
154     uint8_t  response_type; /**<  */
155     uint8_t  error_code; /**<  */
156     uint16_t sequence; /**<  */
157     uint32_t bad_counter; /**<  */
158     uint16_t minor_opcode; /**<  */
159     uint8_t  major_opcode; /**<  */
160 } xcb_sync_counter_error_t;
161 
162 /** Opcode for xcb_sync_alarm. */
163 #define XCB_SYNC_ALARM 1
164 
165 /**
166  * @brief xcb_sync_alarm_error_t
167  **/
168 typedef struct xcb_sync_alarm_error_t {
169     uint8_t  response_type; /**<  */
170     uint8_t  error_code; /**<  */
171     uint16_t sequence; /**<  */
172     uint32_t bad_alarm; /**<  */
173     uint16_t minor_opcode; /**<  */
174     uint8_t  major_opcode; /**<  */
175 } xcb_sync_alarm_error_t;
176 
177 /**
178  * @brief xcb_sync_initialize_cookie_t
179  **/
180 typedef struct xcb_sync_initialize_cookie_t {
181     unsigned int sequence; /**<  */
182 } xcb_sync_initialize_cookie_t;
183 
184 /** Opcode for xcb_sync_initialize. */
185 #define XCB_SYNC_INITIALIZE 0
186 
187 /**
188  * @brief xcb_sync_initialize_request_t
189  **/
190 typedef struct xcb_sync_initialize_request_t {
191     uint8_t  major_opcode; /**<  */
192     uint8_t  minor_opcode; /**<  */
193     uint16_t length; /**<  */
194     uint8_t  desired_major_version; /**<  */
195     uint8_t  desired_minor_version; /**<  */
196 } xcb_sync_initialize_request_t;
197 
198 /**
199  * @brief xcb_sync_initialize_reply_t
200  **/
201 typedef struct xcb_sync_initialize_reply_t {
202     uint8_t  response_type; /**<  */
203     uint8_t  pad0; /**<  */
204     uint16_t sequence; /**<  */
205     uint32_t length; /**<  */
206     uint8_t  major_version; /**<  */
207     uint8_t  minor_version; /**<  */
208     uint8_t  pad1[22]; /**<  */
209 } xcb_sync_initialize_reply_t;
210 
211 /**
212  * @brief xcb_sync_list_system_counters_cookie_t
213  **/
214 typedef struct xcb_sync_list_system_counters_cookie_t {
215     unsigned int sequence; /**<  */
216 } xcb_sync_list_system_counters_cookie_t;
217 
218 /** Opcode for xcb_sync_list_system_counters. */
219 #define XCB_SYNC_LIST_SYSTEM_COUNTERS 1
220 
221 /**
222  * @brief xcb_sync_list_system_counters_request_t
223  **/
224 typedef struct xcb_sync_list_system_counters_request_t {
225     uint8_t  major_opcode; /**<  */
226     uint8_t  minor_opcode; /**<  */
227     uint16_t length; /**<  */
228 } xcb_sync_list_system_counters_request_t;
229 
230 /**
231  * @brief xcb_sync_list_system_counters_reply_t
232  **/
233 typedef struct xcb_sync_list_system_counters_reply_t {
234     uint8_t  response_type; /**<  */
235     uint8_t  pad0; /**<  */
236     uint16_t sequence; /**<  */
237     uint32_t length; /**<  */
238     uint32_t counters_len; /**<  */
239     uint8_t  pad1[20]; /**<  */
240 } xcb_sync_list_system_counters_reply_t;
241 
242 /** Opcode for xcb_sync_create_counter. */
243 #define XCB_SYNC_CREATE_COUNTER 2
244 
245 /**
246  * @brief xcb_sync_create_counter_request_t
247  **/
248 typedef struct xcb_sync_create_counter_request_t {
249     uint8_t            major_opcode; /**<  */
250     uint8_t            minor_opcode; /**<  */
251     uint16_t           length; /**<  */
252     xcb_sync_counter_t id; /**<  */
253     xcb_sync_int64_t   initial_value; /**<  */
254 } xcb_sync_create_counter_request_t;
255 
256 /** Opcode for xcb_sync_destroy_counter. */
257 #define XCB_SYNC_DESTROY_COUNTER 6
258 
259 /**
260  * @brief xcb_sync_destroy_counter_request_t
261  **/
262 typedef struct xcb_sync_destroy_counter_request_t {
263     uint8_t            major_opcode; /**<  */
264     uint8_t            minor_opcode; /**<  */
265     uint16_t           length; /**<  */
266     xcb_sync_counter_t counter; /**<  */
267 } xcb_sync_destroy_counter_request_t;
268 
269 /**
270  * @brief xcb_sync_query_counter_cookie_t
271  **/
272 typedef struct xcb_sync_query_counter_cookie_t {
273     unsigned int sequence; /**<  */
274 } xcb_sync_query_counter_cookie_t;
275 
276 /** Opcode for xcb_sync_query_counter. */
277 #define XCB_SYNC_QUERY_COUNTER 5
278 
279 /**
280  * @brief xcb_sync_query_counter_request_t
281  **/
282 typedef struct xcb_sync_query_counter_request_t {
283     uint8_t            major_opcode; /**<  */
284     uint8_t            minor_opcode; /**<  */
285     uint16_t           length; /**<  */
286     xcb_sync_counter_t counter; /**<  */
287 } xcb_sync_query_counter_request_t;
288 
289 /**
290  * @brief xcb_sync_query_counter_reply_t
291  **/
292 typedef struct xcb_sync_query_counter_reply_t {
293     uint8_t          response_type; /**<  */
294     uint8_t          pad0; /**<  */
295     uint16_t         sequence; /**<  */
296     uint32_t         length; /**<  */
297     xcb_sync_int64_t counter_value; /**<  */
298 } xcb_sync_query_counter_reply_t;
299 
300 /** Opcode for xcb_sync_await. */
301 #define XCB_SYNC_AWAIT 7
302 
303 /**
304  * @brief xcb_sync_await_request_t
305  **/
306 typedef struct xcb_sync_await_request_t {
307     uint8_t  major_opcode; /**<  */
308     uint8_t  minor_opcode; /**<  */
309     uint16_t length; /**<  */
310 } xcb_sync_await_request_t;
311 
312 /** Opcode for xcb_sync_change_counter. */
313 #define XCB_SYNC_CHANGE_COUNTER 4
314 
315 /**
316  * @brief xcb_sync_change_counter_request_t
317  **/
318 typedef struct xcb_sync_change_counter_request_t {
319     uint8_t            major_opcode; /**<  */
320     uint8_t            minor_opcode; /**<  */
321     uint16_t           length; /**<  */
322     xcb_sync_counter_t counter; /**<  */
323     xcb_sync_int64_t   amount; /**<  */
324 } xcb_sync_change_counter_request_t;
325 
326 /** Opcode for xcb_sync_set_counter. */
327 #define XCB_SYNC_SET_COUNTER 3
328 
329 /**
330  * @brief xcb_sync_set_counter_request_t
331  **/
332 typedef struct xcb_sync_set_counter_request_t {
333     uint8_t            major_opcode; /**<  */
334     uint8_t            minor_opcode; /**<  */
335     uint16_t           length; /**<  */
336     xcb_sync_counter_t counter; /**<  */
337     xcb_sync_int64_t   value; /**<  */
338 } xcb_sync_set_counter_request_t;
339 
340 /** Opcode for xcb_sync_create_alarm. */
341 #define XCB_SYNC_CREATE_ALARM 8
342 
343 /**
344  * @brief xcb_sync_create_alarm_request_t
345  **/
346 typedef struct xcb_sync_create_alarm_request_t {
347     uint8_t          major_opcode; /**<  */
348     uint8_t          minor_opcode; /**<  */
349     uint16_t         length; /**<  */
350     xcb_sync_alarm_t id; /**<  */
351     uint32_t         value_mask; /**<  */
352 } xcb_sync_create_alarm_request_t;
353 
354 /** Opcode for xcb_sync_change_alarm. */
355 #define XCB_SYNC_CHANGE_ALARM 9
356 
357 /**
358  * @brief xcb_sync_change_alarm_request_t
359  **/
360 typedef struct xcb_sync_change_alarm_request_t {
361     uint8_t          major_opcode; /**<  */
362     uint8_t          minor_opcode; /**<  */
363     uint16_t         length; /**<  */
364     xcb_sync_alarm_t id; /**<  */
365     uint32_t         value_mask; /**<  */
366 } xcb_sync_change_alarm_request_t;
367 
368 /** Opcode for xcb_sync_destroy_alarm. */
369 #define XCB_SYNC_DESTROY_ALARM 11
370 
371 /**
372  * @brief xcb_sync_destroy_alarm_request_t
373  **/
374 typedef struct xcb_sync_destroy_alarm_request_t {
375     uint8_t          major_opcode; /**<  */
376     uint8_t          minor_opcode; /**<  */
377     uint16_t         length; /**<  */
378     xcb_sync_alarm_t alarm; /**<  */
379 } xcb_sync_destroy_alarm_request_t;
380 
381 /**
382  * @brief xcb_sync_query_alarm_cookie_t
383  **/
384 typedef struct xcb_sync_query_alarm_cookie_t {
385     unsigned int sequence; /**<  */
386 } xcb_sync_query_alarm_cookie_t;
387 
388 /** Opcode for xcb_sync_query_alarm. */
389 #define XCB_SYNC_QUERY_ALARM 10
390 
391 /**
392  * @brief xcb_sync_query_alarm_request_t
393  **/
394 typedef struct xcb_sync_query_alarm_request_t {
395     uint8_t          major_opcode; /**<  */
396     uint8_t          minor_opcode; /**<  */
397     uint16_t         length; /**<  */
398     xcb_sync_alarm_t alarm; /**<  */
399 } xcb_sync_query_alarm_request_t;
400 
401 /**
402  * @brief xcb_sync_query_alarm_reply_t
403  **/
404 typedef struct xcb_sync_query_alarm_reply_t {
405     uint8_t            response_type; /**<  */
406     uint8_t            pad0; /**<  */
407     uint16_t           sequence; /**<  */
408     uint32_t           length; /**<  */
409     xcb_sync_trigger_t trigger; /**<  */
410     xcb_sync_int64_t   delta; /**<  */
411     uint8_t            events; /**<  */
412     uint8_t            state; /**<  */
413     uint8_t            pad1[2]; /**<  */
414 } xcb_sync_query_alarm_reply_t;
415 
416 /** Opcode for xcb_sync_set_priority. */
417 #define XCB_SYNC_SET_PRIORITY 12
418 
419 /**
420  * @brief xcb_sync_set_priority_request_t
421  **/
422 typedef struct xcb_sync_set_priority_request_t {
423     uint8_t  major_opcode; /**<  */
424     uint8_t  minor_opcode; /**<  */
425     uint16_t length; /**<  */
426     uint32_t id; /**<  */
427     int32_t  priority; /**<  */
428 } xcb_sync_set_priority_request_t;
429 
430 /**
431  * @brief xcb_sync_get_priority_cookie_t
432  **/
433 typedef struct xcb_sync_get_priority_cookie_t {
434     unsigned int sequence; /**<  */
435 } xcb_sync_get_priority_cookie_t;
436 
437 /** Opcode for xcb_sync_get_priority. */
438 #define XCB_SYNC_GET_PRIORITY 13
439 
440 /**
441  * @brief xcb_sync_get_priority_request_t
442  **/
443 typedef struct xcb_sync_get_priority_request_t {
444     uint8_t  major_opcode; /**<  */
445     uint8_t  minor_opcode; /**<  */
446     uint16_t length; /**<  */
447     uint32_t id; /**<  */
448 } xcb_sync_get_priority_request_t;
449 
450 /**
451  * @brief xcb_sync_get_priority_reply_t
452  **/
453 typedef struct xcb_sync_get_priority_reply_t {
454     uint8_t  response_type; /**<  */
455     uint8_t  pad0; /**<  */
456     uint16_t sequence; /**<  */
457     uint32_t length; /**<  */
458     int32_t  priority; /**<  */
459 } xcb_sync_get_priority_reply_t;
460 
461 /** Opcode for xcb_sync_counter_notify. */
462 #define XCB_SYNC_COUNTER_NOTIFY 0
463 
464 /**
465  * @brief xcb_sync_counter_notify_event_t
466  **/
467 typedef struct xcb_sync_counter_notify_event_t {
468     uint8_t            response_type; /**<  */
469     uint8_t            kind; /**<  */
470     uint16_t           sequence; /**<  */
471     xcb_sync_counter_t counter; /**<  */
472     xcb_sync_int64_t   wait_value; /**<  */
473     xcb_sync_int64_t   counter_value; /**<  */
474     xcb_timestamp_t    timestamp; /**<  */
475     uint16_t           count; /**<  */
476     uint8_t            destroyed; /**<  */
477     uint8_t            pad0; /**<  */
478 } xcb_sync_counter_notify_event_t;
479 
480 /** Opcode for xcb_sync_alarm_notify. */
481 #define XCB_SYNC_ALARM_NOTIFY 1
482 
483 /**
484  * @brief xcb_sync_alarm_notify_event_t
485  **/
486 typedef struct xcb_sync_alarm_notify_event_t {
487     uint8_t          response_type; /**<  */
488     uint8_t          kind; /**<  */
489     uint16_t         sequence; /**<  */
490     xcb_sync_alarm_t alarm; /**<  */
491     xcb_sync_int64_t counter_value; /**<  */
492     xcb_sync_int64_t alarm_value; /**<  */
493     xcb_timestamp_t  timestamp; /**<  */
494     uint8_t          state; /**<  */
495     uint8_t          pad0[3]; /**<  */
496 } xcb_sync_alarm_notify_event_t;
497 
498 /**
499  * Get the next element of the iterator
500  * @param i Pointer to a xcb_sync_alarm_iterator_t
501  *
502  * Get the next element in the iterator. The member rem is
503  * decreased by one. The member data points to the next
504  * element. The member index is increased by sizeof(xcb_sync_alarm_t)
505  */
506 
507 /*****************************************************************************
508  **
509  ** void xcb_sync_alarm_next
510  **
511  ** @param xcb_sync_alarm_iterator_t *i
512  ** @returns void
513  **
514  *****************************************************************************/
515 
516 void
517 xcb_sync_alarm_next (xcb_sync_alarm_iterator_t *i  /**< */);
518 
519 /**
520  * Return the iterator pointing to the last element
521  * @param i An xcb_sync_alarm_iterator_t
522  * @return  The iterator pointing to the last element
523  *
524  * Set the current element in the iterator to the last element.
525  * The member rem is set to 0. The member data points to the
526  * last element.
527  */
528 
529 /*****************************************************************************
530  **
531  ** xcb_generic_iterator_t xcb_sync_alarm_end
532  **
533  ** @param xcb_sync_alarm_iterator_t i
534  ** @returns xcb_generic_iterator_t
535  **
536  *****************************************************************************/
537 
538 xcb_generic_iterator_t
539 xcb_sync_alarm_end (xcb_sync_alarm_iterator_t i  /**< */);
540 
541 /**
542  * Get the next element of the iterator
543  * @param i Pointer to a xcb_sync_counter_iterator_t
544  *
545  * Get the next element in the iterator. The member rem is
546  * decreased by one. The member data points to the next
547  * element. The member index is increased by sizeof(xcb_sync_counter_t)
548  */
549 
550 /*****************************************************************************
551  **
552  ** void xcb_sync_counter_next
553  **
554  ** @param xcb_sync_counter_iterator_t *i
555  ** @returns void
556  **
557  *****************************************************************************/
558 
559 void
560 xcb_sync_counter_next (xcb_sync_counter_iterator_t *i  /**< */);
561 
562 /**
563  * Return the iterator pointing to the last element
564  * @param i An xcb_sync_counter_iterator_t
565  * @return  The iterator pointing to the last element
566  *
567  * Set the current element in the iterator to the last element.
568  * The member rem is set to 0. The member data points to the
569  * last element.
570  */
571 
572 /*****************************************************************************
573  **
574  ** xcb_generic_iterator_t xcb_sync_counter_end
575  **
576  ** @param xcb_sync_counter_iterator_t i
577  ** @returns xcb_generic_iterator_t
578  **
579  *****************************************************************************/
580 
581 xcb_generic_iterator_t
582 xcb_sync_counter_end (xcb_sync_counter_iterator_t i  /**< */);
583 
584 /**
585  * Get the next element of the iterator
586  * @param i Pointer to a xcb_sync_int64_iterator_t
587  *
588  * Get the next element in the iterator. The member rem is
589  * decreased by one. The member data points to the next
590  * element. The member index is increased by sizeof(xcb_sync_int64_t)
591  */
592 
593 /*****************************************************************************
594  **
595  ** void xcb_sync_int64_next
596  **
597  ** @param xcb_sync_int64_iterator_t *i
598  ** @returns void
599  **
600  *****************************************************************************/
601 
602 void
603 xcb_sync_int64_next (xcb_sync_int64_iterator_t *i  /**< */);
604 
605 /**
606  * Return the iterator pointing to the last element
607  * @param i An xcb_sync_int64_iterator_t
608  * @return  The iterator pointing to the last element
609  *
610  * Set the current element in the iterator to the last element.
611  * The member rem is set to 0. The member data points to the
612  * last element.
613  */
614 
615 /*****************************************************************************
616  **
617  ** xcb_generic_iterator_t xcb_sync_int64_end
618  **
619  ** @param xcb_sync_int64_iterator_t i
620  ** @returns xcb_generic_iterator_t
621  **
622  *****************************************************************************/
623 
624 xcb_generic_iterator_t
625 xcb_sync_int64_end (xcb_sync_int64_iterator_t i  /**< */);
626 
627 
628 /*****************************************************************************
629  **
630  ** char * xcb_sync_systemcounter_name
631  **
632  ** @param const xcb_sync_systemcounter_t *R
633  ** @returns char *
634  **
635  *****************************************************************************/
636 
637 char *
638 xcb_sync_systemcounter_name (const xcb_sync_systemcounter_t *R  /**< */);
639 
640 
641 /*****************************************************************************
642  **
643  ** int xcb_sync_systemcounter_name_length
644  **
645  ** @param const xcb_sync_systemcounter_t *R
646  ** @returns int
647  **
648  *****************************************************************************/
649 
650 int
651 xcb_sync_systemcounter_name_length (const xcb_sync_systemcounter_t *R  /**< */);
652 
653 
654 /*****************************************************************************
655  **
656  ** xcb_generic_iterator_t xcb_sync_systemcounter_name_end
657  **
658  ** @param const xcb_sync_systemcounter_t *R
659  ** @returns xcb_generic_iterator_t
660  **
661  *****************************************************************************/
662 
663 xcb_generic_iterator_t
664 xcb_sync_systemcounter_name_end (const xcb_sync_systemcounter_t *R  /**< */);
665 
666 /**
667  * Get the next element of the iterator
668  * @param i Pointer to a xcb_sync_systemcounter_iterator_t
669  *
670  * Get the next element in the iterator. The member rem is
671  * decreased by one. The member data points to the next
672  * element. The member index is increased by sizeof(xcb_sync_systemcounter_t)
673  */
674 
675 /*****************************************************************************
676  **
677  ** void xcb_sync_systemcounter_next
678  **
679  ** @param xcb_sync_systemcounter_iterator_t *i
680  ** @returns void
681  **
682  *****************************************************************************/
683 
684 void
685 xcb_sync_systemcounter_next (xcb_sync_systemcounter_iterator_t *i  /**< */);
686 
687 /**
688  * Return the iterator pointing to the last element
689  * @param i An xcb_sync_systemcounter_iterator_t
690  * @return  The iterator pointing to the last element
691  *
692  * Set the current element in the iterator to the last element.
693  * The member rem is set to 0. The member data points to the
694  * last element.
695  */
696 
697 /*****************************************************************************
698  **
699  ** xcb_generic_iterator_t xcb_sync_systemcounter_end
700  **
701  ** @param xcb_sync_systemcounter_iterator_t i
702  ** @returns xcb_generic_iterator_t
703  **
704  *****************************************************************************/
705 
706 xcb_generic_iterator_t
707 xcb_sync_systemcounter_end (xcb_sync_systemcounter_iterator_t i  /**< */);
708 
709 /**
710  * Get the next element of the iterator
711  * @param i Pointer to a xcb_sync_trigger_iterator_t
712  *
713  * Get the next element in the iterator. The member rem is
714  * decreased by one. The member data points to the next
715  * element. The member index is increased by sizeof(xcb_sync_trigger_t)
716  */
717 
718 /*****************************************************************************
719  **
720  ** void xcb_sync_trigger_next
721  **
722  ** @param xcb_sync_trigger_iterator_t *i
723  ** @returns void
724  **
725  *****************************************************************************/
726 
727 void
728 xcb_sync_trigger_next (xcb_sync_trigger_iterator_t *i  /**< */);
729 
730 /**
731  * Return the iterator pointing to the last element
732  * @param i An xcb_sync_trigger_iterator_t
733  * @return  The iterator pointing to the last element
734  *
735  * Set the current element in the iterator to the last element.
736  * The member rem is set to 0. The member data points to the
737  * last element.
738  */
739 
740 /*****************************************************************************
741  **
742  ** xcb_generic_iterator_t xcb_sync_trigger_end
743  **
744  ** @param xcb_sync_trigger_iterator_t i
745  ** @returns xcb_generic_iterator_t
746  **
747  *****************************************************************************/
748 
749 xcb_generic_iterator_t
750 xcb_sync_trigger_end (xcb_sync_trigger_iterator_t i  /**< */);
751 
752 /**
753  * Get the next element of the iterator
754  * @param i Pointer to a xcb_sync_waitcondition_iterator_t
755  *
756  * Get the next element in the iterator. The member rem is
757  * decreased by one. The member data points to the next
758  * element. The member index is increased by sizeof(xcb_sync_waitcondition_t)
759  */
760 
761 /*****************************************************************************
762  **
763  ** void xcb_sync_waitcondition_next
764  **
765  ** @param xcb_sync_waitcondition_iterator_t *i
766  ** @returns void
767  **
768  *****************************************************************************/
769 
770 void
771 xcb_sync_waitcondition_next (xcb_sync_waitcondition_iterator_t *i  /**< */);
772 
773 /**
774  * Return the iterator pointing to the last element
775  * @param i An xcb_sync_waitcondition_iterator_t
776  * @return  The iterator pointing to the last element
777  *
778  * Set the current element in the iterator to the last element.
779  * The member rem is set to 0. The member data points to the
780  * last element.
781  */
782 
783 /*****************************************************************************
784  **
785  ** xcb_generic_iterator_t xcb_sync_waitcondition_end
786  **
787  ** @param xcb_sync_waitcondition_iterator_t i
788  ** @returns xcb_generic_iterator_t
789  **
790  *****************************************************************************/
791 
792 xcb_generic_iterator_t
793 xcb_sync_waitcondition_end (xcb_sync_waitcondition_iterator_t i  /**< */);
794 
795 /**
796  * Delivers a request to the X server
797  * @param c The connection
798  * @return A cookie
799  *
800  * Delivers a request to the X server.
801  *
802  */
803 
804 /*****************************************************************************
805  **
806  ** xcb_sync_initialize_cookie_t xcb_sync_initialize
807  **
808  ** @param xcb_connection_t *c
809  ** @param uint8_t           desired_major_version
810  ** @param uint8_t           desired_minor_version
811  ** @returns xcb_sync_initialize_cookie_t
812  **
813  *****************************************************************************/
814 
815 xcb_sync_initialize_cookie_t
816 xcb_sync_initialize (xcb_connection_t *c  /**< */,
817                      uint8_t           desired_major_version  /**< */,
818                      uint8_t           desired_minor_version  /**< */);
819 
820 /**
821  * Delivers a request to the X server
822  * @param c The connection
823  * @return A cookie
824  *
825  * Delivers a request to the X server.
826  *
827  * This form can be used only if the request will cause
828  * a reply to be generated. Any returned error will be
829  * placed in the event queue.
830  */
831 
832 /*****************************************************************************
833  **
834  ** xcb_sync_initialize_cookie_t xcb_sync_initialize_unchecked
835  **
836  ** @param xcb_connection_t *c
837  ** @param uint8_t           desired_major_version
838  ** @param uint8_t           desired_minor_version
839  ** @returns xcb_sync_initialize_cookie_t
840  **
841  *****************************************************************************/
842 
843 xcb_sync_initialize_cookie_t
844 xcb_sync_initialize_unchecked (xcb_connection_t *c  /**< */,
845                                uint8_t           desired_major_version  /**< */,
846                                uint8_t           desired_minor_version  /**< */);
847 
848 /**
849  * Return the reply
850  * @param c      The connection
851  * @param cookie The cookie
852  * @param e      The xcb_generic_error_t supplied
853  *
854  * Returns the reply of the request asked by
855  *
856  * The parameter @p e supplied to this function must be NULL if
857  * xcb_sync_initialize_unchecked(). is used.
858  * Otherwise, it stores the error if any.
859  *
860  * The returned value must be freed by the caller using free().
861  */
862 
863 /*****************************************************************************
864  **
865  ** xcb_sync_initialize_reply_t * xcb_sync_initialize_reply
866  **
867  ** @param xcb_connection_t              *c
868  ** @param xcb_sync_initialize_cookie_t   cookie
869  ** @param xcb_generic_error_t          **e
870  ** @returns xcb_sync_initialize_reply_t *
871  **
872  *****************************************************************************/
873 
874 xcb_sync_initialize_reply_t *
875 xcb_sync_initialize_reply (xcb_connection_t              *c  /**< */,
876                            xcb_sync_initialize_cookie_t   cookie  /**< */,
877                            xcb_generic_error_t          **e  /**< */);
878 
879 /**
880  * Delivers a request to the X server
881  * @param c The connection
882  * @return A cookie
883  *
884  * Delivers a request to the X server.
885  *
886  */
887 
888 /*****************************************************************************
889  **
890  ** xcb_sync_list_system_counters_cookie_t xcb_sync_list_system_counters
891  **
892  ** @param xcb_connection_t *c
893  ** @returns xcb_sync_list_system_counters_cookie_t
894  **
895  *****************************************************************************/
896 
897 xcb_sync_list_system_counters_cookie_t
898 xcb_sync_list_system_counters (xcb_connection_t *c  /**< */);
899 
900 /**
901  * Delivers a request to the X server
902  * @param c The connection
903  * @return A cookie
904  *
905  * Delivers a request to the X server.
906  *
907  * This form can be used only if the request will cause
908  * a reply to be generated. Any returned error will be
909  * placed in the event queue.
910  */
911 
912 /*****************************************************************************
913  **
914  ** xcb_sync_list_system_counters_cookie_t xcb_sync_list_system_counters_unchecked
915  **
916  ** @param xcb_connection_t *c
917  ** @returns xcb_sync_list_system_counters_cookie_t
918  **
919  *****************************************************************************/
920 
921 xcb_sync_list_system_counters_cookie_t
922 xcb_sync_list_system_counters_unchecked (xcb_connection_t *c  /**< */);
923 
924 
925 /*****************************************************************************
926  **
927  ** int xcb_sync_list_system_counters_counters_length
928  **
929  ** @param const xcb_sync_list_system_counters_reply_t *R
930  ** @returns int
931  **
932  *****************************************************************************/
933 
934 int
935 xcb_sync_list_system_counters_counters_length (const xcb_sync_list_system_counters_reply_t *R  /**< */);
936 
937 
938 /*****************************************************************************
939  **
940  ** xcb_sync_systemcounter_iterator_t xcb_sync_list_system_counters_counters_iterator
941  **
942  ** @param const xcb_sync_list_system_counters_reply_t *R
943  ** @returns xcb_sync_systemcounter_iterator_t
944  **
945  *****************************************************************************/
946 
947 xcb_sync_systemcounter_iterator_t
948 xcb_sync_list_system_counters_counters_iterator (const xcb_sync_list_system_counters_reply_t *R  /**< */);
949 
950 /**
951  * Return the reply
952  * @param c      The connection
953  * @param cookie The cookie
954  * @param e      The xcb_generic_error_t supplied
955  *
956  * Returns the reply of the request asked by
957  *
958  * The parameter @p e supplied to this function must be NULL if
959  * xcb_sync_list_system_counters_unchecked(). is used.
960  * Otherwise, it stores the error if any.
961  *
962  * The returned value must be freed by the caller using free().
963  */
964 
965 /*****************************************************************************
966  **
967  ** xcb_sync_list_system_counters_reply_t * xcb_sync_list_system_counters_reply
968  **
969  ** @param xcb_connection_t                        *c
970  ** @param xcb_sync_list_system_counters_cookie_t   cookie
971  ** @param xcb_generic_error_t                    **e
972  ** @returns xcb_sync_list_system_counters_reply_t *
973  **
974  *****************************************************************************/
975 
976 xcb_sync_list_system_counters_reply_t *
977 xcb_sync_list_system_counters_reply (xcb_connection_t                        *c  /**< */,
978                                      xcb_sync_list_system_counters_cookie_t   cookie  /**< */,
979                                      xcb_generic_error_t                    **e  /**< */);
980 
981 /**
982  * Delivers a request to the X server
983  * @param c The connection
984  * @return A cookie
985  *
986  * Delivers a request to the X server.
987  *
988  * This form can be used only if the request will not cause
989  * a reply to be generated. Any returned error will be
990  * saved for handling by xcb_request_check().
991  */
992 
993 /*****************************************************************************
994  **
995  ** xcb_void_cookie_t xcb_sync_create_counter_checked
996  **
997  ** @param xcb_connection_t   *c
998  ** @param xcb_sync_counter_t  id
999  ** @param xcb_sync_int64_t    initial_value
1000  ** @returns xcb_void_cookie_t
1001  **
1002  *****************************************************************************/
1003 
1004 xcb_void_cookie_t
1005 xcb_sync_create_counter_checked (xcb_connection_t   *c  /**< */,
1006                                  xcb_sync_counter_t  id  /**< */,
1007                                  xcb_sync_int64_t    initial_value  /**< */);
1008 
1009 /**
1010  * Delivers a request to the X server
1011  * @param c The connection
1012  * @return A cookie
1013  *
1014  * Delivers a request to the X server.
1015  *
1016  */
1017 
1018 /*****************************************************************************
1019  **
1020  ** xcb_void_cookie_t xcb_sync_create_counter
1021  **
1022  ** @param xcb_connection_t   *c
1023  ** @param xcb_sync_counter_t  id
1024  ** @param xcb_sync_int64_t    initial_value
1025  ** @returns xcb_void_cookie_t
1026  **
1027  *****************************************************************************/
1028 
1029 xcb_void_cookie_t
1030 xcb_sync_create_counter (xcb_connection_t   *c  /**< */,
1031                          xcb_sync_counter_t  id  /**< */,
1032                          xcb_sync_int64_t    initial_value  /**< */);
1033 
1034 /**
1035  * Delivers a request to the X server
1036  * @param c The connection
1037  * @return A cookie
1038  *
1039  * Delivers a request to the X server.
1040  *
1041  * This form can be used only if the request will not cause
1042  * a reply to be generated. Any returned error will be
1043  * saved for handling by xcb_request_check().
1044  */
1045 
1046 /*****************************************************************************
1047  **
1048  ** xcb_void_cookie_t xcb_sync_destroy_counter_checked
1049  **
1050  ** @param xcb_connection_t   *c
1051  ** @param xcb_sync_counter_t  counter
1052  ** @returns xcb_void_cookie_t
1053  **
1054  *****************************************************************************/
1055 
1056 xcb_void_cookie_t
1057 xcb_sync_destroy_counter_checked (xcb_connection_t   *c  /**< */,
1058                                   xcb_sync_counter_t  counter  /**< */);
1059 
1060 /**
1061  * Delivers a request to the X server
1062  * @param c The connection
1063  * @return A cookie
1064  *
1065  * Delivers a request to the X server.
1066  *
1067  */
1068 
1069 /*****************************************************************************
1070  **
1071  ** xcb_void_cookie_t xcb_sync_destroy_counter
1072  **
1073  ** @param xcb_connection_t   *c
1074  ** @param xcb_sync_counter_t  counter
1075  ** @returns xcb_void_cookie_t
1076  **
1077  *****************************************************************************/
1078 
1079 xcb_void_cookie_t
1080 xcb_sync_destroy_counter (xcb_connection_t   *c  /**< */,
1081                           xcb_sync_counter_t  counter  /**< */);
1082 
1083 /**
1084  * Delivers a request to the X server
1085  * @param c The connection
1086  * @return A cookie
1087  *
1088  * Delivers a request to the X server.
1089  *
1090  */
1091 
1092 /*****************************************************************************
1093  **
1094  ** xcb_sync_query_counter_cookie_t xcb_sync_query_counter
1095  **
1096  ** @param xcb_connection_t   *c
1097  ** @param xcb_sync_counter_t  counter
1098  ** @returns xcb_sync_query_counter_cookie_t
1099  **
1100  *****************************************************************************/
1101 
1102 xcb_sync_query_counter_cookie_t
1103 xcb_sync_query_counter (xcb_connection_t   *c  /**< */,
1104                         xcb_sync_counter_t  counter  /**< */);
1105 
1106 /**
1107  * Delivers a request to the X server
1108  * @param c The connection
1109  * @return A cookie
1110  *
1111  * Delivers a request to the X server.
1112  *
1113  * This form can be used only if the request will cause
1114  * a reply to be generated. Any returned error will be
1115  * placed in the event queue.
1116  */
1117 
1118 /*****************************************************************************
1119  **
1120  ** xcb_sync_query_counter_cookie_t xcb_sync_query_counter_unchecked
1121  **
1122  ** @param xcb_connection_t   *c
1123  ** @param xcb_sync_counter_t  counter
1124  ** @returns xcb_sync_query_counter_cookie_t
1125  **
1126  *****************************************************************************/
1127 
1128 xcb_sync_query_counter_cookie_t
1129 xcb_sync_query_counter_unchecked (xcb_connection_t   *c  /**< */,
1130                                   xcb_sync_counter_t  counter  /**< */);
1131 
1132 /**
1133  * Return the reply
1134  * @param c      The connection
1135  * @param cookie The cookie
1136  * @param e      The xcb_generic_error_t supplied
1137  *
1138  * Returns the reply of the request asked by
1139  *
1140  * The parameter @p e supplied to this function must be NULL if
1141  * xcb_sync_query_counter_unchecked(). is used.
1142  * Otherwise, it stores the error if any.
1143  *
1144  * The returned value must be freed by the caller using free().
1145  */
1146 
1147 /*****************************************************************************
1148  **
1149  ** xcb_sync_query_counter_reply_t * xcb_sync_query_counter_reply
1150  **
1151  ** @param xcb_connection_t                 *c
1152  ** @param xcb_sync_query_counter_cookie_t   cookie
1153  ** @param xcb_generic_error_t             **e
1154  ** @returns xcb_sync_query_counter_reply_t *
1155  **
1156  *****************************************************************************/
1157 
1158 xcb_sync_query_counter_reply_t *
1159 xcb_sync_query_counter_reply (xcb_connection_t                 *c  /**< */,
1160                               xcb_sync_query_counter_cookie_t   cookie  /**< */,
1161                               xcb_generic_error_t             **e  /**< */);
1162 
1163 /**
1164  * Delivers a request to the X server
1165  * @param c The connection
1166  * @return A cookie
1167  *
1168  * Delivers a request to the X server.
1169  *
1170  * This form can be used only if the request will not cause
1171  * a reply to be generated. Any returned error will be
1172  * saved for handling by xcb_request_check().
1173  */
1174 
1175 /*****************************************************************************
1176  **
1177  ** xcb_void_cookie_t xcb_sync_await_checked
1178  **
1179  ** @param xcb_connection_t               *c
1180  ** @param uint32_t                        wait_list_len
1181  ** @param const xcb_sync_waitcondition_t *wait_list
1182  ** @returns xcb_void_cookie_t
1183  **
1184  *****************************************************************************/
1185 
1186 xcb_void_cookie_t
1187 xcb_sync_await_checked (xcb_connection_t               *c  /**< */,
1188                         uint32_t                        wait_list_len  /**< */,
1189                         const xcb_sync_waitcondition_t *wait_list  /**< */);
1190 
1191 /**
1192  * Delivers a request to the X server
1193  * @param c The connection
1194  * @return A cookie
1195  *
1196  * Delivers a request to the X server.
1197  *
1198  */
1199 
1200 /*****************************************************************************
1201  **
1202  ** xcb_void_cookie_t xcb_sync_await
1203  **
1204  ** @param xcb_connection_t               *c
1205  ** @param uint32_t                        wait_list_len
1206  ** @param const xcb_sync_waitcondition_t *wait_list
1207  ** @returns xcb_void_cookie_t
1208  **
1209  *****************************************************************************/
1210 
1211 xcb_void_cookie_t
1212 xcb_sync_await (xcb_connection_t               *c  /**< */,
1213                 uint32_t                        wait_list_len  /**< */,
1214                 const xcb_sync_waitcondition_t *wait_list  /**< */);
1215 
1216 /**
1217  * Delivers a request to the X server
1218  * @param c The connection
1219  * @return A cookie
1220  *
1221  * Delivers a request to the X server.
1222  *
1223  * This form can be used only if the request will not cause
1224  * a reply to be generated. Any returned error will be
1225  * saved for handling by xcb_request_check().
1226  */
1227 
1228 /*****************************************************************************
1229  **
1230  ** xcb_void_cookie_t xcb_sync_change_counter_checked
1231  **
1232  ** @param xcb_connection_t   *c
1233  ** @param xcb_sync_counter_t  counter
1234  ** @param xcb_sync_int64_t    amount
1235  ** @returns xcb_void_cookie_t
1236  **
1237  *****************************************************************************/
1238 
1239 xcb_void_cookie_t
1240 xcb_sync_change_counter_checked (xcb_connection_t   *c  /**< */,
1241                                  xcb_sync_counter_t  counter  /**< */,
1242                                  xcb_sync_int64_t    amount  /**< */);
1243 
1244 /**
1245  * Delivers a request to the X server
1246  * @param c The connection
1247  * @return A cookie
1248  *
1249  * Delivers a request to the X server.
1250  *
1251  */
1252 
1253 /*****************************************************************************
1254  **
1255  ** xcb_void_cookie_t xcb_sync_change_counter
1256  **
1257  ** @param xcb_connection_t   *c
1258  ** @param xcb_sync_counter_t  counter
1259  ** @param xcb_sync_int64_t    amount
1260  ** @returns xcb_void_cookie_t
1261  **
1262  *****************************************************************************/
1263 
1264 xcb_void_cookie_t
1265 xcb_sync_change_counter (xcb_connection_t   *c  /**< */,
1266                          xcb_sync_counter_t  counter  /**< */,
1267                          xcb_sync_int64_t    amount  /**< */);
1268 
1269 /**
1270  * Delivers a request to the X server
1271  * @param c The connection
1272  * @return A cookie
1273  *
1274  * Delivers a request to the X server.
1275  *
1276  * This form can be used only if the request will not cause
1277  * a reply to be generated. Any returned error will be
1278  * saved for handling by xcb_request_check().
1279  */
1280 
1281 /*****************************************************************************
1282  **
1283  ** xcb_void_cookie_t xcb_sync_set_counter_checked
1284  **
1285  ** @param xcb_connection_t   *c
1286  ** @param xcb_sync_counter_t  counter
1287  ** @param xcb_sync_int64_t    value
1288  ** @returns xcb_void_cookie_t
1289  **
1290  *****************************************************************************/
1291 
1292 xcb_void_cookie_t
1293 xcb_sync_set_counter_checked (xcb_connection_t   *c  /**< */,
1294                               xcb_sync_counter_t  counter  /**< */,
1295                               xcb_sync_int64_t    value  /**< */);
1296 
1297 /**
1298  * Delivers a request to the X server
1299  * @param c The connection
1300  * @return A cookie
1301  *
1302  * Delivers a request to the X server.
1303  *
1304  */
1305 
1306 /*****************************************************************************
1307  **
1308  ** xcb_void_cookie_t xcb_sync_set_counter
1309  **
1310  ** @param xcb_connection_t   *c
1311  ** @param xcb_sync_counter_t  counter
1312  ** @param xcb_sync_int64_t    value
1313  ** @returns xcb_void_cookie_t
1314  **
1315  *****************************************************************************/
1316 
1317 xcb_void_cookie_t
1318 xcb_sync_set_counter (xcb_connection_t   *c  /**< */,
1319                       xcb_sync_counter_t  counter  /**< */,
1320                       xcb_sync_int64_t    value  /**< */);
1321 
1322 /**
1323  * Delivers a request to the X server
1324  * @param c The connection
1325  * @return A cookie
1326  *
1327  * Delivers a request to the X server.
1328  *
1329  * This form can be used only if the request will not cause
1330  * a reply to be generated. Any returned error will be
1331  * saved for handling by xcb_request_check().
1332  */
1333 
1334 /*****************************************************************************
1335  **
1336  ** xcb_void_cookie_t xcb_sync_create_alarm_checked
1337  **
1338  ** @param xcb_connection_t *c
1339  ** @param xcb_sync_alarm_t  id
1340  ** @param uint32_t          value_mask
1341  ** @param const uint32_t   *value_list
1342  ** @returns xcb_void_cookie_t
1343  **
1344  *****************************************************************************/
1345 
1346 xcb_void_cookie_t
1347 xcb_sync_create_alarm_checked (xcb_connection_t *c  /**< */,
1348                                xcb_sync_alarm_t  id  /**< */,
1349                                uint32_t          value_mask  /**< */,
1350                                const uint32_t   *value_list  /**< */);
1351 
1352 /**
1353  * Delivers a request to the X server
1354  * @param c The connection
1355  * @return A cookie
1356  *
1357  * Delivers a request to the X server.
1358  *
1359  */
1360 
1361 /*****************************************************************************
1362  **
1363  ** xcb_void_cookie_t xcb_sync_create_alarm
1364  **
1365  ** @param xcb_connection_t *c
1366  ** @param xcb_sync_alarm_t  id
1367  ** @param uint32_t          value_mask
1368  ** @param const uint32_t   *value_list
1369  ** @returns xcb_void_cookie_t
1370  **
1371  *****************************************************************************/
1372 
1373 xcb_void_cookie_t
1374 xcb_sync_create_alarm (xcb_connection_t *c  /**< */,
1375                        xcb_sync_alarm_t  id  /**< */,
1376                        uint32_t          value_mask  /**< */,
1377                        const uint32_t   *value_list  /**< */);
1378 
1379 /**
1380  * Delivers a request to the X server
1381  * @param c The connection
1382  * @return A cookie
1383  *
1384  * Delivers a request to the X server.
1385  *
1386  * This form can be used only if the request will not cause
1387  * a reply to be generated. Any returned error will be
1388  * saved for handling by xcb_request_check().
1389  */
1390 
1391 /*****************************************************************************
1392  **
1393  ** xcb_void_cookie_t xcb_sync_change_alarm_checked
1394  **
1395  ** @param xcb_connection_t *c
1396  ** @param xcb_sync_alarm_t  id
1397  ** @param uint32_t          value_mask
1398  ** @param const uint32_t   *value_list
1399  ** @returns xcb_void_cookie_t
1400  **
1401  *****************************************************************************/
1402 
1403 xcb_void_cookie_t
1404 xcb_sync_change_alarm_checked (xcb_connection_t *c  /**< */,
1405                                xcb_sync_alarm_t  id  /**< */,
1406                                uint32_t          value_mask  /**< */,
1407                                const uint32_t   *value_list  /**< */);
1408 
1409 /**
1410  * Delivers a request to the X server
1411  * @param c The connection
1412  * @return A cookie
1413  *
1414  * Delivers a request to the X server.
1415  *
1416  */
1417 
1418 /*****************************************************************************
1419  **
1420  ** xcb_void_cookie_t xcb_sync_change_alarm
1421  **
1422  ** @param xcb_connection_t *c
1423  ** @param xcb_sync_alarm_t  id
1424  ** @param uint32_t          value_mask
1425  ** @param const uint32_t   *value_list
1426  ** @returns xcb_void_cookie_t
1427  **
1428  *****************************************************************************/
1429 
1430 xcb_void_cookie_t
1431 xcb_sync_change_alarm (xcb_connection_t *c  /**< */,
1432                        xcb_sync_alarm_t  id  /**< */,
1433                        uint32_t          value_mask  /**< */,
1434                        const uint32_t   *value_list  /**< */);
1435 
1436 /**
1437  * Delivers a request to the X server
1438  * @param c The connection
1439  * @return A cookie
1440  *
1441  * Delivers a request to the X server.
1442  *
1443  * This form can be used only if the request will not cause
1444  * a reply to be generated. Any returned error will be
1445  * saved for handling by xcb_request_check().
1446  */
1447 
1448 /*****************************************************************************
1449  **
1450  ** xcb_void_cookie_t xcb_sync_destroy_alarm_checked
1451  **
1452  ** @param xcb_connection_t *c
1453  ** @param xcb_sync_alarm_t  alarm
1454  ** @returns xcb_void_cookie_t
1455  **
1456  *****************************************************************************/
1457 
1458 xcb_void_cookie_t
1459 xcb_sync_destroy_alarm_checked (xcb_connection_t *c  /**< */,
1460                                 xcb_sync_alarm_t  alarm  /**< */);
1461 
1462 /**
1463  * Delivers a request to the X server
1464  * @param c The connection
1465  * @return A cookie
1466  *
1467  * Delivers a request to the X server.
1468  *
1469  */
1470 
1471 /*****************************************************************************
1472  **
1473  ** xcb_void_cookie_t xcb_sync_destroy_alarm
1474  **
1475  ** @param xcb_connection_t *c
1476  ** @param xcb_sync_alarm_t  alarm
1477  ** @returns xcb_void_cookie_t
1478  **
1479  *****************************************************************************/
1480 
1481 xcb_void_cookie_t
1482 xcb_sync_destroy_alarm (xcb_connection_t *c  /**< */,
1483                         xcb_sync_alarm_t  alarm  /**< */);
1484 
1485 /**
1486  * Delivers a request to the X server
1487  * @param c The connection
1488  * @return A cookie
1489  *
1490  * Delivers a request to the X server.
1491  *
1492  */
1493 
1494 /*****************************************************************************
1495  **
1496  ** xcb_sync_query_alarm_cookie_t xcb_sync_query_alarm
1497  **
1498  ** @param xcb_connection_t *c
1499  ** @param xcb_sync_alarm_t  alarm
1500  ** @returns xcb_sync_query_alarm_cookie_t
1501  **
1502  *****************************************************************************/
1503 
1504 xcb_sync_query_alarm_cookie_t
1505 xcb_sync_query_alarm (xcb_connection_t *c  /**< */,
1506                       xcb_sync_alarm_t  alarm  /**< */);
1507 
1508 /**
1509  * Delivers a request to the X server
1510  * @param c The connection
1511  * @return A cookie
1512  *
1513  * Delivers a request to the X server.
1514  *
1515  * This form can be used only if the request will cause
1516  * a reply to be generated. Any returned error will be
1517  * placed in the event queue.
1518  */
1519 
1520 /*****************************************************************************
1521  **
1522  ** xcb_sync_query_alarm_cookie_t xcb_sync_query_alarm_unchecked
1523  **
1524  ** @param xcb_connection_t *c
1525  ** @param xcb_sync_alarm_t  alarm
1526  ** @returns xcb_sync_query_alarm_cookie_t
1527  **
1528  *****************************************************************************/
1529 
1530 xcb_sync_query_alarm_cookie_t
1531 xcb_sync_query_alarm_unchecked (xcb_connection_t *c  /**< */,
1532                                 xcb_sync_alarm_t  alarm  /**< */);
1533 
1534 /**
1535  * Return the reply
1536  * @param c      The connection
1537  * @param cookie The cookie
1538  * @param e      The xcb_generic_error_t supplied
1539  *
1540  * Returns the reply of the request asked by
1541  *
1542  * The parameter @p e supplied to this function must be NULL if
1543  * xcb_sync_query_alarm_unchecked(). is used.
1544  * Otherwise, it stores the error if any.
1545  *
1546  * The returned value must be freed by the caller using free().
1547  */
1548 
1549 /*****************************************************************************
1550  **
1551  ** xcb_sync_query_alarm_reply_t * xcb_sync_query_alarm_reply
1552  **
1553  ** @param xcb_connection_t               *c
1554  ** @param xcb_sync_query_alarm_cookie_t   cookie
1555  ** @param xcb_generic_error_t           **e
1556  ** @returns xcb_sync_query_alarm_reply_t *
1557  **
1558  *****************************************************************************/
1559 
1560 xcb_sync_query_alarm_reply_t *
1561 xcb_sync_query_alarm_reply (xcb_connection_t               *c  /**< */,
1562                             xcb_sync_query_alarm_cookie_t   cookie  /**< */,
1563                             xcb_generic_error_t           **e  /**< */);
1564 
1565 /**
1566  * Delivers a request to the X server
1567  * @param c The connection
1568  * @return A cookie
1569  *
1570  * Delivers a request to the X server.
1571  *
1572  * This form can be used only if the request will not cause
1573  * a reply to be generated. Any returned error will be
1574  * saved for handling by xcb_request_check().
1575  */
1576 
1577 /*****************************************************************************
1578  **
1579  ** xcb_void_cookie_t xcb_sync_set_priority_checked
1580  **
1581  ** @param xcb_connection_t *c
1582  ** @param uint32_t          id
1583  ** @param int32_t           priority
1584  ** @returns xcb_void_cookie_t
1585  **
1586  *****************************************************************************/
1587 
1588 xcb_void_cookie_t
1589 xcb_sync_set_priority_checked (xcb_connection_t *c  /**< */,
1590                                uint32_t          id  /**< */,
1591                                int32_t           priority  /**< */);
1592 
1593 /**
1594  * Delivers a request to the X server
1595  * @param c The connection
1596  * @return A cookie
1597  *
1598  * Delivers a request to the X server.
1599  *
1600  */
1601 
1602 /*****************************************************************************
1603  **
1604  ** xcb_void_cookie_t xcb_sync_set_priority
1605  **
1606  ** @param xcb_connection_t *c
1607  ** @param uint32_t          id
1608  ** @param int32_t           priority
1609  ** @returns xcb_void_cookie_t
1610  **
1611  *****************************************************************************/
1612 
1613 xcb_void_cookie_t
1614 xcb_sync_set_priority (xcb_connection_t *c  /**< */,
1615                        uint32_t          id  /**< */,
1616                        int32_t           priority  /**< */);
1617 
1618 /**
1619  * Delivers a request to the X server
1620  * @param c The connection
1621  * @return A cookie
1622  *
1623  * Delivers a request to the X server.
1624  *
1625  */
1626 
1627 /*****************************************************************************
1628  **
1629  ** xcb_sync_get_priority_cookie_t xcb_sync_get_priority
1630  **
1631  ** @param xcb_connection_t *c
1632  ** @param uint32_t          id
1633  ** @returns xcb_sync_get_priority_cookie_t
1634  **
1635  *****************************************************************************/
1636 
1637 xcb_sync_get_priority_cookie_t
1638 xcb_sync_get_priority (xcb_connection_t *c  /**< */,
1639                        uint32_t          id  /**< */);
1640 
1641 /**
1642  * Delivers a request to the X server
1643  * @param c The connection
1644  * @return A cookie
1645  *
1646  * Delivers a request to the X server.
1647  *
1648  * This form can be used only if the request will cause
1649  * a reply to be generated. Any returned error will be
1650  * placed in the event queue.
1651  */
1652 
1653 /*****************************************************************************
1654  **
1655  ** xcb_sync_get_priority_cookie_t xcb_sync_get_priority_unchecked
1656  **
1657  ** @param xcb_connection_t *c
1658  ** @param uint32_t          id
1659  ** @returns xcb_sync_get_priority_cookie_t
1660  **
1661  *****************************************************************************/
1662 
1663 xcb_sync_get_priority_cookie_t
1664 xcb_sync_get_priority_unchecked (xcb_connection_t *c  /**< */,
1665                                  uint32_t          id  /**< */);
1666 
1667 /**
1668  * Return the reply
1669  * @param c      The connection
1670  * @param cookie The cookie
1671  * @param e      The xcb_generic_error_t supplied
1672  *
1673  * Returns the reply of the request asked by
1674  *
1675  * The parameter @p e supplied to this function must be NULL if
1676  * xcb_sync_get_priority_unchecked(). is used.
1677  * Otherwise, it stores the error if any.
1678  *
1679  * The returned value must be freed by the caller using free().
1680  */
1681 
1682 /*****************************************************************************
1683  **
1684  ** xcb_sync_get_priority_reply_t * xcb_sync_get_priority_reply
1685  **
1686  ** @param xcb_connection_t                *c
1687  ** @param xcb_sync_get_priority_cookie_t   cookie
1688  ** @param xcb_generic_error_t            **e
1689  ** @returns xcb_sync_get_priority_reply_t *
1690  **
1691  *****************************************************************************/
1692 
1693 xcb_sync_get_priority_reply_t *
1694 xcb_sync_get_priority_reply (xcb_connection_t                *c  /**< */,
1695                              xcb_sync_get_priority_cookie_t   cookie  /**< */,
1696                              xcb_generic_error_t            **e  /**< */);
1697 
1698 
1699 #ifdef __cplusplus
1700 }
1701 #endif
1702 
1703 #endif
1704 
1705 /**
1706  * @}
1707  */
1708