devilhorns pushed a commit to branch master.

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

commit b085e688d59af619a800e22202c413af4e19c6e3
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Aug 18 10:15:01 2015 -0400

    ecore-wl2: Add API function for ecore_wl2_shutdown
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 8943f81..5b643fb 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -66,3 +66,34 @@ eina_err:
    eina_shutdown();
    return --_ecore_wl2_init_count;
 }
+
+EAPI int
+ecore_wl2_shutdown(void)
+{
+   if (_ecore_wl2_init_count < 1)
+     {
+        ERR("Ecore_Wl2 shutdown called without Ecore_Wl2 Init");
+        return 0;
+     }
+
+   if (--_ecore_wl2_init_count != 0) return _ecore_wl2_init_count;
+
+   /* reset events */
+   ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
+   ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
+
+   /* shutdown Ecore_Event */
+   ecore_event_shutdown();
+
+   /* shutdown Ecore */
+   ecore_shutdown();
+
+   /* unregister logging domain */
+   eina_log_domain_unregister(_ecore_wl2_log_dom);
+   _ecore_wl2_log_dom = -1;
+
+   /* shutdown eina */
+   eina_shutdown();
+
+   return _ecore_wl2_init_count;
+}

-- 


Reply via email to