As per last April/May's "enum" attribute discussion, these patches introduce two new attributes to the protocol XML files. The "enum" attribute is given to <arg>uments of type (u)int, and indicates which <enum> should be used for that argument. The "bitfield" attribute can be given to <enum>s, and, if set to "true", indicates that the enum is to be thought of as a bitmask-style value.
Although arguments can only refer to enums in specific cases (see the scanner.c changes), this new protocol data should not break the C bindings. It is thinkable that other bindings *do* use the data in a way that breaks the protocol; however such usage will be considered nonstandard. Auke Booij (3): protocol: introduce the enum argument type scanner: enforce correct argument type for enums doc: document new enum attributes and use such data in generated docs doc/publican/protocol-to-docbook.xsl | 9 +++++ doc/publican/sources/Protocol.xml | 23 ++++++++---- protocol/wayland.dtd | 2 ++ protocol/wayland.xml | 32 ++++++++--------- src/scanner.c | 68 +++++++++++++++++++++++++++++++++++- 5 files changed, 111 insertions(+), 23 deletions(-) -- 2.4.4 _______________________________________________ wayland-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/wayland-devel
