Skip to content

scanner: add validators for enums

Simon Ser requested to merge emersion/wayland:validate-enum into main

Right now compositors need to manually check that enum values sent by the client are valid. In particular:

  • Check that the value sent by the client is not outside of the enum.
  • Check that the version of the enum entry is consistent with the object version.

Automatically generate validator functions to perform these tasks.

Closes: #104


Test data not updated yet, want to gather feedback first.

Merge request reports