ecore-wl2: Add API function to delete a subsurface

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-10-06 10:11:23 -04:00
parent 6c16d7967b
commit ed8287bdba
2 changed files with 17 additions and 0 deletions

View File

@ -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 */

View File

@ -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);
}