include standalone cogl-wayland-server/client headers
authorRobert Bragg <robert@linux.intel.com>
Tue, 20 Mar 2012 13:50:42 +0000 (13:50 +0000)
committerRobert Bragg <robert@linux.intel.com>
Tue, 20 Mar 2012 14:36:50 +0000 (14:36 +0000)
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
clutter/wayland/clutter-backend-wayland.c
clutter/wayland/clutter-stage-wayland.c
clutter/wayland/clutter-wayland-surface.c

index 509f423..0bfe4e3 100644 (file)
@@ -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);
index db5613c..6db22c9 100644 (file)
@@ -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
 
index f5cb4f8..9cd83d6 100644 (file)
 
 #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;
 
index a86f04e..b128782 100644 (file)
@@ -48,8 +48,7 @@
 #include "clutter-backend.h"
 
 #include <cogl/cogl.h>
-
-#include <wayland-server.h>
+#include <cogl/cogl-wayland-server.h>
 
 enum
 {