summaryrefslogtreecommitdiff
path: root/src/modules/access_output
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2016-03-18 11:54:00 -0700
committerCedric Bail <cedric@osg.samsung.com>2016-03-18 11:54:07 -0700
commit7e801846e9c77328f42364f5b9aebe3d4b75b812 (patch)
tree32574b4b83b7744c38d42bd6fed16d071141144b /src/modules/access_output
parent09e7ffe7f06f4612ea6e3740447bdbdc81a083e9 (diff)
modules: remove error message from dlsym() when a module is loaded
Summary: dlsym() could print error message when it tried to load a nonexistent symbol. Whenever eina_module_load is called, it checks __eina_module_init symbol. Even if there is no symbol for init, module loading could be done well. But, it will print an error message. So, we need to use EINA_MODULE_INIT, EINA_MODULE_SHUTDOWN in every modules for removing error messages. Test Plan: N/A Reviewers: woohyun, raster, Hermet, seoz, cedric Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D3805 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/modules/access_output')
-rw-r--r--src/modules/access_output/mod.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/modules/access_output/mod.c b/src/modules/access_output/mod.c
index 3f15f3292..0dff15988 100644
--- a/src/modules/access_output/mod.c
+++ b/src/modules/access_output/mod.c
@@ -121,3 +121,17 @@ out_done_callback_set(void (*func) (void *data), const void *data)
121 cb_func = func; 121 cb_func = func;
122 cb_data = (void *)data; 122 cb_data = (void *)data;
123} 123}
124
125static Eina_Bool
126_module_init(void)
127{
128 return EINA_TRUE;
129}
130
131static void
132_module_shutdown(void)
133{
134}
135
136EINA_MODULE_INIT(_module_init);
137EINA_MODULE_SHUTDOWN(_module_shutdown);