diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-05-15 16:28:19 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-21 21:22:13 +0930 |
commit | 6532c715c3805128b9976ab208f1426f691056a2 (patch) | |
tree | 442f664f63dab54cf11e271273d8a4413dc57b64 /src/xcb.h | |
parent | b08a5909daf589d5e06c17c55d044f39c1d3479a (diff) |
Add xcb_ge_event_t and handling for long events.
GenericEvent can be more than 32 bytes long. Ensure that the required data is
pulled off the wire and tack it onto the event.
Due to the structure of the xcb_generic_event_t, the data is appended AFTER
the full_sequence field.
Diffstat (limited to 'src/xcb.h')
-rw-r--r-- | src/xcb.h | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -116,6 +116,23 @@ 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. + */ +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. |