summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorShinwoo Kim <kimcinoo.efl@gmail.com>2013-02-04 04:51:26 +0000
committerShinwoo Kim <kimcinoo.efl@gmail.com>2013-02-04 04:51:26 +0000
commit2f5bb2b5cfa9d57079692a0f50ae8bb0f223e22a (patch)
treef4d2e153cdd4fe74117e0b0a3bc140d523d6c744 /legacy/elementary/src/lib/elm_access.c
parent5decfb9f18d56a261090bed7066058fbdced8296 (diff)
[access] shutdown access module explicitly
SVN revision: 83577
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index 468555a..48fcfff 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -80,6 +80,21 @@ _access_init(void)
80 mapi = m->api; 80 mapi = m->api;
81} 81}
82 82
83static void
84_access_shutdown(void)
85{
86 Elm_Module *m;
87 if (initted == 0) return;
88 if (!(m = _elm_module_find_as("access/api"))) return;
89
90 m->shutdown_func(m);
91
92 initted = 0;
93
94 free(mapi);
95 mapi = NULL;
96}
97
83static Elm_Access_Item * 98static Elm_Access_Item *
84_access_add_set(Elm_Access_Info *ac, int type) 99_access_add_set(Elm_Access_Info *ac, int type)
85{ 100{
@@ -268,6 +283,12 @@ Eina_Bool _elm_access_read_mode_get()
268{ 283{
269 return read_mode; 284 return read_mode;
270} 285}
286
287void _elm_access_shutdown()
288{
289 _access_shutdown();
290}
291
271//-------------------------------------------------------------------------// 292//-------------------------------------------------------------------------//
272EAPI void 293EAPI void
273_elm_access_highlight_set(Evas_Object* obj) 294_elm_access_highlight_set(Evas_Object* obj)
@@ -420,6 +441,8 @@ _elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj)
420EAPI void 441EAPI void
421_elm_access_say(const char *txt) 442_elm_access_say(const char *txt)
422{ 443{
444 if (!_elm_config->access_mode) return;
445
423 _access_init(); 446 _access_init();
424 if (mapi) 447 if (mapi)
425 { 448 {