mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-05-21 17:38:27 +02:00
Currently the layout of a struct is used to compute its size. This works fine in case of structs of fixed size. However this introduces forwards-compatibility problems in cases when the struct has multiple variants and the exact variant is specified by the value of some field (e.g. in the case of <switch> elements). Future revisions of protocols may introduce new layout variants, in which case the old code does not know the size of the struct variant and can't parse the incoming byte stream. Instead of relying on knowledge about the layout of data structures we should instead use the length field for length information. This way when old client libxcb communicates with newer server it can at least ignore unknown struct variants. |
||
|---|---|---|
| .. | ||
| xml-xcb.txt | ||