summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-02-08 15:40:12 -0500
committerChris Michael <cpmichael@osg.samsung.com>2016-02-08 15:40:57 -0500
commit971fbf317ddd6062bd136456e03b86abb8b2441f (patch)
tree9c9a0315e77ccd9c9a81c613e843629fbd75e6f8
parent56a387ef82d703548f2acc539c298058096dc854 (diff)
ecore-libinput: Add ecore_libinput_shutdown functiondevs/devilhorns/ecore_libinput
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
-rw-r--r--src/lib/ecore_libinput/Ecore_Libinput.h1
-rw-r--r--src/lib/ecore_libinput/ecore_libinput.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/ecore_libinput/Ecore_Libinput.h b/src/lib/ecore_libinput/Ecore_Libinput.h
index 6170bf8d90..89b768d6eb 100644
--- a/src/lib/ecore_libinput/Ecore_Libinput.h
+++ b/src/lib/ecore_libinput/Ecore_Libinput.h
@@ -32,6 +32,7 @@
32/* # endif */ 32/* # endif */
33 33
34EAPI int ecore_libinput_init(void); 34EAPI int ecore_libinput_init(void);
35EAPI int ecore_libinput_shutdown(void);
35 36
36/* # ifdef __cplusplus */ 37/* # ifdef __cplusplus */
37/* } */ 38/* } */
diff --git a/src/lib/ecore_libinput/ecore_libinput.c b/src/lib/ecore_libinput/ecore_libinput.c
index 6bcc6a376c..3b935898c2 100644
--- a/src/lib/ecore_libinput/ecore_libinput.c
+++ b/src/lib/ecore_libinput/ecore_libinput.c
@@ -43,3 +43,18 @@ log_err:
43eina_err: 43eina_err:
44 return --_ecore_libinput_init_count; 44 return --_ecore_libinput_init_count;
45} 45}
46
47EAPI int
48ecore_libinput_shutdown(void)
49{
50 if (--_ecore_libinput_init_count != 0) return _ecore_libinput_init_count;
51
52 eeze_shutdown();
53 ecore_event_shutdown();
54
55 eina_log_domain_unregister(_ecore_libinput_log_dom);
56 _ecore_libinput_log_dom = -1;
57
58 eina_shutdown();
59 return _ecore_libinput_init_count;
60}