Move vconf related code to TVPD feature
[platform/core/multimedia/media-server.git] / src / common / include / media-common-utils.h
index a82a5a9..14e0d61 100755 (executable)
 #ifndef _MEDIA_SERVER_UTILS_H__
 #define _MEDIA_SERVER_UTILS_H__
 
+#include <inttypes.h>
+#include "media-util.h"
 #include "media-common-types.h"
 
-int ms_db_init(bool need_db_create);
-bool ms_is_mmc_inserted(void);
-void ms_usb_vconf_cb(void *data);
-int ms_start(bool need_db_create);
-void ms_end(void);
-ms_storage_type_t ms_get_storage_type_by_full(const char *path, uid_t uid);
-int ms_strappend(char *res, const int size, const char *pattern, const char *str1, const char *str2);
-int ms_strcopy(char *res, const int size, const char *pattern, const char *str1);
+bool ms_is_valid_symlink(const char *path);
+int ms_verify_all_parent_dirs(const char *full_path, uid_t uid);
+int ms_check_scan_ignore(char *path, uid_t uid);
+int ms_set_power_mode(ms_db_status_type_t status);
+void ms_trim_dir_path(char *dir_path);
+
+#ifdef _USE_TVPD_MODE
+
 bool ms_config_get_int(const char *key, int *value);
 bool ms_config_set_int(const char *key, int value);
-bool ms_config_get_str(const char *key, char **value);
-bool ms_config_set_str(const char *key, const char *value);
-bool ms_config_get_bool(const char *key, int *value);
-#ifdef FMS_PERF
-void ms_check_start_time(struct timeval *start_time);
-void ms_check_end_time(struct timeval *end_time);
-void ms_check_time_diff(struct timeval *start_time, struct timeval *end_time);
-#endif/*FMS_PERF */
-int ms_get_remain_space(double *free_space);
-
-#ifdef _USE_RECORDED_CONTENT
+int ms_set_db_status(ms_db_status_type_t status);
+int ms_get_remain_space(uint64_t *free_space);
+int ms_check_size_mediadb(uid_t uid, uint64_t *db_size);
+bool ms_storage_mount_status(const char *start_path);
 bool ms_is_support_pvr(void);
-#endif
-
-#ifdef _USE_SENIOR_MODE
-bool ms_is_support_senior_mode(void);
+int ms_set_vip_process(void);
 #endif
 
 #endif/*_MEDIA_SERVER_UTILS_H__*/
-