diff options
| author | Sebastian Wick <sebastian.wick@redhat.com> | 2023-07-06 18:18:37 +0200 |
|---|---|---|
| committer | Sebastian Wick <sebastian@sebastianwick.net> | 2025-01-22 14:28:50 +0000 |
| commit | bdba21ec92bf582f606806ad5fd15107979d8947 (patch) | |
| tree | a41a5a35cd3ddc6488c27b994efef2a0d5c1ba39 /src/wayland-shm.c | |
| parent | ci: Update ci-templates (diff) | |
| download | wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar.gz wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar.bz2 wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar.lz wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar.xz wayland-bdba21ec92bf582f606806ad5fd15107979d8947.tar.zst wayland-bdba21ec92bf582f606806ad5fd15107979d8947.zip | |
server: add const qualifier to function arguments where possible
Makes it possible to e.g. `call wl_client_get_credentials` with a `const
struct wl_client *` from a global filter callback.
Signed-off-by: Sebastian Wick <sebastian.wick@redhat.com>
Diffstat (limited to 'src/wayland-shm.c')
| -rw-r--r-- | src/wayland-shm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wayland-shm.c b/src/wayland-shm.c index 87917da..9b3aac6 100644 --- a/src/wayland-shm.c +++ b/src/wayland-shm.c @@ -445,7 +445,7 @@ wl_shm_buffer_get(struct wl_resource *resource) } WL_EXPORT int32_t -wl_shm_buffer_get_stride(struct wl_shm_buffer *buffer) +wl_shm_buffer_get_stride(const struct wl_shm_buffer *buffer) { return buffer->stride; } @@ -479,19 +479,19 @@ wl_shm_buffer_get_data(struct wl_shm_buffer *buffer) } WL_EXPORT uint32_t -wl_shm_buffer_get_format(struct wl_shm_buffer *buffer) +wl_shm_buffer_get_format(const struct wl_shm_buffer *buffer) { return buffer->format; } WL_EXPORT int32_t -wl_shm_buffer_get_width(struct wl_shm_buffer *buffer) +wl_shm_buffer_get_width(const struct wl_shm_buffer *buffer) { return buffer->width; } WL_EXPORT int32_t -wl_shm_buffer_get_height(struct wl_shm_buffer *buffer) +wl_shm_buffer_get_height(const struct wl_shm_buffer *buffer) { return buffer->height; } |
