MS_USER_STORAGE_INTERNAL = 0, /**< The device's internal storage */
MS_USER_STORAGE_EXTERNAL = 1, /**< The device's external storage */
MS_USER_STORAGE_EXTERNAL_USB = 2, /**< The external USB storage (Since 2.4) */
-} ms_user_storage_type_t;
+} ms_user_storage_type_e;
int ms_user_get_internal_root_path(uid_t uid, char **path);
-int ms_user_get_storage_type(uid_t uid, const char *path, ms_user_storage_type_t *storage_type);
+int ms_user_get_storage_type(uid_t uid, const char *path, ms_user_storage_type_e *storage_type);
int ms_user_get_root_thumb_store_path(uid_t uid, char **path);
int ms_user_get_default_thumb_store_path(uid_t uid, char **path);
int ms_user_get_mmc_thumb_store_path(uid_t uid, char **path);
}
close(exist);
- ms_user_storage_type_t storage_type = -1;
+ ms_user_storage_type_e storage_type = -1;
storage_type = ms_user_get_storage_type(uid, path, &storage_type);
if ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL)) {
{
struct stat sb;
DIR *dp = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
int ret = MS_MEDIA_ERR_NONE;
ret = ms_user_get_storage_type(uid, dir_path, &storage_type);
return ret;
}
-int ms_user_get_storage_type(uid_t uid, const char *path, ms_user_storage_type_t *storage_type)
+int ms_user_get_storage_type(uid_t uid, const char *path, ms_user_storage_type_e *storage_type)
{
int ret = MS_MEDIA_ERR_NONE;
char *internal_path = NULL;
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type = -1;
+ ms_user_storage_type_e storage_type = -1;
MS_DBG_FENTER();
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
MS_DBG_FENTER();
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
ret = ms_user_get_storage_type(uid, path, &storage_type);
MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "Fail to get storage type");
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
ret = ms_user_get_storage_type(uid, path, &storage_type);
MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "Fail to get storage type");
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
MS_DBG("ms_insert_storage Start");
int res = MS_MEDIA_ERR_NONE;
int ret = MS_MEDIA_ERR_NONE;
char *err_msg = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
ret = ms_user_get_storage_type(uid, path, &storage_type);
MS_DBG_RETVM_IF(ret != MS_MEDIA_ERR_NONE, ret, "Fail to get storage type");
{
int exist;
struct stat file_st;
- ms_user_storage_type_t storage_type = -1;
+ ms_user_storage_type_e storage_type = -1;
int ret = MS_MEDIA_ERR_NONE;
if (!MS_STRING_VALID(file_path)) {
int ret;
void **handle = NULL;
int scan_type;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
char *storage_id = NULL;
char *update_path = NULL;
unsigned int io_err_count = 0;
int ret;
int err;
void **handle = NULL;
- ms_user_storage_type_t storage_type = MS_STORAGE_INTERNAL;
+ ms_user_storage_type_e storage_type = MS_STORAGE_INTERNAL;
int scan_type;
//bool valid_status = TRUE;
char *update_path = NULL;
int scan_type;
int err = MS_MEDIA_ERR_NONE;
char *start_path = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
err = ms_user_get_storage_type(scan_data->uid, scan_data->msg, &storage_type);
if (err != MS_MEDIA_ERR_NONE)
char *storage_id = NULL;
bool modified = FALSE;
int index = 0;
- ms_user_storage_type_t storage_type = MS_STORAGE_INTERNAL;
+ ms_user_storage_type_e storage_type = MS_STORAGE_INTERNAL;
ms_dir_scan_status_e scan_status = MS_DIR_SCAN_NONE;
ms_noti_type_e noti_type = MS_ITEM_INSERT;
int before_count = 0;
int ret;
int err;
void **handle = NULL;
- ms_user_storage_type_t storage_type = MS_USER_STORAGE_INTERNAL;
+ ms_user_storage_type_e storage_type = MS_USER_STORAGE_INTERNAL;
int scan_type;
bool valid_status = TRUE;
char *update_path = NULL;
int scan_type;
int err = MS_MEDIA_ERR_NONE;
char *start_path = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
err = ms_user_get_storage_type(scan_data->uid, scan_data->msg, &storage_type);
MS_DBG_RETVM_IF(err != MS_MEDIA_ERR_NONE, err, "Fail to get storage type");
char *storage_id = NULL;
bool is_recursive = true;
char *start_path = NULL;
- ms_user_storage_type_t storage_type;
+ ms_user_storage_type_e storage_type;
ms_noti_type_e noti_type = MS_ITEM_INSERT;
int before_count = 0;
int after_count = 0;
int ret;
int err;
void **handle = NULL;
- ms_user_storage_type_t storage_type = MS_USER_STORAGE_INTERNAL;
+ ms_user_storage_type_e storage_type = MS_USER_STORAGE_INTERNAL;
int scan_type;
bool valid_status = TRUE;
char *update_path = NULL;