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_media_db_path(uid_t uid, char **path);
+int ms_user_get_wordbook_db_path(uid_t uid, char **path);
#ifndef _USE_TVPD_MODE
int ms_user_get_mediashared_path(uid_t uid, char **path);
MEDIA_DB = 0,
INTERNAL_ROOT,
THUMB_ROOT,
+ WORDBOOK_DB,
MEDIA_SHARED
} ms_user_path_type_e;
case THUMB_ROOT:
result = tzplatform_context_mkpath(context[idx], TZ_USER_SHARE, "media/.thumb");
break;
+ case WORDBOOK_DB:
+ result = tzplatform_context_mkpath(context[idx], TZ_USER_SHARE, "media/.ebook/.wordbook.db");
+ break;
#ifndef _USE_TVPD_MODE
case MEDIA_SHARED:
result = tzplatform_context_getenv(context[idx], TZ_USER_MEDIASHARED);
return ret;
}
+int ms_user_get_wordbook_db_path(uid_t uid, char **path)
+{
+ int ret = MS_MEDIA_ERR_NONE;
+
+ if (uid == getuid())
+ *path = g_strdup(tzplatform_mkpath(TZ_USER_SHARE, "media/.ebook/.wordbook.db"));
+ else
+ ret = __ms_user_get_path(WORDBOOK_DB, uid, path);
+
+ //MSAPI_DBG_SLOG("DB path [%s]", *path);
+
+ return ret;
+}
+
#ifndef _USE_TVPD_MODE
int ms_user_get_mediashared_path(uid_t uid, char **path)
{