[PATCH wayland-protocols] presentation-time: add missing bitfield marker
Simon Ser
contact at emersion.fr
Wed Aug 28 14:49:37 UTC 2019
On Tuesday, August 20, 2019 2:43 PM, Victor Berger <victor.berger at m4x.org> wrote:
> 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.
Thanks for your feedback! I'll wait for thoughts from Pekka before
doing anything, but I'd like to get these fixed too.
> 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