summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2013-11-18 20:30:18 +0100
committerJulien Cristau <jcristau@debian.org>2013-12-14 05:40:51 +0100
commitce5395eb4611341ba7c243ed524d023a616f73bb (patch)
tree74a3f5b6d5d47e0032e3d461bb34b561258d8454
parent18f0afab3f0de68114fe185e89d8b25a8c072a2c (diff)
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 <psychon@znc.in> Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--src/xcb.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/xcb.h b/src/xcb.h
index 63864dc..e62c985 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -141,6 +141,26 @@ typedef struct {
} 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.
*
* A generic error structure.