aboutsummaryrefslogtreecommitdiffstats
path: root/tests/data/small-code.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-01-24 09:56:38 +1000
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2017-01-24 11:59:00 +0200
commitf8ab47690c03245da4938cbab7a4ba6bcb1bebe0 (patch)
treead9a015b329552129e0965a06678bbced9bb0f8c /tests/data/small-code.c
parentscanner: add helper function to convert "since" to a version (diff)
downloadwayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar.gz
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar.bz2
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar.lz
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar.xz
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.tar.zst
wayland-f8ab47690c03245da4938cbab7a4ba6bcb1bebe0.zip
scanner: support "since" attribute for enum entries
This was already in the DTD but not supported by the scanner. The check for ever-increasing "since" tags is not strictly required for enum entries as we control the binary value. But it keeps the xml file in good order, preventing things like: <entry name="first" value="…" /> <entry name="second" value="…" since="3"/> <entry name="third" value="…" since="2"/> <entry name="fourth" value="…" since="3"/> If this is undesirable in the future the check can be removed without side-effects. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'tests/data/small-code.c')
-rw-r--r--tests/data/small-code.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/data/small-code.c b/tests/data/small-code.c
index dbf7f40..28a00ab 100644
--- a/tests/data/small-code.c
+++ b/tests/data/small-code.c
@@ -54,7 +54,7 @@ static const struct wl_message intf_A_events[] = {
};
WL_EXPORT const struct wl_interface intf_A_interface = {
- "intf_A", 1,
+ "intf_A", 3,
3, intf_A_requests,
1, intf_A_events,
};