<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland/tests/data/small-code.c, branch main</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/wayland/atom/tests/data/small-code.c?h=main</id>
<link rel='self' href='http://git.sudomsg.com/mirror/wayland/atom/tests/data/small-code.c?h=main'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/'/>
<updated>2026-04-14T12:11:51Z</updated>
<entry>
<title>scanner: Fix types emitted for new_id arguments</title>
<updated>2026-04-14T12:11:51Z</updated>
<author>
<name>Hannes Schulze</name>
<email>haschu0103@outlook.de</email>
</author>
<published>2026-04-09T13:58:41Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b93a50abd99e6eb547a088329b3cf0023801c746'/>
<id>urn:sha1:b93a50abd99e6eb547a088329b3cf0023801c746</id>
<content type='text'>
Previously, wayland-scanner would only emit one NULL entry in the
wl_message.types array for every argument, even though requests with
new_id arguments without an interface type additionally take a string
and a uint argument.

Signed-off-by: Hannes Schulze &lt;contact@haschu.me&gt;
</content>
</entry>
<entry>
<title>tests: add deprecated-since attributes</title>
<updated>2024-04-24T16:18:28Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2024-04-08T11:32:31Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=80c65f862f7919691d3b0d31810f5a40f8675f37'/>
<id>urn:sha1:80c65f862f7919691d3b0d31810f5a40f8675f37</id>
<content type='text'>
Add a new event and enum entry to small.xml with a deprecated-since
attribute to exercise the scanner code generation.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>scanner: add validators for enums</title>
<updated>2024-04-23T09:17:02Z</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2022-09-17T08:53:56Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=b258d5f36137088e5cb5ae097db7964290da7d55'/>
<id>urn:sha1:b258d5f36137088e5cb5ae097db7964290da7d55</id>
<content type='text'>
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 &lt;contact@emersion.fr&gt;
Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/104
</content>
</entry>
<entry>
<title>scanner: prepend protocol name to types symbol</title>
<updated>2019-09-11T18:27:03Z</updated>
<author>
<name>Marty E. Plummer</name>
<email>hanetzer@startmail.com</email>
</author>
<published>2019-05-11T14:53:01Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=9f004d8b0fa37787fe96662cf5ff414e8d6ef5e4'/>
<id>urn:sha1:9f004d8b0fa37787fe96662cf5ff414e8d6ef5e4</id>
<content type='text'>
When doing unity builds via meson (example project:
https://github.com/swaywm/sway) multiple source files are glued together
via #include directives. Having every wayland-scanner generated source
file have an identifier named '*types[]' will lead to errors in these
unity builds if two or more of these are joined.

Signed-off-by: Marty E. Plummer &lt;hanetzer@startmail.com&gt;
</content>
</entry>
<entry>
<title>scanner: support "since" attribute for enum entries</title>
<updated>2017-01-24T09:59:00Z</updated>
<author>
<name>Peter Hutterer</name>
<email>peter.hutterer@who-t.net</email>
</author>
<published>2017-01-23T23:56:38Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=f8ab47690c03245da4938cbab7a4ba6bcb1bebe0'/>
<id>urn:sha1:f8ab47690c03245da4938cbab7a4ba6bcb1bebe0</id>
<content type='text'>
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:

      &lt;entry name="first" value="…" /&gt;
      &lt;entry name="second" value="…" since="3"/&gt;
      &lt;entry name="third" value="…" since="2"/&gt;
      &lt;entry name="fourth" value="…" since="3"/&gt;

If this is undesirable in the future the check can be removed without
side-effects.

Signed-off-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
</content>
</entry>
<entry>
<title>tests: add data files for future wayland-scanner test</title>
<updated>2016-11-23T08:18:29Z</updated>
<author>
<name>Pekka Paalanen</name>
<email>pekka.paalanen@collabora.co.uk</email>
</author>
<published>2016-10-04T14:26:40Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/wayland/commit/?id=992b451dc44389e56913e3e57681aec00ee6bffc'/>
<id>urn:sha1:992b451dc44389e56913e3e57681aec00ee6bffc</id>
<content type='text'>
This patch adds the input and reference output data files for the
wayland-scanner tests to be added by the following patch.

The data files are split into their own patch because they are extremely
uninteresting to review:
- example.xml is just a copy wayland.xml from 1.12.0
- small.xml is a tiny dummy definition used for testing scanner
  variations without causing lots of big output files
- the other files are wayland-scanner products from the xml files

Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.co.uk&gt;
Reviewed-by: Emilio Pozuelo Monfort &lt;emilio.pozuelo@collabora.co.uk&gt;
v2: update output due to 2c6350beb92816eb9213c4944d197485e788ef6d
Acked-by: Yong Bakos &lt;ybakos@humanoriented.com&gt;
</content>
</entry>
</feed>
