Signed-off-by: Chris Michael <cp.michael@samsung.com>
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
*
* @brief This function is typically used by clients to connect to an
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);
+}