wayland-scanner: easier enum validation
One pain point when implementing a protocol interface is that libwayland doesn't check that values with an enum
hint are valid enum members. I guess it's not possible to make libwayland check this anymore because it would break ABI. Maybe it would be possible to generate helpers in wayland-scanner, e.g. something like an <enum>_check
function?