diff options
| author | Robert Ancell <robert.ancell@canonical.com> | 2026-04-22 16:33:00 +1200 |
|---|---|---|
| committer | Jonas Ã…dahl <jadahl@gmail.com> | 2026-07-02 15:34:54 +0200 |
| commit | 79e3150782b7067f4ae345305e6a4eac5930be95 (patch) | |
| tree | 49871954bc77853eaa5e04f2ed4bb111dee98376 | |
| parent | protocol: add wl_pointer.warp event (diff) | |
| download | wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar.gz wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar.bz2 wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar.lz wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar.xz wayland-79e3150782b7067f4ae345305e6a4eac5930be95.tar.zst wayland-79e3150782b7067f4ae345305e6a4eac5930be95.zip | |
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 <robert.ancell@canonical.com>
| -rw-r--r-- | protocol/wayland.xml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml index aa5fafd..eb04987 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -220,7 +220,7 @@ </request> </interface> - <interface name="wl_shm_pool" version="2"> + <interface name="wl_shm_pool" version="3"> <description summary="a shared memory pool"> 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. </description> + <enum name="error" since="3"> + <description summary="wl_shm_pool error values"> + These errors can be emitted in response to wl_shm_pool requests. + </description> + <entry name="invalid_format" value="0" summary="buffer format is not known"/> + <entry name="invalid_stride" value="1" summary="invalid size or stride during buffer creation"/> + </enum> + <request name="create_buffer"> <description summary="create a buffer from the pool"> Create a wl_buffer object from the pool. @@ -280,7 +288,7 @@ </request> </interface> - <interface name="wl_shm" version="2"> + <interface name="wl_shm" version="3"> <description summary="shared memory support"> A singleton global object that provides support for shared memory. @@ -293,12 +301,12 @@ that can be used for buffers. </description> - <enum name="error"> + <enum name="error" since="3"> <description summary="wl_shm error values"> These errors can be emitted in response to wl_shm requests. </description> - <entry name="invalid_format" value="0" summary="buffer format is not known"/> - <entry name="invalid_stride" value="1" summary="invalid size or stride during pool or buffer creation"/> + <entry name="invalid_format" value="0" summary="buffer format is not known" deprecated-since="3"/> + <entry name="invalid_stride" value="1" summary="invalid size or stride during pool creation"/> <entry name="invalid_fd" value="2" summary="mmapping the file descriptor failed"/> </enum> |
