summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-08-18 10:15:01 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commitb085e688d59af619a800e22202c413af4e19c6e3 (patch)
tree3afb8e6409c239ac2456feb1512a239679ef71b3 /src/lib/ecore_wl2/ecore_wl2.c
parentd769724cccfd1ce3c3cbb50a37e7b8c8e08abeb3 (diff)
ecore-wl2: Add API function for ecore_wl2_shutdown
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index 8943f8135e..5b643fbd1c 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -66,3 +66,34 @@ eina_err:
66 eina_shutdown(); 66 eina_shutdown();
67 return --_ecore_wl2_init_count; 67 return --_ecore_wl2_init_count;
68} 68}
69
70EAPI int
71ecore_wl2_shutdown(void)
72{
73 if (_ecore_wl2_init_count < 1)
74 {
75 ERR("Ecore_Wl2 shutdown called without Ecore_Wl2 Init");
76 return 0;
77 }
78
79 if (--_ecore_wl2_init_count != 0) return _ecore_wl2_init_count;
80
81 /* reset events */
82 ECORE_WL2_EVENT_GLOBAL_ADDED = 0;
83 ECORE_WL2_EVENT_GLOBAL_REMOVED = 0;
84
85 /* shutdown Ecore_Event */
86 ecore_event_shutdown();
87
88 /* shutdown Ecore */
89 ecore_shutdown();
90
91 /* unregister logging domain */
92 eina_log_domain_unregister(_ecore_wl2_log_dom);
93 _ecore_wl2_log_dom = -1;
94
95 /* shutdown eina */
96 eina_shutdown();
97
98 return _ecore_wl2_init_count;
99}