[PATCH wayland] Add "enum" attribute to "arg" elements

Bill Spitzak spitzak at gmail.com
Mon Apr 20 13:43:14 PDT 2015


Even the patches I did to the automatic documentation generation would 
benefit greatly from this. There could be a clickable link from the 
argument to the enumeration, or (with a good deal more work) it could 
detect enums that are used only once and place them right there under 
the arg.

And it would be nice to format the bitfields a bit differently. The 
numerical values are more important and printing them is hex is useful, 
while this is not true for normal enums.

On 04/19/2015 05:51 AM, Jeroen Bollen wrote:
> Hello,
>
> It seems like this discussion died off. Currently there is no way to
> tell, from the Wayland XML specification whether an argument is a
> bitfield, or whether the argument takes an enum and what enum this is.
>
> I am currently in the progress of writing a Wayland binding generator
> for the Rust language. This language, like many others is strongly
> typed. To make full usage of this type system, it would be beneficial to
> know from the specification whether an argument is a bitfield, and what
> enum type it takes.
>
> Surely there are more people who generate bindings to these strongly
> typed languages. How have you fixed the issue? Are there patched
> versions available, and maybe pending to be merged? I have looked around
> a bit, and didn't find anything, but then again, I'm not familiar with
> Wayland development. (This is the first time I use a mailing list!)
>
> Much appreciated,
> Jeroen Bollen
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list