typedef int (*CHANGE_VALIDITY_ITEM_BATCH)(void *, const char *, const char *, int, int, uid_t, char **);
//typedef int (*GET_SCAN_DONE_ITEMS)(void *, const char *, const char *, int, int *, char **);
-typedef int (*CHECK_DB)(void*, bool*, uid_t, char **);
+typedef int (*CHECK_DB)(void*, uid_t, char **);
typedef int (*GET_UUID)(void *, char **, char **);
typedef int (*GET_MMC_INFO)(void *, char **, char **, int *, bool *, char **);
typedef int (*CHECK_STORAGE)(void *, const char *, const char *, char **, int *, char **);
int ms_change_validity_item_batch(void **handle, const char *storage_id, const char *path, int des_validity, int src_validity, uid_t uid);
//int ms_get_scan_done_items(void **handle, const char *storage_id, const char *path, int validity, int *count);
-int ms_check_db_upgrade(void **handle, bool *need_full_scan, uid_t uid);
+int ms_check_db_upgrade(void **handle, uid_t uid);
int ms_genarate_uuid(void **handle, char **uuid);
int ms_get_mmc_info(void **handle, char **storage_name, char **storage_path, int *validity, bool *info_exist);
int ms_check_storage(void **handle, const char *storage_id, const char *storage_name, char **storage_path, int *validity);
return res;
}
-int ms_check_db_upgrade(void **handle, bool *need_full_scan, uid_t uid)
+int ms_check_db_upgrade(void **handle, uid_t uid)
{
int lib_index = 0;
int res = MS_MEDIA_ERR_NONE;
int ret;
- bool full_scan = false;
char *err_msg = NULL;
MS_DBG_FENTER();
for (lib_index = 0; lib_index < lib_num; lib_index++) {
- ret = ((CHECK_DB)func_array[lib_index][eCHECK_DB])(handle[lib_index], &full_scan, uid, &err_msg);
+ ret = ((CHECK_DB)func_array[lib_index][eCHECK_DB])(handle[lib_index], uid, &err_msg);
if (ret != 0) {
MS_DBG_ERR("error : %s [%s]", g_array_index(so_array, char*, lib_index), err_msg);
MS_SAFE_FREE(err_msg);
res = MS_MEDIA_ERR_DB_UPDATE_FAIL;
}
}
- *need_full_scan = full_scan;
MS_DBG_FLEAVE();
return res;
int (*svc_connect) (void ** handle, uid_t uid, char ** err_msg);
int (*svc_disconnect) (void * handle, char ** err_msg);
-int (*svc_check_db) (void * handle, bool *, uid_t uid, char ** err_msg);
+int (*svc_check_db) (void * handle, uid_t uid, char ** err_msg);
int (*svc_get_storage_id) (void * handle, const char *path, char *storage_id, uid_t uid, char ** err_msg);
void callback(media_request_result_s * result, void *user_data)
void *db_handle = NULL;
char *err_msg = NULL;
int ret = 0;
- bool fscan = false;
funcHandle = dlopen("/usr/lib/libmedia-content-plugin.so", RTLD_LAZY);
if (funcHandle == NULL) {
if (ret < 0)
printf("Error svc_connect\n");
- ret = svc_check_db(db_handle, &fscan, tzplatform_getuid(TZ_USER_NAME), &err_msg);
+ ret = svc_check_db(db_handle, tzplatform_getuid(TZ_USER_NAME), &err_msg);
if (ret < 0)
printf("Error svc_check_db\n");
char *storage_path = NULL;
void **handle = NULL;
int validity = 0;
- bool scan = false;
uid_t uid;
ms_dir_scan_type_t scan_type = MS_SCAN_ALL;
if (mount_path != NULL && mount_uuid != NULL) {
/*CHECK DB HERE */
- ret = ms_check_db_upgrade(handle, &scan, uid);
+ ret = ms_check_db_upgrade(handle, uid);
if (ret != MS_MEDIA_ERR_NONE) {
MS_DBG_ERR("ms_check_db_upgrade failed");
goto ERROR;
bool info_exist = FALSE;
char *cid = NULL;
uid_t uid;
- bool scan = false;
void **db_handle = NULL;
ms_get_mmc_id(&cid);
/* CHECK DB HERE!! */
- ret = ms_check_db_upgrade(db_handle, &scan, uid);
+ ret = ms_check_db_upgrade(db_handle, uid);
if (ret != MS_MEDIA_ERR_NONE) {
MS_DBG_ERR("ms_check_db_upgrade failed [%d]", ret);
ms_disconnect_db(&db_handle);