From b258d5f36137088e5cb5ae097db7964290da7d55 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 17 Sep 2022 10:53:56 +0200 Subject: scanner: add validators for enums 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 Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/104 --- tests/data/example-code.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/data/example-code.c') diff --git a/tests/data/example-code.c b/tests/data/example-code.c index 2055c88..37feed7 100644 --- a/tests/data/example-code.c +++ b/tests/data/example-code.c @@ -27,6 +27,7 @@ * SOFTWARE. */ +#include #include #include #include "wayland-util.h" -- cgit v1.2.3-70-g09d2