summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/wayland_stable_prot_version.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown/snippets/wayland_stable_prot_version.md')
-rw-r--r--docs/markdown/snippets/wayland_stable_prot_version.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/markdown/snippets/wayland_stable_prot_version.md b/docs/markdown/snippets/wayland_stable_prot_version.md
new file mode 100644
index 000000000..78d0a50d5
--- /dev/null
+++ b/docs/markdown/snippets/wayland_stable_prot_version.md
@@ -0,0 +1,13 @@
+## Wayland stable protocols can be versioned
+
+The wayland module now accepts a version number for stable protocols.
+
+```meson
+wl_mod = import('unstable-wayland')
+
+wl_mod.find_protocol(
+ 'linux-dmabuf',
+ state: 'stable'
+ version: 1
+)
+```