home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / xcb / sync.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-09-17  |  49.2 KB  |  1,685 lines

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