[Wayland-bugs] [Bug 55534] New: [task] Protocol: Make enums a type for arguments

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Oct 2 05:48:07 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=55534

          Priority: medium
            Bug ID: 55534
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: [task] Protocol: Make enums a type for arguments
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: john.kare.alsaker at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: wayland
           Product: Wayland

Enums should be their own type so could specify that you are passing an enum by
using type="enum.<enum name>". For the error event where any enum can be
passed, we could use type="enum". When the enum is specified in another
interface, we could use type="enum.<interface>.<enum name>". I'm not sure how
this should interact with multiple versions or how it currently does. We could
also just use type="enum" for these cases.

Adding enums as types serves as documentation and adds type safety for
generated code in languages which features such for enums. The effect on C
source and ABI should be none.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20121002/14b7f482/attachment.html>


More information about the Wayland-bugs mailing list