From ce5395eb4611341ba7c243ed524d023a616f73bb Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 18 Nov 2013 20:30:18 +0100 Subject: [PATCH] Revert "Remove xcb_ge_event_t from xcb.h" This reverts commit f4d5b84800f960831e4fbb3ad9848bbb701020be. The version of this struct that the code generator produces breaks the API, because it gives the fields different (albeit better) names. Thus, we need to restore the old version of this struct. Additionally to the revert, this struct is documented as being deprecated. The replacement was added to xcb-proto. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=71502 Signed-off-by: Uli Schlachter Signed-off-by: Julien Cristau --- src/xcb.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/xcb.h b/src/xcb.h index 63864dc..e62c985 100644 --- a/src/xcb.h +++ b/src/xcb.h @@ -140,6 +140,26 @@ typedef struct { uint32_t full_sequence; /**< full sequence */ } xcb_generic_event_t; +/** + * @brief GE event + * + * An event as sent by the XGE extension. The length field specifies the + * number of 4-byte blocks trailing the struct. + * + * @deprecated Since some fields in this struct have unfortunate names, it is + * recommended to use xcb_ge_generic_event_t instead. + */ +typedef struct { + uint8_t response_type; /**< Type of the response */ + uint8_t pad0; /**< Padding */ + uint16_t sequence; /**< Sequence number */ + uint32_t length; + uint16_t event_type; + uint16_t pad1; + uint32_t pad[5]; /**< Padding */ + uint32_t full_sequence; /**< full sequence */ +} xcb_ge_event_t; + /** * @brief Generic error. * -- 2.34.1