[Xcb] [Bug 71502] xcb_ge_event_t change causes API breakage

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 11 08:18:06 PST 2013


https://bugs.freedesktop.org/show_bug.cgi?id=71502

Uli Schlachter <psychon at znc.in> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|xcb at lists.freedesktop.org   |keithp at keithp.com
                 CC|                            |psychon at znc.in

--- Comment #1 from Uli Schlachter <psychon at znc.in> ---
Previous version of 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;

New version of it:

typedef struct xcb_ge_event_t {
    uint8_t  response_type; /**<  */
    uint8_t  extension; /**<  */
    uint16_t sequence; /**<  */
    uint32_t length; /**<  */
    uint16_t event_type; /**<  */
    uint8_t  pad0[22]; /**<  */
    uint32_t full_sequence; /**<  */
} xcb_ge_event_t;

So changes are:
- "pad0" became "extension"
- "pad1" and "pad" became "pad0"

(It looks like full_sequence still is in the same position, but that wasn't
obvious to me)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xcb/attachments/20131111/f764854b/attachment.html>


More information about the Xcb mailing list