[PATCH wayland 0/3] "enum" and "bitfield" attributes for protocol XML files
Auke Booij
auke at tulcod.com
Fri Jun 26 07:02:44 PDT 2015
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
More information about the wayland-devel
mailing list