[PATCH wayland-protocols] presentation-time: add missing bitfield marker

Victor Berger victor.berger at m4x.org
Tue Aug 20 11:43:02 UTC 2019


20 août 2019 13:30 "Simon Ser" <contact at emersion.fr> a écrit:

> So now the question is: some scanners may have generated some code from
> presentation-time.xml. Some scanners may generate different code for
> bitfields, maybe breaking ABI. Is it fine to add the bitfield
> attribute?
> 
> For instance, wayland-rs seems to be generating different code:
> https://github.com/Smithay/wayland-rs/blob/master/wayland-scanner/src/common_gen.rs#L33
> 
> Adding Victor Berger to the discussion.

I can't talk for other projects, but in the case of wayland-rs this kind of corrections to the protocol files
is very much welcome. Our scanner makes use of these annotation to generate appropriate APIs, and in this specific case
the absence of the annotation makes it generate wrong code. So from wayland-rs point of view this is a bugfix, and thus not in contraction with stability. Especially given wayland-rs has not yet reached stability and is still likely to change, I'll just bump the version number when updating wayland-protocols.

To be honest, I was thinking about making a pass on all the protocols to add all relevant bitfield / enum annotations when I get some time to do it (so "someday").



More information about the wayland-devel mailing list