devilhorns pushed a commit to branch master.

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

commit a079b102243a059d7b3b7b6be70f7dacae0663cf
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Aug 20 10:22:03 2015 -0400

    ecore-wl2: Add API function for servers to destroy a wayland display
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h         | 12 ++++++++++++
 src/lib/ecore_wl2/ecore_wl2_display.c |  7 +++++++
 2 files changed, 19 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 0ae3f8d..d54d4bb 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -115,6 +115,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
  *
  * @brief This function is typically used by clients to connect to an
diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c 
b/src/lib/ecore_wl2/ecore_wl2_display.c
index ca5292d..f372d70 100644
--- a/src/lib/ecore_wl2/ecore_wl2_display.c
+++ b/src/lib/ecore_wl2/ecore_wl2_display.c
@@ -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);
+}

-- 


Reply via email to