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 * This file defines api utilities of contents manager engines.
25 * @file media-server-utils.h
26 * @author Yong Yeon Kim(yy9875.kim@samsung.com)
31 #ifndef _MEDIA_SCANNER_UTILS_H__
32 #define _MEDIA_SCANNER_UTILS_H__
34 #include "media-server-types.h"
37 msc_is_mmc_inserted(void);
40 msc_update_mmc_info(void);
43 msc_mmc_vconf_cb(void *data);
46 msc_get_full_path_from_node(ms_dir_scan_info * const node, char *ret_path, int depth);
49 msc_get_storage_type_by_full(const char *path);
52 msc_strappend(char *res, const int size, const char *pattern,
53 const char *str1, const char *str2);
56 msc_strcopy(char *res, const int size, const char *pattern,
60 msc_config_get_int(const char *key, int *value);
63 msc_config_set_int(const char *key, int value);
66 msc_config_get_str(const char *key, char *value);
69 msc_config_set_str(const char *key, const char *value);
73 msc_check_start_time(struct timeval *start_time);
76 msc_check_end_time(struct timeval *end_time);
79 msc_check_time_diff(struct timeval *start_time, struct timeval *end_time);
85 #endif/*_MEDIA_SCANNER_UTILS_H__*/