diff options
author | Chris Michael <cpmichael@osg.samsung.com> | 2016-04-06 10:26:46 -0400 |
---|---|---|
committer | Chris Michael <cpmichael@osg.samsung.com> | 2016-04-13 14:16:17 -0400 |
commit | b764978f29d86a3e42eac1de3e438e0932b4331f (patch) | |
tree | de7edcca9f650d94c867e71c7c245302ed88182c /src/lib/elput/elput.c | |
parent | 3070c4cf08a28b2a9a3f4838ec78ce7f7bde95ec (diff) |
elput: Create and raise event when seat capabilities change
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Diffstat (limited to 'src/lib/elput/elput.c')
-rw-r--r-- | src/lib/elput/elput.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elput/elput.c b/src/lib/elput/elput.c index 1b5613fc3a..ef2ca6b783 100644 --- a/src/lib/elput/elput.c +++ b/src/lib/elput/elput.c | |||
@@ -6,6 +6,8 @@ static int _elput_init_count = 0; | |||
6 | /* external variables */ | 6 | /* external variables */ |
7 | int _elput_log_dom = -1; | 7 | int _elput_log_dom = -1; |
8 | 8 | ||
9 | EAPI int ELPUT_EVENT_SEAT_CAPS = -1; | ||
10 | |||
9 | EAPI int | 11 | EAPI int |
10 | elput_init(void) | 12 | elput_init(void) |
11 | { | 13 | { |
@@ -23,6 +25,8 @@ elput_init(void) | |||
23 | goto log_err; | 25 | goto log_err; |
24 | } | 26 | } |
25 | 27 | ||
28 | ELPUT_EVENT_SEAT_CAPS = ecore_event_type_new(); | ||
29 | |||
26 | return _elput_init_count; | 30 | return _elput_init_count; |
27 | 31 | ||
28 | log_err: | 32 | log_err: |
@@ -43,6 +47,8 @@ elput_shutdown(void) | |||
43 | if (_elput_init_count < 1) return 0; | 47 | if (_elput_init_count < 1) return 0; |
44 | if (--_elput_init_count != 0) return _elput_init_count; | 48 | if (--_elput_init_count != 0) return _elput_init_count; |
45 | 49 | ||
50 | ELPUT_EVENT_SEAT_CAPS = -1; | ||
51 | |||
46 | eina_log_domain_unregister(_elput_log_dom); | 52 | eina_log_domain_unregister(_elput_log_dom); |
47 | _elput_log_dom = -1; | 53 | _elput_log_dom = -1; |
48 | 54 | ||