summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland
diff options
context:
space:
mode:
authorDaniel Stone <[email protected]>2017-09-22 15:40:59 -0700
committerDaniel Stone <[email protected]>2017-09-26 21:48:17 +0100
commit5b7e65136440f60a6afe85c9517f42861ee07224 (patch)
tree09e56c10e40461af43d93379b9f2ffc8b461c4f4 /src/egl/wayland
parent8822ea100cfd7482290c3c6b2a7200c8b888a7f4 (diff)
Revert "wayland-drm: constify the callbacks struct"
The wayland-drm callback struct is referenced, rather than duplicated, inside wayland-drm. Constifying this struct involved moving it on to the stack; as a result, starting any EGL client on Wayland called into random stack memory, and killed the compositor. This reverts commit 1d0be5b3fe548ee33d4520092f583c76d42510a6 and 39d539e321c6c97433a15660c9d9a20ad8657ff0. Signed-off-by: Daniel Stone <[email protected]> Cc: Emil Velikov <[email protected]> Cc: Krzysztof Sobiecki <[email protected]> Fixes: 1d0be5b3fe54 ("wayland-drm: constify the callbacks struct")
Diffstat (limited to 'src/egl/wayland')
-rw-r--r--src/egl/wayland/wayland-drm/wayland-drm.c4
-rw-r--r--src/egl/wayland/wayland-drm/wayland-drm.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c
index 5c17b4386b5..2e256aea6d5 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;
- const struct wayland_drm_callbacks *callbacks;
+ 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,
- const struct wayland_drm_callbacks *callbacks, void *user_data,
+ struct wayland_drm_callbacks *callbacks, void *user_data,
uint32_t flags)
{
struct wl_drm *drm;
diff --git a/src/egl/wayland/wayland-drm/wayland-drm.h b/src/egl/wayland/wayland-drm/wayland-drm.h
index 111383ff1d6..77e8d273042 100644
--- a/src/egl/wayland/wayland-drm/wayland-drm.h
+++ b/src/egl/wayland/wayland-drm/wayland-drm.h
@@ -34,7 +34,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,
- const struct wayland_drm_callbacks *callbacks, void *user_data,
+ struct wayland_drm_callbacks *callbacks, void *user_data,
uint32_t flags);
void