summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-01-09 19:16:21 +0000
committerNeil Roberts <neil@linux.intel.com>2012-03-01 11:41:51 +0000
commit0ba6127edc16db16884a27efcfdefc422eaac382 (patch)
tree764513ccc05dcd0db6b1ff20f693bb6eca2a25b9
parent83b94ec27d3073cbfaec92e9f1b4c7568081d568 (diff)
downloadclutter-0ba6127edc16db16884a27efcfdefc422eaac382.tar.gz
wayland-surface: Adds _get_surface function
This adds a clutter_wayland_surface_get_surface() function for querying the struct wl_surface * associated with a ClutterWaylandSurface. Reviewed-by: Neil Roberts <neil@linux.intel.com> Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
-rw-r--r--clutter/wayland/clutter-wayland-surface.c9
-rw-r--r--clutter/wayland/clutter-wayland-surface.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c
index 338812625..a9d297ade 100644
--- a/clutter/wayland/clutter-wayland-surface.c
+++ b/clutter/wayland/clutter-wayland-surface.c
@@ -213,7 +213,14 @@ set_size (ClutterWaylandSurface *self,
}
}
-static void
+struct wl_surface *
+clutter_wayland_surface_get_surface (ClutterWaylandSurface *self)
+{
+ ClutterWaylandSurfacePrivate *priv = self->priv;
+ return priv->surface;
+}
+
+void
clutter_wayland_surface_set_surface (ClutterWaylandSurface *self,
struct wl_surface *surface)
{
diff --git a/clutter/wayland/clutter-wayland-surface.h b/clutter/wayland/clutter-wayland-surface.h
index d06eb7367..3786b548c 100644
--- a/clutter/wayland/clutter-wayland-surface.h
+++ b/clutter/wayland/clutter-wayland-surface.h
@@ -81,6 +81,7 @@ GType clutter_wayland_surface_get_type (void) G_GNUC_CONST;
ClutterActor *clutter_wayland_surface_new (struct wl_surface *surface);
void clutter_wayland_surface_set_surface (ClutterWaylandSurface *self,
struct wl_surface *surface);
+struct wl_surface *clutter_wayland_surface_get_surface (ClutterWaylandSurface *self);
gboolean clutter_wayland_surface_attach_buffer (ClutterWaylandSurface *self,
struct wl_buffer *buffer,
GError **error);