summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_subsurf.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-10-06 10:14:06 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit32bb1237c69c517c50eb6564cf47901a4bb84532 (patch)
tree49baed6edade5b91ce91604b7d57076a8a7282e2 /src/lib/ecore_wl2/ecore_wl2_subsurf.c
parented8287bdba1dce8947df3932abed794ad8a8ad15 (diff)
ecore-wl2: Add API function to return the wl_surface of a subsurface
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_subsurf.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_subsurf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
index ac8d1830bf..eab1ec630c 100644
--- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c
+++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c
@@ -77,3 +77,11 @@ ecore_wl2_subsurface_del(Ecore_Wl2_Subsurface *subsurface)
77 77
78 _ecore_wl2_subsurf_free(subsurface); 78 _ecore_wl2_subsurf_free(subsurface);
79} 79}
80
81EAPI struct wl_surface *
82ecore_wl2_subsurface_surface_get(Ecore_Wl2_Subsurface *subsurface)
83{
84 EINA_SAFETY_ON_NULL_RETURN_VAL(subsurface, NULL);
85
86 return subsurface->wl.surface;
87}