From ed8287bdba1dce8947df3932abed794ad8a8ad15 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 6 Oct 2015 10:11:23 -0400 Subject: [PATCH] ecore-wl2: Add API function to delete a subsurface Signed-off-by: Chris Michael --- src/lib/ecore_wl2/Ecore_Wl2.h | 9 +++++++++ src/lib/ecore_wl2/ecore_wl2_subsurf.c | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h index d2fbae53a1..73ff8b000e 100644 --- a/src/lib/ecore_wl2/Ecore_Wl2.h +++ b/src/lib/ecore_wl2/Ecore_Wl2.h @@ -590,6 +590,15 @@ EAPI void ecore_wl2_input_ungrab(Ecore_Wl2_Input *input); */ EAPI Ecore_Wl2_Subsurface *ecore_wl2_subsurface_new(Ecore_Wl2_Window *window); +/** + * Destroy the given subsurface, as well as the surface associated with it. + * + * @param ess the subsurface + * + * @ingroup Ecore_Wl2_Subsurface_Group + */ +EAPI void ecore_wl2_subsurface_del(Ecore_Wl2_Subsurface *subsurface); + /* # ifdef __cplusplus */ /* } */ /* # endif */ diff --git a/src/lib/ecore_wl2/ecore_wl2_subsurf.c b/src/lib/ecore_wl2/ecore_wl2_subsurf.c index 90a934364a..ac8d1830bf 100644 --- a/src/lib/ecore_wl2/ecore_wl2_subsurf.c +++ b/src/lib/ecore_wl2/ecore_wl2_subsurf.c @@ -69,3 +69,11 @@ surf_err: free(subsurf); return NULL; } + +EAPI void +ecore_wl2_subsurface_del(Ecore_Wl2_Subsurface *subsurface) +{ + EINA_SAFETY_ON_NULL_RETURN(subsurface); + + _ecore_wl2_subsurf_free(subsurface); +}