From 02853609acccf281ad40a26a092422dc3e6d3114 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 22 Apr 2026 16:33:00 +1200 Subject: [PATCH] Add missing wl_shm_pool::error enum Existing implementations are using wl_shm::error for errors that apply to both wl_shm and wl_shm_pool. The existing error values are assigned to the new enum so existing code will continue to work but it will now be clearer what errors can be emitted. wl_shm::error::invalid_format is now unused. Signed-off-by: Robert Ancell --- protocol/wayland.xml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 11f0de36..6670ba98 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -220,7 +220,7 @@ - + The wl_shm_pool object encapsulates a piece of memory shared between the compositor and client. Through the wl_shm_pool @@ -231,6 +231,14 @@ a surface or for many small buffers. + + + These errors can be emitted in response to wl_shm_pool requests. + + + + + Create a wl_buffer object from the pool. @@ -280,7 +288,7 @@ - + A singleton global object that provides support for shared memory. @@ -293,12 +301,12 @@ that can be used for buffers. - + These errors can be emitted in response to wl_shm requests. - - + +