Move vconf related code to TVPD feature
[platform/core/multimedia/media-server.git] / src / common / include / media-common-utils.h
index bfc07df..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_strappend(char *res, const int size, const char *pattern, const char *str1, const char *str2);
+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);
-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);
-#endif
-
-int ms_check_file_path(const char *file_path, uid_t uid);
-int ms_check_ignore_dir(const char *full_path, uid_t uid);
-int ms_check_scan_ignore(char * path, uid_t uid);
-bool ms_storage_mount_status(const char* start_path);
-int ms_set_db_status(ms_db_status_type_t status, ms_user_storage_type_e storage_type);
-int ms_set_power_mode(ms_db_status_type_t status);
-void ms_trim_dir_path(char *dir_path);
-int ms_check_size_mediadb(uid_t uid, double *db_size);
-#ifdef _SET_VIP_PROCESS
 int ms_set_vip_process(void);
 #endif
 
 #endif/*_MEDIA_SERVER_UTILS_H__*/
-