Type mismatch issue fix. Use ms_user_storage_type_e instead of ms_storage_type_t
[platform/core/multimedia/media-server.git] / src / common / include / media-common-utils.h
1 /*
2  * Media Server
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Yong Yeon Kim <yy9875.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  */
21
22
23 #ifndef _MEDIA_SERVER_UTILS_H__
24 #define _MEDIA_SERVER_UTILS_H__
25
26 #include "media-util.h"
27 #include "media-common-types.h"
28
29 int ms_strappend(char *res, const int size, const char *pattern, const char *str1, const char *str2);
30 bool ms_config_get_int(const char *key, int *value);
31 bool ms_config_set_int(const char *key, int value);
32 bool ms_config_get_str(const char *key, char **value);
33 int ms_get_remain_space(double *free_space);
34
35 #ifdef _USE_RECORDED_CONTENT
36 bool ms_is_support_pvr(void);
37 #endif
38
39 #ifdef _USE_SENIOR_MODE
40 bool ms_is_support_senior_mode(void);
41 #endif
42
43 int ms_check_file_path(const char *file_path, uid_t uid);
44 int ms_check_ignore_dir(const char *full_path, uid_t uid);
45 int ms_check_scan_ignore(char * path);
46 bool ms_storage_mount_status(const char* start_path);
47 int ms_set_db_status(ms_db_status_type_t status, ms_user_storage_type_e storage_type);
48 int ms_set_power_mode(ms_db_status_type_t status);
49 void ms_trim_dir_path(char *dir_path);
50 int ms_check_size_mediadb(uid_t uid, double *db_size);
51 #ifdef _SET_VIP_PROCESS
52 int ms_set_vip_process(void);
53 #endif
54
55 #endif/*_MEDIA_SERVER_UTILS_H__*/
56