xc_misc.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /*
  2. * This file generated automatically from xc_misc.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_XCMisc_API XCB XCMisc API
  7. * @brief XCMisc XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __XC_MISC_H
  11. #define __XC_MISC_H
  12. #include "xcb.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define XCB_XCMISC_MAJOR_VERSION 1
  17. #define XCB_XCMISC_MINOR_VERSION 1
  18. extern xcb_extension_t xcb_xc_misc_id;
  19. /**
  20. * @brief xcb_xc_misc_get_version_cookie_t
  21. **/
  22. typedef struct xcb_xc_misc_get_version_cookie_t {
  23. unsigned int sequence;
  24. } xcb_xc_misc_get_version_cookie_t;
  25. /** Opcode for xcb_xc_misc_get_version. */
  26. #define XCB_XC_MISC_GET_VERSION 0
  27. /**
  28. * @brief xcb_xc_misc_get_version_request_t
  29. **/
  30. typedef struct xcb_xc_misc_get_version_request_t {
  31. uint8_t major_opcode;
  32. uint8_t minor_opcode;
  33. uint16_t length;
  34. uint16_t client_major_version;
  35. uint16_t client_minor_version;
  36. } xcb_xc_misc_get_version_request_t;
  37. /**
  38. * @brief xcb_xc_misc_get_version_reply_t
  39. **/
  40. typedef struct xcb_xc_misc_get_version_reply_t {
  41. uint8_t response_type;
  42. uint8_t pad0;
  43. uint16_t sequence;
  44. uint32_t length;
  45. uint16_t server_major_version;
  46. uint16_t server_minor_version;
  47. } xcb_xc_misc_get_version_reply_t;
  48. /**
  49. * @brief xcb_xc_misc_get_xid_range_cookie_t
  50. **/
  51. typedef struct xcb_xc_misc_get_xid_range_cookie_t {
  52. unsigned int sequence;
  53. } xcb_xc_misc_get_xid_range_cookie_t;
  54. /** Opcode for xcb_xc_misc_get_xid_range. */
  55. #define XCB_XC_MISC_GET_XID_RANGE 1
  56. /**
  57. * @brief xcb_xc_misc_get_xid_range_request_t
  58. **/
  59. typedef struct xcb_xc_misc_get_xid_range_request_t {
  60. uint8_t major_opcode;
  61. uint8_t minor_opcode;
  62. uint16_t length;
  63. } xcb_xc_misc_get_xid_range_request_t;
  64. /**
  65. * @brief xcb_xc_misc_get_xid_range_reply_t
  66. **/
  67. typedef struct xcb_xc_misc_get_xid_range_reply_t {
  68. uint8_t response_type;
  69. uint8_t pad0;
  70. uint16_t sequence;
  71. uint32_t length;
  72. uint32_t start_id;
  73. uint32_t count;
  74. } xcb_xc_misc_get_xid_range_reply_t;
  75. /**
  76. * @brief xcb_xc_misc_get_xid_list_cookie_t
  77. **/
  78. typedef struct xcb_xc_misc_get_xid_list_cookie_t {
  79. unsigned int sequence;
  80. } xcb_xc_misc_get_xid_list_cookie_t;
  81. /** Opcode for xcb_xc_misc_get_xid_list. */
  82. #define XCB_XC_MISC_GET_XID_LIST 2
  83. /**
  84. * @brief xcb_xc_misc_get_xid_list_request_t
  85. **/
  86. typedef struct xcb_xc_misc_get_xid_list_request_t {
  87. uint8_t major_opcode;
  88. uint8_t minor_opcode;
  89. uint16_t length;
  90. uint32_t count;
  91. } xcb_xc_misc_get_xid_list_request_t;
  92. /**
  93. * @brief xcb_xc_misc_get_xid_list_reply_t
  94. **/
  95. typedef struct xcb_xc_misc_get_xid_list_reply_t {
  96. uint8_t response_type;
  97. uint8_t pad0;
  98. uint16_t sequence;
  99. uint32_t length;
  100. uint32_t ids_len;
  101. uint8_t pad1[20];
  102. } xcb_xc_misc_get_xid_list_reply_t;
  103. /**
  104. *
  105. * @param c The connection
  106. * @return A cookie
  107. *
  108. * Delivers a request to the X server.
  109. *
  110. */
  111. xcb_xc_misc_get_version_cookie_t
  112. xcb_xc_misc_get_version (xcb_connection_t *c,
  113. uint16_t client_major_version,
  114. uint16_t client_minor_version);
  115. /**
  116. *
  117. * @param c The connection
  118. * @return A cookie
  119. *
  120. * Delivers a request to the X server.
  121. *
  122. * This form can be used only if the request will cause
  123. * a reply to be generated. Any returned error will be
  124. * placed in the event queue.
  125. */
  126. xcb_xc_misc_get_version_cookie_t
  127. xcb_xc_misc_get_version_unchecked (xcb_connection_t *c,
  128. uint16_t client_major_version,
  129. uint16_t client_minor_version);
  130. /**
  131. * Return the reply
  132. * @param c The connection
  133. * @param cookie The cookie
  134. * @param e The xcb_generic_error_t supplied
  135. *
  136. * Returns the reply of the request asked by
  137. *
  138. * The parameter @p e supplied to this function must be NULL if
  139. * xcb_xc_misc_get_version_unchecked(). is used.
  140. * Otherwise, it stores the error if any.
  141. *
  142. * The returned value must be freed by the caller using free().
  143. */
  144. xcb_xc_misc_get_version_reply_t *
  145. xcb_xc_misc_get_version_reply (xcb_connection_t *c,
  146. xcb_xc_misc_get_version_cookie_t cookie /**< */,
  147. xcb_generic_error_t **e);
  148. /**
  149. *
  150. * @param c The connection
  151. * @return A cookie
  152. *
  153. * Delivers a request to the X server.
  154. *
  155. */
  156. xcb_xc_misc_get_xid_range_cookie_t
  157. xcb_xc_misc_get_xid_range (xcb_connection_t *c);
  158. /**
  159. *
  160. * @param c The connection
  161. * @return A cookie
  162. *
  163. * Delivers a request to the X server.
  164. *
  165. * This form can be used only if the request will cause
  166. * a reply to be generated. Any returned error will be
  167. * placed in the event queue.
  168. */
  169. xcb_xc_misc_get_xid_range_cookie_t
  170. xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c);
  171. /**
  172. * Return the reply
  173. * @param c The connection
  174. * @param cookie The cookie
  175. * @param e The xcb_generic_error_t supplied
  176. *
  177. * Returns the reply of the request asked by
  178. *
  179. * The parameter @p e supplied to this function must be NULL if
  180. * xcb_xc_misc_get_xid_range_unchecked(). is used.
  181. * Otherwise, it stores the error if any.
  182. *
  183. * The returned value must be freed by the caller using free().
  184. */
  185. xcb_xc_misc_get_xid_range_reply_t *
  186. xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c,
  187. xcb_xc_misc_get_xid_range_cookie_t cookie /**< */,
  188. xcb_generic_error_t **e);
  189. int
  190. xcb_xc_misc_get_xid_list_sizeof (const void *_buffer);
  191. /**
  192. *
  193. * @param c The connection
  194. * @return A cookie
  195. *
  196. * Delivers a request to the X server.
  197. *
  198. */
  199. xcb_xc_misc_get_xid_list_cookie_t
  200. xcb_xc_misc_get_xid_list (xcb_connection_t *c,
  201. uint32_t count);
  202. /**
  203. *
  204. * @param c The connection
  205. * @return A cookie
  206. *
  207. * Delivers a request to the X server.
  208. *
  209. * This form can be used only if the request will cause
  210. * a reply to be generated. Any returned error will be
  211. * placed in the event queue.
  212. */
  213. xcb_xc_misc_get_xid_list_cookie_t
  214. xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c,
  215. uint32_t count);
  216. uint32_t *
  217. xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R);
  218. int
  219. xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R);
  220. xcb_generic_iterator_t
  221. xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R);
  222. /**
  223. * Return the reply
  224. * @param c The connection
  225. * @param cookie The cookie
  226. * @param e The xcb_generic_error_t supplied
  227. *
  228. * Returns the reply of the request asked by
  229. *
  230. * The parameter @p e supplied to this function must be NULL if
  231. * xcb_xc_misc_get_xid_list_unchecked(). is used.
  232. * Otherwise, it stores the error if any.
  233. *
  234. * The returned value must be freed by the caller using free().
  235. */
  236. xcb_xc_misc_get_xid_list_reply_t *
  237. xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c,
  238. xcb_xc_misc_get_xid_list_cookie_t cookie /**< */,
  239. xcb_generic_error_t **e);
  240. #ifdef __cplusplus
  241. }
  242. #endif
  243. #endif
  244. /**
  245. * @}
  246. */