summaryrefslogtreecommitdiffstats
path: root/src/compositor/global
diff options
context:
space:
mode:
authorVolker Krause <volker.krause@kdab.com>2016-04-20 13:25:01 +0200
committerVolker Krause <volker.krause@kdab.com>2016-04-20 11:34:12 +0000
commit33e89749bcf88932e7c3dd515ffcc4da911a765d (patch)
treed9303e18d336752dbb141558db685b883807b5fe /src/compositor/global
parent15216555593740029f3c25ee16dc4dc248a017b7 (diff)
Forward declare Wayland types in public headers.
This has the nice side-effect that qtwayland now builds with Wayland headers in non-standard locations, as targets including these headers (such as the compositor QML API) no longer need to have Wayland include paths set correctly. Change-Id: Ifc1c71b4d61996a219150173341da461da772d22 Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'src/compositor/global')
-rw-r--r--src/compositor/global/qwaylandextension.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compositor/global/qwaylandextension.h b/src/compositor/global/qwaylandextension.h
index 7331731ea..0088601be 100644
--- a/src/compositor/global/qwaylandextension.h
+++ b/src/compositor/global/qwaylandextension.h
@@ -38,11 +38,12 @@
#define QWAYLANDEXTENSION_H
#include <QtWaylandCompositor/qwaylandexport.h>
-#include <wayland-server.h>
#include <QtCore/QObject>
#include <QtCore/QVector>
+struct wl_interface;
+
QT_BEGIN_NAMESPACE
class QWaylandCompositor;