int ms_insert_storage(sqlite3 *handle, const char *storage_id, const char *storage_path, uid_t uid);
int ms_update_storage(sqlite3 *handle, const char *storage_id, const char *storage_path, uid_t uid);
int ms_set_storage_validity(const char *storage_id, int validity, uid_t uid);
-int ms_set_all_storage_validity(int validity, uid_t uid);
+int ms_reset_all_storage_validity(uid_t uid);
int ms_check_folder_exist(sqlite3 *handle, const char *folder_path);
int ms_get_folder_id(sqlite3 *handle, const char *storage_id, const char *path, char **folder_id);
void ms_register_start(bool noti_status, int pid);
typedef int (*INSERT_STORAGE)(sqlite3 *, const char *, const char *, uid_t);
typedef int (*UPDATE_STORAGE)(sqlite3 *, const char *, const char *, uid_t);
typedef int (*SET_STORAGE_VALIDITY)(const char *, int, uid_t uid);
-typedef int (*SET_ALL_STORAGE_VALIDITY)(int, uid_t);
+typedef int (*RESET_ALL_STORAGE_VALIDITY)(uid_t);
typedef int (*CHECK_FOLDER_EXIST)(sqlite3 *, const char *);
typedef int (*REFRESH_ITEM)(sqlite3 *, const char *, uid_t);
eINSERT_STORAGE,
eUPDATE_STORAGE,
eSET_STORAGE_VALIDITY,
- eSET_ALL_STORAGE_VALIDITY,
+ eRESET_ALL_STORAGE_VALIDITY,
eCHECK_FOLDER_EXIST,
eREFRESH_ITEM,
#ifdef _USE_TVPD_MODE
"insert_storage",
"update_storage",
"set_storage_validity",
- "set_all_storage_validity",
+ "reset_all_storage_validity",
"check_folder_exist",
"refresh_item",
#ifdef _USE_TVPD_MODE
return ret;
}
-int ms_set_all_storage_validity(int validity, uid_t uid)
+int ms_reset_all_storage_validity(uid_t uid)
{
int ret = MS_MEDIA_ERR_NONE;
- ret = ((SET_ALL_STORAGE_VALIDITY)func_array[eSET_ALL_STORAGE_VALIDITY])(validity, uid);
- MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "SET_ALL_STORAGE_VALIDITY failed [%d]", ret);
+ ret = ((RESET_ALL_STORAGE_VALIDITY)func_array[eRESET_ALL_STORAGE_VALIDITY])(uid);
+ MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "RESET_ALL_STORAGE_VALIDITY failed [%d]", ret);
return ret;
}
ms_set_storage_validity(mount_uuid, 0, uid);
ms_send_storage_scan_request(mount_path, mount_uuid, MS_SCAN_INVALID, uid);
} else if (mount_path && g_strcmp0(mount_path, STORAGE_REMOVED) == 0) {
- ms_set_all_storage_validity(0, uid);
+ ms_reset_all_storage_validity(uid);
}
}
MS_DBG_ERR("ms_set_storage_scan_status fail");
/*update just valid type*/
- if (ms_set_all_storage_validity(0, uid) != MS_MEDIA_ERR_NONE)
- MS_DBG_ERR("ms_set_all_storage_validity fail");
+ if (ms_reset_all_storage_validity(uid) != MS_MEDIA_ERR_NONE)
+ MS_DBG_ERR("ms_reset_all_storage_validity fail");
#ifdef _USE_ON_DEMAND
ms_on_demand_reset_storage();