Mesa (master): wayland-egl: forward declare struct wl_surface

Emil Velikov evelikov at kemper.freedesktop.org
Mon Oct 2 15:36:42 UTC 2017


Module: Mesa
Branch: master
Commit: 860deb4191cd8eb78443e9fcbc679714dfe9e10e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=860deb4191cd8eb78443e9fcbc679714dfe9e10e

Author: Emil Velikov <emil.velikov at collabora.com>
Date:   Thu Sep 28 18:09:48 2017 +0100

wayland-egl: forward declare struct wl_surface

It makes the header self-contained and with later commit we'll remove
the unnecessary wayland-client.h include.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
Reviewed-by: Daniel Stone <daniels at collabora.com>
Reviewed-by: Miguel A. Vico <mvicomoya at nvidia.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 3b59908cc1..a2c8656580 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;
 




More information about the mesa-commit mailing list