From 1d0be5b3fe548ee33d4520092f583c76d42510a6 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 1 Sep 2017 14:18:50 +0100 Subject: wayland-drm: constify the callbacks struct Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- src/egl/wayland/wayland-drm/wayland-drm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/egl/wayland/wayland-drm/wayland-drm.c') diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 2e256aea6d5..5c17b4386b5 100644 --- a/src/egl/wayland/wayland-drm/wayland-drm.c +++ b/src/egl/wayland/wayland-drm/wayland-drm.c @@ -47,7 +47,7 @@ struct wl_drm { char *device_name; uint32_t flags; - struct wayland_drm_callbacks *callbacks; + const struct wayland_drm_callbacks *callbacks; struct wl_buffer_interface buffer_interface; }; @@ -259,7 +259,7 @@ wayland_drm_buffer_get(struct wl_drm *drm, struct wl_resource *resource) struct wl_drm * wayland_drm_init(struct wl_display *display, char *device_name, - struct wayland_drm_callbacks *callbacks, void *user_data, + const struct wayland_drm_callbacks *callbacks, void *user_data, uint32_t flags) { struct wl_drm *drm; -- cgit v1.2.3