summaryrefslogtreecommitdiff
path: root/src/xcb.h
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2017-01-25 10:21:05 +0100
committerChristian Linhart <chris@demorecorder.com>2017-03-11 10:51:50 +0100
commitee9dfc9a7658e7fe75d27483bb5ed1ba4d1e2c86 (patch)
treed5d8d0efdfdc33576f7df694d8798bf31e3ec2b6 /src/xcb.h
parent0c2c5d50f8670da3e7601feb6a29b53509513da5 (diff)
add support for eventstruct
eventstruct allows to use events as part of requests. This is, e.g., needed by xcb_input_send_extension_event. Signed-off-by: Christian Linhart <chris@demorecorder.com>
Diffstat (limited to 'src/xcb.h')
-rw-r--r--src/xcb.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xcb.h b/src/xcb.h
index 6873e79..cbc0f2b 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -143,6 +143,18 @@ typedef struct {
} xcb_generic_event_t;
/**
+ * @brief Raw Generic event.
+ *
+ * A generic event structure as used on the wire, i.e., without the full_sequence field
+ */
+typedef struct {
+ uint8_t response_type; /**< Type of the response */
+ uint8_t pad0; /**< Padding */
+ uint16_t sequence; /**< Sequence number */
+ uint32_t pad[7]; /**< Padding */
+} xcb_raw_generic_event_t;
+
+/**
* @brief GE event
*
* An event as sent by the XGE extension. The length field specifies the