bigreq.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * This file generated automatically from bigreq.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_BigRequests_API XCB BigRequests API
  7. * @brief BigRequests XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __BIGREQ_H
  11. #define __BIGREQ_H
  12. #include "xcb.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define XCB_BIGREQUESTS_MAJOR_VERSION 0
  17. #define XCB_BIGREQUESTS_MINOR_VERSION 0
  18. extern xcb_extension_t xcb_big_requests_id;
  19. /**
  20. * @brief xcb_big_requests_enable_cookie_t
  21. **/
  22. typedef struct xcb_big_requests_enable_cookie_t {
  23. unsigned int sequence;
  24. } xcb_big_requests_enable_cookie_t;
  25. /** Opcode for xcb_big_requests_enable. */
  26. #define XCB_BIG_REQUESTS_ENABLE 0
  27. /**
  28. * @brief xcb_big_requests_enable_request_t
  29. **/
  30. typedef struct xcb_big_requests_enable_request_t {
  31. uint8_t major_opcode;
  32. uint8_t minor_opcode;
  33. uint16_t length;
  34. } xcb_big_requests_enable_request_t;
  35. /**
  36. * @brief xcb_big_requests_enable_reply_t
  37. **/
  38. typedef struct xcb_big_requests_enable_reply_t {
  39. uint8_t response_type;
  40. uint8_t pad0;
  41. uint16_t sequence;
  42. uint32_t length;
  43. uint32_t maximum_request_length;
  44. } xcb_big_requests_enable_reply_t;
  45. /**
  46. *
  47. * @param c The connection
  48. * @return A cookie
  49. *
  50. * Delivers a request to the X server.
  51. *
  52. */
  53. xcb_big_requests_enable_cookie_t
  54. xcb_big_requests_enable (xcb_connection_t *c);
  55. /**
  56. *
  57. * @param c The connection
  58. * @return A cookie
  59. *
  60. * Delivers a request to the X server.
  61. *
  62. * This form can be used only if the request will cause
  63. * a reply to be generated. Any returned error will be
  64. * placed in the event queue.
  65. */
  66. xcb_big_requests_enable_cookie_t
  67. xcb_big_requests_enable_unchecked (xcb_connection_t *c);
  68. /**
  69. * Return the reply
  70. * @param c The connection
  71. * @param cookie The cookie
  72. * @param e The xcb_generic_error_t supplied
  73. *
  74. * Returns the reply of the request asked by
  75. *
  76. * The parameter @p e supplied to this function must be NULL if
  77. * xcb_big_requests_enable_unchecked(). is used.
  78. * Otherwise, it stores the error if any.
  79. *
  80. * The returned value must be freed by the caller using free().
  81. */
  82. xcb_big_requests_enable_reply_t *
  83. xcb_big_requests_enable_reply (xcb_connection_t *c,
  84. xcb_big_requests_enable_cookie_t cookie /**< */,
  85. xcb_generic_error_t **e);
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #endif
  90. /**
  91. * @}
  92. */