mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-29 05:40:16 -04:00
shm: Make shm_pool_interface static const
Add static const modifiers to the shm_pool_interface definition, making it consistent with the other wl_*_interface definitions and mundanely safer. Note that this does not affect the ABI, according to abi-dumper and abi-compliance-checker[1]; and weston and its shm-backed clients still run as expected. [1]: http://lvc.github.io/abi-compliance-checker/ Signed-off-by: Yong Bakos <ybakos@humanoriented.com> Tested-by: Yong Bakos <ybakos@humanoriented.com> Acked-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
parent
ae139d8b6b
commit
da58e07c3d
1 changed files with 1 additions and 1 deletions
|
|
@ -247,7 +247,7 @@ shm_pool_resize(struct wl_client *client, struct wl_resource *resource,
|
|||
shm_pool_finish_resize(pool);
|
||||
}
|
||||
|
||||
struct wl_shm_pool_interface shm_pool_interface = {
|
||||
static const struct wl_shm_pool_interface shm_pool_interface = {
|
||||
shm_pool_create_buffer,
|
||||
shm_pool_destroy,
|
||||
shm_pool_resize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue