[Mesa-dev] [PATCH 2/7] wayland-egl: forward declare struct wl_surface
Emil Velikov
emil.l.velikov at gmail.com
Fri Sep 29 12:14:37 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
It makes the header self-contained and with later commit we'll remove
the unnecessary wayland-client.h include.
Cc: Daniel Stone <daniels at collabora.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
src/egl/wayland/wayland-egl/wayland-egl-backend.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/egl/wayland/wayland-egl/wayland-egl-backend.h b/src/egl/wayland/wayland-egl/wayland-egl-backend.h
index 3b59908cc16..a2c8656580b 100644
--- a/src/egl/wayland/wayland-egl/wayland-egl-backend.h
+++ b/src/egl/wayland/wayland-egl/wayland-egl-backend.h
@@ -43,6 +43,8 @@ extern "C" {
#define WL_EGL_WINDOW_VERSION 3
+struct wl_surface;
+
struct wl_egl_window {
const intptr_t version;
--
2.14.1
More information about the mesa-dev
mailing list