ecore-wl2: Add API function for servers to destroy a wayland display
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
5e3a9860aa
commit
a079b10224
|
@ -114,6 +114,18 @@ EAPI int ecore_wl2_shutdown(void);
|
|||
*/
|
||||
EAPI Ecore_Wl2_Display *ecore_wl2_display_create(const char *name);
|
||||
|
||||
/**
|
||||
* Destroy an existing Wayland display
|
||||
*
|
||||
* @brief This function is typically used by servers to terminate an
|
||||
* existing Wayland display.
|
||||
*
|
||||
* @param display The display to terminate
|
||||
*
|
||||
* @ingroup Ecore_Wl2_Display_Group
|
||||
*/
|
||||
EAPI void ecore_wl2_display_destroy(Ecore_Wl2_Display *display);
|
||||
|
||||
/**
|
||||
* Connect to an existing Wayland display
|
||||
*
|
||||
|
|
|
@ -293,3 +293,10 @@ ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
|
|||
EINA_SAFETY_ON_NULL_RETURN(display);
|
||||
wl_display_disconnect(display->wl.display);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_display_destroy(Ecore_Wl2_Display *display)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(display);
|
||||
wl_display_destroy(display->wl.display);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue