record.h 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. /*
  2. * This file generated automatically from record.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_Record_API XCB Record API
  7. * @brief Record XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __RECORD_H
  11. #define __RECORD_H
  12. #include "xcb.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define XCB_RECORD_MAJOR_VERSION 1
  17. #define XCB_RECORD_MINOR_VERSION 13
  18. extern xcb_extension_t xcb_record_id;
  19. typedef uint32_t xcb_record_context_t;
  20. /**
  21. * @brief xcb_record_context_iterator_t
  22. **/
  23. typedef struct xcb_record_context_iterator_t {
  24. xcb_record_context_t *data;
  25. int rem;
  26. int index;
  27. } xcb_record_context_iterator_t;
  28. /**
  29. * @brief xcb_record_range_8_t
  30. **/
  31. typedef struct xcb_record_range_8_t {
  32. uint8_t first;
  33. uint8_t last;
  34. } xcb_record_range_8_t;
  35. /**
  36. * @brief xcb_record_range_8_iterator_t
  37. **/
  38. typedef struct xcb_record_range_8_iterator_t {
  39. xcb_record_range_8_t *data;
  40. int rem;
  41. int index;
  42. } xcb_record_range_8_iterator_t;
  43. /**
  44. * @brief xcb_record_range_16_t
  45. **/
  46. typedef struct xcb_record_range_16_t {
  47. uint16_t first;
  48. uint16_t last;
  49. } xcb_record_range_16_t;
  50. /**
  51. * @brief xcb_record_range_16_iterator_t
  52. **/
  53. typedef struct xcb_record_range_16_iterator_t {
  54. xcb_record_range_16_t *data;
  55. int rem;
  56. int index;
  57. } xcb_record_range_16_iterator_t;
  58. /**
  59. * @brief xcb_record_ext_range_t
  60. **/
  61. typedef struct xcb_record_ext_range_t {
  62. xcb_record_range_8_t major;
  63. xcb_record_range_16_t minor;
  64. } xcb_record_ext_range_t;
  65. /**
  66. * @brief xcb_record_ext_range_iterator_t
  67. **/
  68. typedef struct xcb_record_ext_range_iterator_t {
  69. xcb_record_ext_range_t *data;
  70. int rem;
  71. int index;
  72. } xcb_record_ext_range_iterator_t;
  73. /**
  74. * @brief xcb_record_range_t
  75. **/
  76. typedef struct xcb_record_range_t {
  77. xcb_record_range_8_t core_requests;
  78. xcb_record_range_8_t core_replies;
  79. xcb_record_ext_range_t ext_requests;
  80. xcb_record_ext_range_t ext_replies;
  81. xcb_record_range_8_t delivered_events;
  82. xcb_record_range_8_t device_events;
  83. xcb_record_range_8_t errors;
  84. uint8_t client_started;
  85. uint8_t client_died;
  86. } xcb_record_range_t;
  87. /**
  88. * @brief xcb_record_range_iterator_t
  89. **/
  90. typedef struct xcb_record_range_iterator_t {
  91. xcb_record_range_t *data;
  92. int rem;
  93. int index;
  94. } xcb_record_range_iterator_t;
  95. typedef uint8_t xcb_record_element_header_t;
  96. /**
  97. * @brief xcb_record_element_header_iterator_t
  98. **/
  99. typedef struct xcb_record_element_header_iterator_t {
  100. xcb_record_element_header_t *data;
  101. int rem;
  102. int index;
  103. } xcb_record_element_header_iterator_t;
  104. typedef enum xcb_record_h_type_t {
  105. XCB_RECORD_H_TYPE_FROM_SERVER_TIME = 1,
  106. XCB_RECORD_H_TYPE_FROM_CLIENT_TIME = 2,
  107. XCB_RECORD_H_TYPE_FROM_CLIENT_SEQUENCE = 4
  108. } xcb_record_h_type_t;
  109. typedef uint32_t xcb_record_client_spec_t;
  110. /**
  111. * @brief xcb_record_client_spec_iterator_t
  112. **/
  113. typedef struct xcb_record_client_spec_iterator_t {
  114. xcb_record_client_spec_t *data;
  115. int rem;
  116. int index;
  117. } xcb_record_client_spec_iterator_t;
  118. typedef enum xcb_record_cs_t {
  119. XCB_RECORD_CS_CURRENT_CLIENTS = 1,
  120. XCB_RECORD_CS_FUTURE_CLIENTS = 2,
  121. XCB_RECORD_CS_ALL_CLIENTS = 3
  122. } xcb_record_cs_t;
  123. /**
  124. * @brief xcb_record_client_info_t
  125. **/
  126. typedef struct xcb_record_client_info_t {
  127. xcb_record_client_spec_t client_resource;
  128. uint32_t num_ranges;
  129. } xcb_record_client_info_t;
  130. /**
  131. * @brief xcb_record_client_info_iterator_t
  132. **/
  133. typedef struct xcb_record_client_info_iterator_t {
  134. xcb_record_client_info_t *data;
  135. int rem;
  136. int index;
  137. } xcb_record_client_info_iterator_t;
  138. /** Opcode for xcb_record_bad_context. */
  139. #define XCB_RECORD_BAD_CONTEXT 0
  140. /**
  141. * @brief xcb_record_bad_context_error_t
  142. **/
  143. typedef struct xcb_record_bad_context_error_t {
  144. uint8_t response_type;
  145. uint8_t error_code;
  146. uint16_t sequence;
  147. uint32_t invalid_record;
  148. } xcb_record_bad_context_error_t;
  149. /**
  150. * @brief xcb_record_query_version_cookie_t
  151. **/
  152. typedef struct xcb_record_query_version_cookie_t {
  153. unsigned int sequence;
  154. } xcb_record_query_version_cookie_t;
  155. /** Opcode for xcb_record_query_version. */
  156. #define XCB_RECORD_QUERY_VERSION 0
  157. /**
  158. * @brief xcb_record_query_version_request_t
  159. **/
  160. typedef struct xcb_record_query_version_request_t {
  161. uint8_t major_opcode;
  162. uint8_t minor_opcode;
  163. uint16_t length;
  164. uint16_t major_version;
  165. uint16_t minor_version;
  166. } xcb_record_query_version_request_t;
  167. /**
  168. * @brief xcb_record_query_version_reply_t
  169. **/
  170. typedef struct xcb_record_query_version_reply_t {
  171. uint8_t response_type;
  172. uint8_t pad0;
  173. uint16_t sequence;
  174. uint32_t length;
  175. uint16_t major_version;
  176. uint16_t minor_version;
  177. } xcb_record_query_version_reply_t;
  178. /** Opcode for xcb_record_create_context. */
  179. #define XCB_RECORD_CREATE_CONTEXT 1
  180. /**
  181. * @brief xcb_record_create_context_request_t
  182. **/
  183. typedef struct xcb_record_create_context_request_t {
  184. uint8_t major_opcode;
  185. uint8_t minor_opcode;
  186. uint16_t length;
  187. xcb_record_context_t context;
  188. xcb_record_element_header_t element_header;
  189. uint8_t pad0[3];
  190. uint32_t num_client_specs;
  191. uint32_t num_ranges;
  192. } xcb_record_create_context_request_t;
  193. /** Opcode for xcb_record_register_clients. */
  194. #define XCB_RECORD_REGISTER_CLIENTS 2
  195. /**
  196. * @brief xcb_record_register_clients_request_t
  197. **/
  198. typedef struct xcb_record_register_clients_request_t {
  199. uint8_t major_opcode;
  200. uint8_t minor_opcode;
  201. uint16_t length;
  202. xcb_record_context_t context;
  203. xcb_record_element_header_t element_header;
  204. uint8_t pad0[3];
  205. uint32_t num_client_specs;
  206. uint32_t num_ranges;
  207. } xcb_record_register_clients_request_t;
  208. /** Opcode for xcb_record_unregister_clients. */
  209. #define XCB_RECORD_UNREGISTER_CLIENTS 3
  210. /**
  211. * @brief xcb_record_unregister_clients_request_t
  212. **/
  213. typedef struct xcb_record_unregister_clients_request_t {
  214. uint8_t major_opcode;
  215. uint8_t minor_opcode;
  216. uint16_t length;
  217. xcb_record_context_t context;
  218. uint32_t num_client_specs;
  219. } xcb_record_unregister_clients_request_t;
  220. /**
  221. * @brief xcb_record_get_context_cookie_t
  222. **/
  223. typedef struct xcb_record_get_context_cookie_t {
  224. unsigned int sequence;
  225. } xcb_record_get_context_cookie_t;
  226. /** Opcode for xcb_record_get_context. */
  227. #define XCB_RECORD_GET_CONTEXT 4
  228. /**
  229. * @brief xcb_record_get_context_request_t
  230. **/
  231. typedef struct xcb_record_get_context_request_t {
  232. uint8_t major_opcode;
  233. uint8_t minor_opcode;
  234. uint16_t length;
  235. xcb_record_context_t context;
  236. } xcb_record_get_context_request_t;
  237. /**
  238. * @brief xcb_record_get_context_reply_t
  239. **/
  240. typedef struct xcb_record_get_context_reply_t {
  241. uint8_t response_type;
  242. uint8_t enabled;
  243. uint16_t sequence;
  244. uint32_t length;
  245. xcb_record_element_header_t element_header;
  246. uint8_t pad0[3];
  247. uint32_t num_intercepted_clients;
  248. uint8_t pad1[16];
  249. } xcb_record_get_context_reply_t;
  250. /**
  251. * @brief xcb_record_enable_context_cookie_t
  252. **/
  253. typedef struct xcb_record_enable_context_cookie_t {
  254. unsigned int sequence;
  255. } xcb_record_enable_context_cookie_t;
  256. /** Opcode for xcb_record_enable_context. */
  257. #define XCB_RECORD_ENABLE_CONTEXT 5
  258. /**
  259. * @brief xcb_record_enable_context_request_t
  260. **/
  261. typedef struct xcb_record_enable_context_request_t {
  262. uint8_t major_opcode;
  263. uint8_t minor_opcode;
  264. uint16_t length;
  265. xcb_record_context_t context;
  266. } xcb_record_enable_context_request_t;
  267. /**
  268. * @brief xcb_record_enable_context_reply_t
  269. **/
  270. typedef struct xcb_record_enable_context_reply_t {
  271. uint8_t response_type;
  272. uint8_t category;
  273. uint16_t sequence;
  274. uint32_t length;
  275. xcb_record_element_header_t element_header;
  276. uint8_t client_swapped;
  277. uint8_t pad0[2];
  278. uint32_t xid_base;
  279. uint32_t server_time;
  280. uint32_t rec_sequence_num;
  281. uint8_t pad1[8];
  282. } xcb_record_enable_context_reply_t;
  283. /** Opcode for xcb_record_disable_context. */
  284. #define XCB_RECORD_DISABLE_CONTEXT 6
  285. /**
  286. * @brief xcb_record_disable_context_request_t
  287. **/
  288. typedef struct xcb_record_disable_context_request_t {
  289. uint8_t major_opcode;
  290. uint8_t minor_opcode;
  291. uint16_t length;
  292. xcb_record_context_t context;
  293. } xcb_record_disable_context_request_t;
  294. /** Opcode for xcb_record_free_context. */
  295. #define XCB_RECORD_FREE_CONTEXT 7
  296. /**
  297. * @brief xcb_record_free_context_request_t
  298. **/
  299. typedef struct xcb_record_free_context_request_t {
  300. uint8_t major_opcode;
  301. uint8_t minor_opcode;
  302. uint16_t length;
  303. xcb_record_context_t context;
  304. } xcb_record_free_context_request_t;
  305. /**
  306. * Get the next element of the iterator
  307. * @param i Pointer to a xcb_record_context_iterator_t
  308. *
  309. * Get the next element in the iterator. The member rem is
  310. * decreased by one. The member data points to the next
  311. * element. The member index is increased by sizeof(xcb_record_context_t)
  312. */
  313. void
  314. xcb_record_context_next (xcb_record_context_iterator_t *i);
  315. /**
  316. * Return the iterator pointing to the last element
  317. * @param i An xcb_record_context_iterator_t
  318. * @return The iterator pointing to the last element
  319. *
  320. * Set the current element in the iterator to the last element.
  321. * The member rem is set to 0. The member data points to the
  322. * last element.
  323. */
  324. xcb_generic_iterator_t
  325. xcb_record_context_end (xcb_record_context_iterator_t i);
  326. /**
  327. * Get the next element of the iterator
  328. * @param i Pointer to a xcb_record_range_8_iterator_t
  329. *
  330. * Get the next element in the iterator. The member rem is
  331. * decreased by one. The member data points to the next
  332. * element. The member index is increased by sizeof(xcb_record_range_8_t)
  333. */
  334. void
  335. xcb_record_range_8_next (xcb_record_range_8_iterator_t *i);
  336. /**
  337. * Return the iterator pointing to the last element
  338. * @param i An xcb_record_range_8_iterator_t
  339. * @return The iterator pointing to the last element
  340. *
  341. * Set the current element in the iterator to the last element.
  342. * The member rem is set to 0. The member data points to the
  343. * last element.
  344. */
  345. xcb_generic_iterator_t
  346. xcb_record_range_8_end (xcb_record_range_8_iterator_t i);
  347. /**
  348. * Get the next element of the iterator
  349. * @param i Pointer to a xcb_record_range_16_iterator_t
  350. *
  351. * Get the next element in the iterator. The member rem is
  352. * decreased by one. The member data points to the next
  353. * element. The member index is increased by sizeof(xcb_record_range_16_t)
  354. */
  355. void
  356. xcb_record_range_16_next (xcb_record_range_16_iterator_t *i);
  357. /**
  358. * Return the iterator pointing to the last element
  359. * @param i An xcb_record_range_16_iterator_t
  360. * @return The iterator pointing to the last element
  361. *
  362. * Set the current element in the iterator to the last element.
  363. * The member rem is set to 0. The member data points to the
  364. * last element.
  365. */
  366. xcb_generic_iterator_t
  367. xcb_record_range_16_end (xcb_record_range_16_iterator_t i);
  368. /**
  369. * Get the next element of the iterator
  370. * @param i Pointer to a xcb_record_ext_range_iterator_t
  371. *
  372. * Get the next element in the iterator. The member rem is
  373. * decreased by one. The member data points to the next
  374. * element. The member index is increased by sizeof(xcb_record_ext_range_t)
  375. */
  376. void
  377. xcb_record_ext_range_next (xcb_record_ext_range_iterator_t *i);
  378. /**
  379. * Return the iterator pointing to the last element
  380. * @param i An xcb_record_ext_range_iterator_t
  381. * @return The iterator pointing to the last element
  382. *
  383. * Set the current element in the iterator to the last element.
  384. * The member rem is set to 0. The member data points to the
  385. * last element.
  386. */
  387. xcb_generic_iterator_t
  388. xcb_record_ext_range_end (xcb_record_ext_range_iterator_t i);
  389. /**
  390. * Get the next element of the iterator
  391. * @param i Pointer to a xcb_record_range_iterator_t
  392. *
  393. * Get the next element in the iterator. The member rem is
  394. * decreased by one. The member data points to the next
  395. * element. The member index is increased by sizeof(xcb_record_range_t)
  396. */
  397. void
  398. xcb_record_range_next (xcb_record_range_iterator_t *i);
  399. /**
  400. * Return the iterator pointing to the last element
  401. * @param i An xcb_record_range_iterator_t
  402. * @return The iterator pointing to the last element
  403. *
  404. * Set the current element in the iterator to the last element.
  405. * The member rem is set to 0. The member data points to the
  406. * last element.
  407. */
  408. xcb_generic_iterator_t
  409. xcb_record_range_end (xcb_record_range_iterator_t i);
  410. /**
  411. * Get the next element of the iterator
  412. * @param i Pointer to a xcb_record_element_header_iterator_t
  413. *
  414. * Get the next element in the iterator. The member rem is
  415. * decreased by one. The member data points to the next
  416. * element. The member index is increased by sizeof(xcb_record_element_header_t)
  417. */
  418. void
  419. xcb_record_element_header_next (xcb_record_element_header_iterator_t *i);
  420. /**
  421. * Return the iterator pointing to the last element
  422. * @param i An xcb_record_element_header_iterator_t
  423. * @return The iterator pointing to the last element
  424. *
  425. * Set the current element in the iterator to the last element.
  426. * The member rem is set to 0. The member data points to the
  427. * last element.
  428. */
  429. xcb_generic_iterator_t
  430. xcb_record_element_header_end (xcb_record_element_header_iterator_t i);
  431. /**
  432. * Get the next element of the iterator
  433. * @param i Pointer to a xcb_record_client_spec_iterator_t
  434. *
  435. * Get the next element in the iterator. The member rem is
  436. * decreased by one. The member data points to the next
  437. * element. The member index is increased by sizeof(xcb_record_client_spec_t)
  438. */
  439. void
  440. xcb_record_client_spec_next (xcb_record_client_spec_iterator_t *i);
  441. /**
  442. * Return the iterator pointing to the last element
  443. * @param i An xcb_record_client_spec_iterator_t
  444. * @return The iterator pointing to the last element
  445. *
  446. * Set the current element in the iterator to the last element.
  447. * The member rem is set to 0. The member data points to the
  448. * last element.
  449. */
  450. xcb_generic_iterator_t
  451. xcb_record_client_spec_end (xcb_record_client_spec_iterator_t i);
  452. int
  453. xcb_record_client_info_sizeof (const void *_buffer);
  454. xcb_record_range_t *
  455. xcb_record_client_info_ranges (const xcb_record_client_info_t *R);
  456. int
  457. xcb_record_client_info_ranges_length (const xcb_record_client_info_t *R);
  458. xcb_record_range_iterator_t
  459. xcb_record_client_info_ranges_iterator (const xcb_record_client_info_t *R);
  460. /**
  461. * Get the next element of the iterator
  462. * @param i Pointer to a xcb_record_client_info_iterator_t
  463. *
  464. * Get the next element in the iterator. The member rem is
  465. * decreased by one. The member data points to the next
  466. * element. The member index is increased by sizeof(xcb_record_client_info_t)
  467. */
  468. void
  469. xcb_record_client_info_next (xcb_record_client_info_iterator_t *i);
  470. /**
  471. * Return the iterator pointing to the last element
  472. * @param i An xcb_record_client_info_iterator_t
  473. * @return The iterator pointing to the last element
  474. *
  475. * Set the current element in the iterator to the last element.
  476. * The member rem is set to 0. The member data points to the
  477. * last element.
  478. */
  479. xcb_generic_iterator_t
  480. xcb_record_client_info_end (xcb_record_client_info_iterator_t i);
  481. /**
  482. *
  483. * @param c The connection
  484. * @return A cookie
  485. *
  486. * Delivers a request to the X server.
  487. *
  488. */
  489. xcb_record_query_version_cookie_t
  490. xcb_record_query_version (xcb_connection_t *c,
  491. uint16_t major_version,
  492. uint16_t minor_version);
  493. /**
  494. *
  495. * @param c The connection
  496. * @return A cookie
  497. *
  498. * Delivers a request to the X server.
  499. *
  500. * This form can be used only if the request will cause
  501. * a reply to be generated. Any returned error will be
  502. * placed in the event queue.
  503. */
  504. xcb_record_query_version_cookie_t
  505. xcb_record_query_version_unchecked (xcb_connection_t *c,
  506. uint16_t major_version,
  507. uint16_t minor_version);
  508. /**
  509. * Return the reply
  510. * @param c The connection
  511. * @param cookie The cookie
  512. * @param e The xcb_generic_error_t supplied
  513. *
  514. * Returns the reply of the request asked by
  515. *
  516. * The parameter @p e supplied to this function must be NULL if
  517. * xcb_record_query_version_unchecked(). is used.
  518. * Otherwise, it stores the error if any.
  519. *
  520. * The returned value must be freed by the caller using free().
  521. */
  522. xcb_record_query_version_reply_t *
  523. xcb_record_query_version_reply (xcb_connection_t *c,
  524. xcb_record_query_version_cookie_t cookie /**< */,
  525. xcb_generic_error_t **e);
  526. int
  527. xcb_record_create_context_sizeof (const void *_buffer);
  528. /**
  529. *
  530. * @param c The connection
  531. * @return A cookie
  532. *
  533. * Delivers a request to the X server.
  534. *
  535. * This form can be used only if the request will not cause
  536. * a reply to be generated. Any returned error will be
  537. * saved for handling by xcb_request_check().
  538. */
  539. xcb_void_cookie_t
  540. xcb_record_create_context_checked (xcb_connection_t *c,
  541. xcb_record_context_t context,
  542. xcb_record_element_header_t element_header,
  543. uint32_t num_client_specs,
  544. uint32_t num_ranges,
  545. const xcb_record_client_spec_t *client_specs,
  546. const xcb_record_range_t *ranges);
  547. /**
  548. *
  549. * @param c The connection
  550. * @return A cookie
  551. *
  552. * Delivers a request to the X server.
  553. *
  554. */
  555. xcb_void_cookie_t
  556. xcb_record_create_context (xcb_connection_t *c,
  557. xcb_record_context_t context,
  558. xcb_record_element_header_t element_header,
  559. uint32_t num_client_specs,
  560. uint32_t num_ranges,
  561. const xcb_record_client_spec_t *client_specs,
  562. const xcb_record_range_t *ranges);
  563. xcb_record_client_spec_t *
  564. xcb_record_create_context_client_specs (const xcb_record_create_context_request_t *R);
  565. int
  566. xcb_record_create_context_client_specs_length (const xcb_record_create_context_request_t *R);
  567. xcb_generic_iterator_t
  568. xcb_record_create_context_client_specs_end (const xcb_record_create_context_request_t *R);
  569. xcb_record_range_t *
  570. xcb_record_create_context_ranges (const xcb_record_create_context_request_t *R);
  571. int
  572. xcb_record_create_context_ranges_length (const xcb_record_create_context_request_t *R);
  573. xcb_record_range_iterator_t
  574. xcb_record_create_context_ranges_iterator (const xcb_record_create_context_request_t *R);
  575. int
  576. xcb_record_register_clients_sizeof (const void *_buffer);
  577. /**
  578. *
  579. * @param c The connection
  580. * @return A cookie
  581. *
  582. * Delivers a request to the X server.
  583. *
  584. * This form can be used only if the request will not cause
  585. * a reply to be generated. Any returned error will be
  586. * saved for handling by xcb_request_check().
  587. */
  588. xcb_void_cookie_t
  589. xcb_record_register_clients_checked (xcb_connection_t *c,
  590. xcb_record_context_t context,
  591. xcb_record_element_header_t element_header,
  592. uint32_t num_client_specs,
  593. uint32_t num_ranges,
  594. const xcb_record_client_spec_t *client_specs,
  595. const xcb_record_range_t *ranges);
  596. /**
  597. *
  598. * @param c The connection
  599. * @return A cookie
  600. *
  601. * Delivers a request to the X server.
  602. *
  603. */
  604. xcb_void_cookie_t
  605. xcb_record_register_clients (xcb_connection_t *c,
  606. xcb_record_context_t context,
  607. xcb_record_element_header_t element_header,
  608. uint32_t num_client_specs,
  609. uint32_t num_ranges,
  610. const xcb_record_client_spec_t *client_specs,
  611. const xcb_record_range_t *ranges);
  612. xcb_record_client_spec_t *
  613. xcb_record_register_clients_client_specs (const xcb_record_register_clients_request_t *R);
  614. int
  615. xcb_record_register_clients_client_specs_length (const xcb_record_register_clients_request_t *R);
  616. xcb_generic_iterator_t
  617. xcb_record_register_clients_client_specs_end (const xcb_record_register_clients_request_t *R);
  618. xcb_record_range_t *
  619. xcb_record_register_clients_ranges (const xcb_record_register_clients_request_t *R);
  620. int
  621. xcb_record_register_clients_ranges_length (const xcb_record_register_clients_request_t *R);
  622. xcb_record_range_iterator_t
  623. xcb_record_register_clients_ranges_iterator (const xcb_record_register_clients_request_t *R);
  624. int
  625. xcb_record_unregister_clients_sizeof (const void *_buffer);
  626. /**
  627. *
  628. * @param c The connection
  629. * @return A cookie
  630. *
  631. * Delivers a request to the X server.
  632. *
  633. * This form can be used only if the request will not cause
  634. * a reply to be generated. Any returned error will be
  635. * saved for handling by xcb_request_check().
  636. */
  637. xcb_void_cookie_t
  638. xcb_record_unregister_clients_checked (xcb_connection_t *c,
  639. xcb_record_context_t context,
  640. uint32_t num_client_specs,
  641. const xcb_record_client_spec_t *client_specs);
  642. /**
  643. *
  644. * @param c The connection
  645. * @return A cookie
  646. *
  647. * Delivers a request to the X server.
  648. *
  649. */
  650. xcb_void_cookie_t
  651. xcb_record_unregister_clients (xcb_connection_t *c,
  652. xcb_record_context_t context,
  653. uint32_t num_client_specs,
  654. const xcb_record_client_spec_t *client_specs);
  655. xcb_record_client_spec_t *
  656. xcb_record_unregister_clients_client_specs (const xcb_record_unregister_clients_request_t *R);
  657. int
  658. xcb_record_unregister_clients_client_specs_length (const xcb_record_unregister_clients_request_t *R);
  659. xcb_generic_iterator_t
  660. xcb_record_unregister_clients_client_specs_end (const xcb_record_unregister_clients_request_t *R);
  661. int
  662. xcb_record_get_context_sizeof (const void *_buffer);
  663. /**
  664. *
  665. * @param c The connection
  666. * @return A cookie
  667. *
  668. * Delivers a request to the X server.
  669. *
  670. */
  671. xcb_record_get_context_cookie_t
  672. xcb_record_get_context (xcb_connection_t *c,
  673. xcb_record_context_t context);
  674. /**
  675. *
  676. * @param c The connection
  677. * @return A cookie
  678. *
  679. * Delivers a request to the X server.
  680. *
  681. * This form can be used only if the request will cause
  682. * a reply to be generated. Any returned error will be
  683. * placed in the event queue.
  684. */
  685. xcb_record_get_context_cookie_t
  686. xcb_record_get_context_unchecked (xcb_connection_t *c,
  687. xcb_record_context_t context);
  688. int
  689. xcb_record_get_context_intercepted_clients_length (const xcb_record_get_context_reply_t *R);
  690. xcb_record_client_info_iterator_t
  691. xcb_record_get_context_intercepted_clients_iterator (const xcb_record_get_context_reply_t *R);
  692. /**
  693. * Return the reply
  694. * @param c The connection
  695. * @param cookie The cookie
  696. * @param e The xcb_generic_error_t supplied
  697. *
  698. * Returns the reply of the request asked by
  699. *
  700. * The parameter @p e supplied to this function must be NULL if
  701. * xcb_record_get_context_unchecked(). is used.
  702. * Otherwise, it stores the error if any.
  703. *
  704. * The returned value must be freed by the caller using free().
  705. */
  706. xcb_record_get_context_reply_t *
  707. xcb_record_get_context_reply (xcb_connection_t *c,
  708. xcb_record_get_context_cookie_t cookie /**< */,
  709. xcb_generic_error_t **e);
  710. int
  711. xcb_record_enable_context_sizeof (const void *_buffer);
  712. /**
  713. *
  714. * @param c The connection
  715. * @return A cookie
  716. *
  717. * Delivers a request to the X server.
  718. *
  719. */
  720. xcb_record_enable_context_cookie_t
  721. xcb_record_enable_context (xcb_connection_t *c,
  722. xcb_record_context_t context);
  723. /**
  724. *
  725. * @param c The connection
  726. * @return A cookie
  727. *
  728. * Delivers a request to the X server.
  729. *
  730. * This form can be used only if the request will cause
  731. * a reply to be generated. Any returned error will be
  732. * placed in the event queue.
  733. */
  734. xcb_record_enable_context_cookie_t
  735. xcb_record_enable_context_unchecked (xcb_connection_t *c,
  736. xcb_record_context_t context);
  737. uint8_t *
  738. xcb_record_enable_context_data (const xcb_record_enable_context_reply_t *R);
  739. int
  740. xcb_record_enable_context_data_length (const xcb_record_enable_context_reply_t *R);
  741. xcb_generic_iterator_t
  742. xcb_record_enable_context_data_end (const xcb_record_enable_context_reply_t *R);
  743. /**
  744. * Return the reply
  745. * @param c The connection
  746. * @param cookie The cookie
  747. * @param e The xcb_generic_error_t supplied
  748. *
  749. * Returns the reply of the request asked by
  750. *
  751. * The parameter @p e supplied to this function must be NULL if
  752. * xcb_record_enable_context_unchecked(). is used.
  753. * Otherwise, it stores the error if any.
  754. *
  755. * The returned value must be freed by the caller using free().
  756. */
  757. xcb_record_enable_context_reply_t *
  758. xcb_record_enable_context_reply (xcb_connection_t *c,
  759. xcb_record_enable_context_cookie_t cookie /**< */,
  760. xcb_generic_error_t **e);
  761. /**
  762. *
  763. * @param c The connection
  764. * @return A cookie
  765. *
  766. * Delivers a request to the X server.
  767. *
  768. * This form can be used only if the request will not cause
  769. * a reply to be generated. Any returned error will be
  770. * saved for handling by xcb_request_check().
  771. */
  772. xcb_void_cookie_t
  773. xcb_record_disable_context_checked (xcb_connection_t *c,
  774. xcb_record_context_t context);
  775. /**
  776. *
  777. * @param c The connection
  778. * @return A cookie
  779. *
  780. * Delivers a request to the X server.
  781. *
  782. */
  783. xcb_void_cookie_t
  784. xcb_record_disable_context (xcb_connection_t *c,
  785. xcb_record_context_t context);
  786. /**
  787. *
  788. * @param c The connection
  789. * @return A cookie
  790. *
  791. * Delivers a request to the X server.
  792. *
  793. * This form can be used only if the request will not cause
  794. * a reply to be generated. Any returned error will be
  795. * saved for handling by xcb_request_check().
  796. */
  797. xcb_void_cookie_t
  798. xcb_record_free_context_checked (xcb_connection_t *c,
  799. xcb_record_context_t context);
  800. /**
  801. *
  802. * @param c The connection
  803. * @return A cookie
  804. *
  805. * Delivers a request to the X server.
  806. *
  807. */
  808. xcb_void_cookie_t
  809. xcb_record_free_context (xcb_connection_t *c,
  810. xcb_record_context_t context);
  811. #ifdef __cplusplus
  812. }
  813. #endif
  814. #endif
  815. /**
  816. * @}
  817. */