aboutsummaryrefslogtreecommitdiffstats
path: root/tests/enum-validator-test.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: add enum bitfield testSimon Ser2024-07-091-0/+15
| | | | Signed-off-by: Simon Ser <contact@emersion.fr>
* scanner: add validators for enumsSimon Ser2024-04-231-0/+13
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. Signed-off-by: Simon Ser <contact@emersion.fr> Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/104