4 * Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef _MEDIA_UTIL_USER_H_
21 #define _MEDIA_UTIL_USER_H_
28 MS_USER_STORAGE_INTERNAL = 0, /**< The device's internal storage */
29 MS_USER_STORAGE_EXTERNAL = 1, /**< The device's external storage */
30 MS_USER_STORAGE_EXTERNAL_USB = 2, /**< The external USB storage (Since 2.4) */
31 } ms_user_storage_type_e;
33 int ms_user_get_internal_root_path(uid_t uid, char **path);
34 int ms_user_get_storage_type(uid_t uid, const char *path, ms_user_storage_type_e *storage_type);
35 int ms_user_get_root_thumb_store_path(uid_t uid, char **path);
36 int ms_user_get_default_thumb_store_path(uid_t uid, char **path);
37 int ms_user_get_mmc_thumb_store_path(uid_t uid, char **path);
38 int ms_user_get_media_db_path(uid_t uid, char **path);
44 #endif /*_MEDIA_UTIL_USER_H_*/