Remove un-called dlopen function 06/130606/1
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 23 May 2017 05:58:57 +0000 (14:58 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Tue, 23 May 2017 05:58:57 +0000 (14:58 +0900)
Change-Id: Ib4a389147b68121416a8645fa0203026e35c8c21
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
plugin/media-content-plugin.c

index 7ce8e5b..0040b13 100755 (executable)
@@ -211,34 +211,6 @@ int insert_item(void *handle, const char *storage_id, const char *file_path, int
        return MEDIA_SVC_PLUGIN_ERROR_NONE;
 }
 
-int insert_item_immediately(void *handle, const char *storage_id, const char *file_path, int storage_type, uid_t uid, char **err_msg)
-{
-       int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
-
-       if (handle == NULL) {
-               __set_error_message(ERR_HANDLE, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       if (!STRING_VALID(file_path)) {
-               __set_error_message(ERR_FILE_PATH, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       if (!STORAGE_VALID(storage_type)) {
-               __set_error_message(ERR_STORAGE_TYPE, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       ret = media_svc_insert_item_immediately(handle, storage_id, storage_type, file_path, uid);
-       if (ret < 0) {
-               __set_error_message(ret, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       return MEDIA_SVC_PLUGIN_ERROR_NONE;
-}
-
 int insert_burst_item(void *handle, const char *storage_id, const char *file_path, int storage_type, uid_t uid, char **err_msg)
 {
        int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
@@ -446,17 +418,6 @@ int delete_all_invalid_items_in_folder(void *handle, const char *storage_id, con
        return MEDIA_SVC_PLUGIN_ERROR_NONE;
 }
 
-
-int update_begin(void)
-{
-       return MEDIA_SVC_PLUGIN_ERROR_NONE;
-}
-
-int update_end(void)
-{
-       return MEDIA_SVC_PLUGIN_ERROR_NONE;
-}
-
 int send_dir_update_noti(void *handle, const char *storage_id, const char *dir_path, const char *folder_id, int update_type, int pid, char **err_msg)
 {
        int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
@@ -750,27 +711,6 @@ int get_storage_id(void * handle, const char *path, char *storage_id, uid_t uid,
        return MEDIA_SVC_PLUGIN_ERROR_NONE;
 }
 
-int get_storage_scan_status(void * handle, const char *storage_id, int *status, char **err_msg)
-{
-       int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
-       media_svc_scan_status_type_e storage_status = 0;
-
-       if (handle == NULL) {
-               __set_error_message(ERR_HANDLE, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       ret = media_svc_get_storage_scan_status(handle, storage_id, &storage_status);
-       if (ret < 0) {
-               __set_error_message(ret, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       *status = storage_status;
-
-       return MEDIA_SVC_PLUGIN_ERROR_NONE;
-}
-
 int set_storage_scan_status(void *handle, const char *storage_id, int status, uid_t uid, char **err_msg)
 {
        int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
@@ -890,29 +830,6 @@ int insert_item_scan(void * handle, const char *storage_id, const char *file_pat
        return MEDIA_SVC_PLUGIN_ERROR_NONE;
 }
 
-int update_item_extract(void * handle, const char *storage_id, int storage_type, int scan_type, uid_t uid, const char *path, int burst, char **err_msg)
-{
-       int ret = MEDIA_SVC_PLUGIN_ERROR_NONE;
-
-       if (handle == NULL) {
-               __set_error_message(ERR_HANDLE, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       if (!STORAGE_VALID(storage_type)) {
-               __set_error_message(ERR_STORAGE_TYPE, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       ret = media_svc_insert_item_pass2(handle, storage_id, storage_type, scan_type, path, burst, uid);
-       if (ret < 0) {
-               __set_error_message(ret, err_msg);
-               return MEDIA_SVC_PLUGIN_ERROR;
-       }
-
-       return MEDIA_SVC_PLUGIN_ERROR_NONE;
-}
-
 int get_extract_list(void* handle, const char* storage_id, int storage_type, int scan_type, const char* path, int burst, uid_t uid, void* array, char** err_msg)
 {
 #if 0