4d4835e3ac76fce7ba40c17a2908ec3d499ebdf7
[platform/core/multimedia/media-server.git] / lib / include / media-util-user.h
1 /*
2  * Media Utility
3  *
4  * Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved.
5  *
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
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  */
19
20 #ifndef _MEDIA_UTIL_USER_H_
21 #define _MEDIA_UTIL_USER_H_
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef enum {
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;
32
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);
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif /*_MEDIA_UTIL_USER_H_*/