summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2016-01-14 16:59:12 +0100
committerLukasz Stanislawski <l.stanislaws@samsung.com>2016-01-14 16:59:12 +0100
commite102604b48d4ab6da3272377ebc9f4fd97a78aff (patch)
tree9ef684f3db68fdfd5b5bdaeeea338633af763306
parent2cba9b53a7448a57b36662058c94007b2281c79e (diff)
modules/atspi: zone support (under devel)devs/stanluk/a11y
-rw-r--r--src/modules/Makefile_atspi_accessibility.mk3
-rw-r--r--src/modules/atspi_accessibility/e_a11y_zone.c50
-rw-r--r--src/modules/atspi_accessibility/e_a11y_zone.h4
-rw-r--r--src/modules/atspi_accessibility/e_mod_main.c8
4 files changed, 64 insertions, 1 deletions
diff --git a/src/modules/Makefile_atspi_accessibility.mk b/src/modules/Makefile_atspi_accessibility.mk
index c88598247..af6389287 100644
--- a/src/modules/Makefile_atspi_accessibility.mk
+++ b/src/modules/Makefile_atspi_accessibility.mk
@@ -8,7 +8,8 @@ src_modules_atspi_accessibility_module_la_LIBADD = $(MOD_LIBS)
8src_modules_atspi_accessibility_module_la_CPPFLAGS = $(MOD_CPPFLAGS) 8src_modules_atspi_accessibility_module_la_CPPFLAGS = $(MOD_CPPFLAGS)
9src_modules_atspi_accessibility_module_la_LDFLAGS = $(MOD_LDFLAGS) 9src_modules_atspi_accessibility_module_la_LDFLAGS = $(MOD_LDFLAGS)
10src_modules_atspi_accessibility_module_la_SOURCES = src/modules/atspi_accessibility/e_mod_main.c \ 10src_modules_atspi_accessibility_module_la_SOURCES = src/modules/atspi_accessibility/e_mod_main.c \
11 src/modules/atspi_accessibility/e_atspi_object.c 11 src/modules/atspi_accessibility/e_atspi_object.c \
12 src/modules/atspi_accessibility/e_a11y_zone.c
12 13
13PHONIES += atspi_accessibility install-atspi_accessibility 14PHONIES += atspi_accessibility install-atspi_accessibility
14atspi_accessibility: $(atspi_accessibilitypkg_LTLIBRARIES) $(atspi_accessibility_DATA) 15atspi_accessibility: $(atspi_accessibilitypkg_LTLIBRARIES) $(atspi_accessibility_DATA)
diff --git a/src/modules/atspi_accessibility/e_a11y_zone.c b/src/modules/atspi_accessibility/e_a11y_zone.c
new file mode 100644
index 000000000..7f93dbf4e
--- /dev/null
+++ b/src/modules/atspi_accessibility/e_a11y_zone.c
@@ -0,0 +1,50 @@
1#include "e.h"
2
3
4static int _zone_a11y_enable(E_Zone *zone)
5{
6 return 0;
7}
8
9static int _zone_a11y_disable(E_Zone *zone)
10{
11 return 0;
12}
13
14/* Initializate atspi-accessibility features of E_Zone objects */
15int e_a11y_zones_init(void)
16{
17 Eina_List *l;
18 E_Zone *zone;
19
20 if (!e_comp)
21 return -1;
22
23 EINA_LIST_FOREACH(e_comp->zones, l, zone)
24 {
25 _zone_a11y_enable(zone);
26 }
27
28 // register on zone add/remove events
29
30 return 0;
31}
32
33int e_a11y_zones_shutdown(void)
34{
35 Eina_List *l;
36 E_Zone *zone;
37
38 if (!e_comp)
39 return -1;
40
41 EINA_LIST_FOREACH(e_comp->zones, l, zone)
42 {
43 _zone_a11y_disable(zone);
44 }
45
46 // unregister zone add/remove events
47
48 return 0;
49}
50
diff --git a/src/modules/atspi_accessibility/e_a11y_zone.h b/src/modules/atspi_accessibility/e_a11y_zone.h
new file mode 100644
index 000000000..3695bf555
--- /dev/null
+++ b/src/modules/atspi_accessibility/e_a11y_zone.h
@@ -0,0 +1,4 @@
1
2int e_a11y_zones_init(void)
3
4int e_a11y_zones_shutdown(void)
diff --git a/src/modules/atspi_accessibility/e_mod_main.c b/src/modules/atspi_accessibility/e_mod_main.c
index 27f69262e..34c1f8fe0 100644
--- a/src/modules/atspi_accessibility/e_mod_main.c
+++ b/src/modules/atspi_accessibility/e_mod_main.c
@@ -1,8 +1,16 @@
1#include "e.h" 1#include "e.h"
2 2
3#include <Elementary.h>
4
3E_API void * 5E_API void *
4e_modapi_init(E_Module *m) 6e_modapi_init(E_Module *m)
5{ 7{
8 // Ensure that elm is initialized.
9 elm_init(0, NULL);
10
11 // Ensure that atspi mode is on, despite current elm configuration.
12 elm_config_atspi_mode_set(EINA_TRUE);
13
6 return NULL; 14 return NULL;
7} 15}
8 16