forked from enlightenment/efl
ecore-wl2: Add API function for clients to disconnect from a Wayland display
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
3a708abdf4
commit
5e3a9860aa
|
@ -129,6 +129,18 @@ EAPI Ecore_Wl2_Display *ecore_wl2_display_create(const char *name);
|
|||
*/
|
||||
EAPI Ecore_Wl2_Display *ecore_wl2_display_connect(const char *name);
|
||||
|
||||
/**
|
||||
* Disconnect an existing Wayland display
|
||||
*
|
||||
* @brief This function is typically used by clients to disconnect from an
|
||||
* existing Wayland display.
|
||||
*
|
||||
* @param display The display to disconnect from
|
||||
*
|
||||
* @ingroup Ecore_Wl2_Display_Group
|
||||
*/
|
||||
EAPI void ecore_wl2_display_disconnect(Ecore_Wl2_Display *display);
|
||||
|
||||
/**
|
||||
* Retrieve the existing Wayland display
|
||||
*
|
||||
|
|
|
@ -286,3 +286,10 @@ ecore_wl2_display_shm_get(Ecore_Wl2_Display *display)
|
|||
EINA_SAFETY_ON_NULL_RETURN_VAL(display, NULL);
|
||||
return display->wl.shm;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_display_disconnect(Ecore_Wl2_Display *display)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(display);
|
||||
wl_display_disconnect(display->wl.display);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue