4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Yong Yeon Kim <yy9875.kim@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 #ifndef _MEDIA_SERVER_UTILS_H__
24 #define _MEDIA_SERVER_UTILS_H__
27 #include "media-util.h"
28 #include "media-common-types.h"
30 bool ms_is_valid_symlink(const char *path);
31 int ms_verify_all_parent_dirs(const char *full_path, uid_t uid);
32 int ms_check_scan_ignore(char *path, uid_t uid);
33 int ms_set_power_mode(ms_db_status_type_t status);
34 void ms_trim_dir_path(char *dir_path);
38 bool ms_config_get_int(const char *key, int *value);
39 bool ms_config_set_int(const char *key, int value);
40 int ms_set_db_status(ms_db_status_type_t status);
41 int ms_get_remain_space(uint64_t *free_space);
42 int ms_check_size_mediadb(uid_t uid, uint64_t *db_size);
43 bool ms_storage_mount_status(const char *start_path);
44 bool ms_is_support_pvr(void);
45 int ms_set_vip_process(void);
48 #endif/*_MEDIA_SERVER_UTILS_H__*/