Ecore_Event_Handler *keydown_handler;
/* Font type change event handle */
Ecore_Event_Handler *font_handler;
- void *dlopen_iv_handle; /* Handle for dlopen imageviewer lib .so */
/* Use idler to register ASF when launching Gallery */
Ecore_Timer *reg_idler;
bool b_reged_idler;
char *_gl_delete_folder(char *path);
int gl_remove_album(void *data, gl_cluster *album_item, bool is_hide);
int _gl_free_selected_list(void *data);
-int _gl_dlopen_imageviewer(void *data);
-int _gl_dlclose_imageviewer(void *data);
char *_gl_get_edje_path(void);
char *_gl_get_directory_path(int storage_directory_type);
char *_gl_get_root_directory_path(int storage_type);
/* initializ svi */
_gl_init_svi(data);
#endif
- /* Open imageviewer UG so lib */
- _gl_dlopen_imageviewer(data);
-
GL_IF_DEL_TIMER(ad->maininfo.reg_idler);
gl_dbg("done");
return ECORE_CALLBACK_CANCEL;
/* Finallize svi */
_gl_fini_svi(data);
#endif
- /* dlopen imageviewer lib */
- _gl_dlclose_imageviewer(data);
/* Remove db monitor */
_gl_db_update_finalize(data);
/* disconnet with libmedia-info */
return 0;
}
-int _gl_dlopen_imageviewer(void *data)
-{
- GL_CHECK_VAL(data, -1);
- gl_appdata *ad = (gl_appdata *)data;
-
- if (ad->maininfo.dlopen_iv_handle) {
- gl_dbgE("Already opened imageviewer so lib!");
- return -1;
- }
-
- ad->maininfo.dlopen_iv_handle = dlopen(GL_SO_PATH_IMAGEVIEWER, RTLD_NOW);
- if (ad->maininfo.dlopen_iv_handle == NULL) {
- gl_sdbgE("Lib %s is not opened, %s!", GL_SO_PATH_IMAGEVIEWER,
- dlerror());
- return -1;
- }
- gl_sdbg("dlopen %s done", GL_SO_PATH_IMAGEVIEWER);
- return 0;
-}
-
-int _gl_dlclose_imageviewer(void *data)
-{
- GL_CHECK_VAL(data, -1);
- gl_appdata *ad = (gl_appdata *)data;
-
- if (ad->maininfo.dlopen_iv_handle) {
- dlclose(ad->maininfo.dlopen_iv_handle);
- ad->maininfo.dlopen_iv_handle = NULL;
- gl_sdbg("dlclose %s done", GL_SO_PATH_IMAGEVIEWER);
- return 0;
- }
- return -1;
-}
-
char *_gl_get_edje_path(void)
{
char edj_path[1024] = {0};