aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/wayland/wayland-drm
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-09-01 14:18:50 +0100
committerEmil Velikov <[email protected]>2017-09-19 19:02:34 +0100
commit1d0be5b3fe548ee33d4520092f583c76d42510a6 (patch)
treea098e41a6accf7dcf42ccbfb880a5d11f390febd /src/egl/wayland/wayland-drm
parent0007195d8114c5028395de208d45e5c429c12851 (diff)
wayland-drm: constify the callbacks struct
Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/egl/wayland/wayland-drm')
-rw-r--r--src/egl/wayland/wayland-drm/wayland-drm.c4
1 files changed, 2 insertions, 2 deletions
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;