[clutter/clutter-1.10] include standalone cogl-wayland-server/client headers
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.10] include standalone cogl-wayland-server/client headers
- Date: Tue, 20 Mar 2012 15:11:01 +0000 (UTC)
commit dea90d2fe394d724e569f1558322bc7a9b35061f
Author: Robert Bragg <robert linux intel com>
Date: Tue Mar 20 13:50:42 2012 +0000
include standalone cogl-wayland-server/client headers
Because the wayland-server-protocol.h header includes symbols that
collide with wayland-client-protocol.h Cogl now provides top level
<cogl/cogl-wayland-server.h> and <cogl/cogl-wayland-client.h> headers so
that applications can ensure they only include one of the wayland
protocol headers in a particular compilation unit. This updates clutter
accordingly to include those headers.
Reviewed-by: Neil Roberts <neil linux intel com>
Reviewed-by: Emmanuele Bassi <ebassi linux intel com>
clutter/clutter-backend.c | 2 ++
clutter/wayland/clutter-backend-wayland.c | 1 +
clutter/wayland/clutter-stage-wayland.c | 2 ++
clutter/wayland/clutter-wayland-surface.c | 3 +--
4 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c
index 509f423..0bfe4e3 100644
--- a/clutter/clutter-backend.c
+++ b/clutter/clutter-backend.c
@@ -81,7 +81,9 @@
#endif
#ifdef HAVE_CLUTTER_WAYLAND_COMPOSITOR
+#include <cogl/cogl-wayland-server.h>
#include <wayland-server.h>
+#include "wayland/clutter-wayland-compositor.h"
#endif
G_DEFINE_ABSTRACT_TYPE (ClutterBackend, clutter_backend, G_TYPE_OBJECT);
diff --git a/clutter/wayland/clutter-backend-wayland.c b/clutter/wayland/clutter-backend-wayland.c
index db5613c..6db22c9 100644
--- a/clutter/wayland/clutter-backend-wayland.c
+++ b/clutter/wayland/clutter-backend-wayland.c
@@ -51,6 +51,7 @@
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <cogl/cogl.h>
+#include <cogl/cogl-wayland-client.h>
#define clutter_backend_wayland_get_type _clutter_backend_wayland_get_type
diff --git a/clutter/wayland/clutter-stage-wayland.c b/clutter/wayland/clutter-stage-wayland.c
index f5cb4f8..9cd83d6 100644
--- a/clutter/wayland/clutter-stage-wayland.c
+++ b/clutter/wayland/clutter-stage-wayland.c
@@ -30,12 +30,14 @@
#include <glib.h>
+#include "clutter-wayland.h"
#include "clutter-stage-wayland.h"
#include "clutter-backend-wayland.h"
#include "clutter-stage-window.h"
#include "clutter-stage-private.h"
#include "clutter-event-private.h"
#include <cogl/cogl.h>
+#include <cogl/cogl-wayland-client.h>
static ClutterStageWindowIface *clutter_stage_window_parent_iface = NULL;
diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c
index a86f04e..b128782 100644
--- a/clutter/wayland/clutter-wayland-surface.c
+++ b/clutter/wayland/clutter-wayland-surface.c
@@ -48,8 +48,7 @@
#include "clutter-backend.h"
#include <cogl/cogl.h>
-
-#include <wayland-server.h>
+#include <cogl/cogl-wayland-server.h>
enum
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]