output: change error value & add logs for debugging
[platform/core/uifw/libtdm.git] / utests / stubs / stub_dlfcn.h
1 #ifndef _DLFCN_STUBS_H_
2 #define _DLFCN_STUBS_H_
3
4 #include <dlfcn.h>
5
6 struct _dlfcn_stub_ctrl {
7         void* dlsym_returned_val;
8         void* dlopen_returned_val;
9 };
10
11 extern struct _dlfcn_stub_ctrl stub_dlfcn_ctrl;
12
13 void stub_dlfcn_init();
14
15 void *stub_dlopen (const char * file, int mode);
16 int stub_dlclose (void * handle);
17 void *stub_dlsym (void * handle, const char *name);
18
19 #ifndef STUB_DLFCN_IMPL
20         #define dlopen stub_dlopen
21         #define dlclose stub_dlclose
22         #define dlsym stub_dlsym
23 #endif
24
25 #endif /* _DLFCN_STUBS_H_ */