[RFC wayland 7/9] wayland-egl: forward declare struct wl_surface

Emil Velikov emil.l.velikov at gmail.com
Fri Sep 15 10:29:25 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

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

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 egl/wayland-egl-priv.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/egl/wayland-egl-priv.h b/egl/wayland-egl-priv.h
index 2b4ed36..ada5226 100644
--- a/egl/wayland-egl-priv.h
+++ b/egl/wayland-egl-priv.h
@@ -47,6 +47,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 wayland-devel mailing list