devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ed8287bdba1dce8947df3932abed794ad8a8ad15

commit ed8287bdba1dce8947df3932abed794ad8a8ad15
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Oct 6 10:11:23 2015 -0400

    ecore-wl2: Add API function to delete a subsurface
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 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 d2fbae5..73ff8b0 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 90a9343..ac8d183 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);
+}

-- 


Reply via email to