ge.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*
  2. * This file generated automatically from ge.xml by c_client.py.
  3. * Edit at your peril.
  4. */
  5. /**
  6. * @defgroup XCB_GenericEvent_API XCB GenericEvent API
  7. * @brief GenericEvent XCB Protocol Implementation.
  8. * @{
  9. **/
  10. #ifndef __GE_H
  11. #define __GE_H
  12. #include "xcb.h"
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #define XCB_GENERICEVENT_MAJOR_VERSION 1
  17. #define XCB_GENERICEVENT_MINOR_VERSION 0
  18. extern xcb_extension_t xcb_genericevent_id;
  19. /**
  20. * @brief xcb_genericevent_query_version_cookie_t
  21. **/
  22. typedef struct xcb_genericevent_query_version_cookie_t {
  23. unsigned int sequence;
  24. } xcb_genericevent_query_version_cookie_t;
  25. /** Opcode for xcb_genericevent_query_version. */
  26. #define XCB_GENERICEVENT_QUERY_VERSION 0
  27. /**
  28. * @brief xcb_genericevent_query_version_request_t
  29. **/
  30. typedef struct xcb_genericevent_query_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_genericevent_query_version_request_t;
  37. /**
  38. * @brief xcb_genericevent_query_version_reply_t
  39. **/
  40. typedef struct xcb_genericevent_query_version_reply_t {
  41. uint8_t response_type;
  42. uint8_t pad0;
  43. uint16_t sequence;
  44. uint32_t length;
  45. uint16_t major_version;
  46. uint16_t minor_version;
  47. uint8_t pad1[20];
  48. } xcb_genericevent_query_version_reply_t;
  49. /**
  50. *
  51. * @param c The connection
  52. * @return A cookie
  53. *
  54. * Delivers a request to the X server.
  55. *
  56. */
  57. xcb_genericevent_query_version_cookie_t
  58. xcb_genericevent_query_version (xcb_connection_t *c,
  59. uint16_t client_major_version,
  60. uint16_t client_minor_version);
  61. /**
  62. *
  63. * @param c The connection
  64. * @return A cookie
  65. *
  66. * Delivers a request to the X server.
  67. *
  68. * This form can be used only if the request will cause
  69. * a reply to be generated. Any returned error will be
  70. * placed in the event queue.
  71. */
  72. xcb_genericevent_query_version_cookie_t
  73. xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
  74. uint16_t client_major_version,
  75. uint16_t client_minor_version);
  76. /**
  77. * Return the reply
  78. * @param c The connection
  79. * @param cookie The cookie
  80. * @param e The xcb_generic_error_t supplied
  81. *
  82. * Returns the reply of the request asked by
  83. *
  84. * The parameter @p e supplied to this function must be NULL if
  85. * xcb_genericevent_query_version_unchecked(). is used.
  86. * Otherwise, it stores the error if any.
  87. *
  88. * The returned value must be freed by the caller using free().
  89. */
  90. xcb_genericevent_query_version_reply_t *
  91. xcb_genericevent_query_version_reply (xcb_connection_t *c,
  92. xcb_genericevent_query_version_cookie_t cookie /**< */,
  93. xcb_generic_error_t **e);
  94. #ifdef __cplusplus
  95. }
  96. #endif
  97. #endif
  98. /**
  99. * @}
  100. */