[cogl/wip/rib/cogl-1.12: 119/139] Move cogl_wayland_display_ proto to cogl-wayland-server.h
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/rib/cogl-1.12: 119/139] Move cogl_wayland_display_ proto to cogl-wayland-server.h
- Date: Wed, 15 Aug 2012 13:13:26 +0000 (UTC)
commit e347135b6aa9f67ade7152af5abcad01a3305cc1
Author: Robert Bragg <robert linux intel com>
Date: Mon Aug 6 17:22:49 2012 +0100
Move cogl_wayland_display_ proto to cogl-wayland-server.h
We need to avoid including wayland-server.h or wayland-client.h
indirectly when including cogl.h because there are overlapping typedef
names between the client and server wayland headers and we can't assume
whether Cogl is being used client or server side. This moves the
prototype for cogl_wayland_display_set_compositor_display() into
cogl-wayland-server.h which Cogl apps must include explicitly if the
want access to server side Cogl Wayland symbols.
Reviewed-by: Neil Roberts <neil linux intel com>
(cherry picked from commit 0773107deb9eded408e2801f217462c5d551f15a)
cogl/cogl-display.h | 18 ------------------
cogl/cogl-wayland-server.h | 18 ++++++++++++++++--
2 files changed, 16 insertions(+), 20 deletions(-)
---
diff --git a/cogl/cogl-display.h b/cogl/cogl-display.h
index 463b99c..c8cf7be 100644
--- a/cogl/cogl-display.h
+++ b/cogl/cogl-display.h
@@ -171,24 +171,6 @@ cogl_gdl_display_set_plane (CoglDisplay *display,
gdl_plane_id_t plane);
#endif
-#ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
-/**
- * cogl_wayland_display_set_compositor_display:
- * @display: a #CoglDisplay
- * @wayland_display: A compositor's Wayland display pointer
- *
- * Informs Cogl of a compositor's Wayland display pointer. This
- * enables Cogl to register private wayland extensions required to
- * pass buffers between the clients and compositor.
- *
- * Since: 1.10
- * Stability: unstable
- */
-void
-cogl_wayland_display_set_compositor_display (CoglDisplay *display,
- struct wl_display *wayland_display);
-#endif
-
/**
* cogl_is_display:
* @object: A #CoglObject pointer
diff --git a/cogl/cogl-wayland-server.h b/cogl/cogl-wayland-server.h
index 9c2cb46..315af22 100644
--- a/cogl/cogl-wayland-server.h
+++ b/cogl/cogl-wayland-server.h
@@ -34,8 +34,22 @@
G_BEGIN_DECLS
-#define cogl_wayland_texture_2d_new_from_buffer \
- cogl_wayland_texture_2d_new_from_buffer_EXP
+/**
+ * cogl_wayland_display_set_compositor_display:
+ * @display: a #CoglDisplay
+ * @wayland_display: A compositor's Wayland display pointer
+ *
+ * Informs Cogl of a compositor's Wayland display pointer. This
+ * enables Cogl to register private wayland extensions required to
+ * pass buffers between the clients and compositor.
+ *
+ * Since: 1.10
+ * Stability: unstable
+ */
+void
+cogl_wayland_display_set_compositor_display (CoglDisplay *display,
+ struct wl_display *wayland_display);
+
/**
* cogl_wayland_texture_2d_new_from_buffer:
* @ctx: A #CoglContext
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]