Removed image-viewer SO loading 97/74397/1
authorChandan <ch.kumar@samsung.com>
Tue, 14 Jun 2016 06:53:55 +0000 (12:23 +0530)
committerChandan <ch.kumar@samsung.com>
Tue, 14 Jun 2016 06:53:55 +0000 (12:23 +0530)
Change-Id: I9a99e4e33eaed08fc953a81e93d643221a9bb223
Signed-off-by: Chandan <ch.kumar@samsung.com>
inc/gallery.h
inc/util/gl-util.h
src/features/gl-main.c
src/gallery.c
src/util/gl-util.c

index 9e3da1b..fc08f6c 100644 (file)
@@ -476,7 +476,6 @@ typedef struct
        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;
index 3980b94..c64b010 100755 (executable)
@@ -255,8 +255,6 @@ int _gl_get_album_images_path(void *data, char **files, bool b_hide);
 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);
index 3137307..1b3b9f7 100644 (file)
@@ -209,9 +209,6 @@ static Eina_Bool __gl_main_reg_idler_cb(void *data)
        /* 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;
index 8b7017c..9e19640 100644 (file)
@@ -121,8 +121,6 @@ static int _gallery_close_app(void *data)
        /* 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 */
index 58e8d75..07752c2 100644 (file)
@@ -2478,40 +2478,6 @@ int _gl_free_selected_list(void *data)
        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};