%restore_fcommon
%endif
%if 0%{?product_tv}
-export CFLAGS="$CFLAGS -D_USE_RECORDED_CONTENT -D_USE_SUSPEND_MODE -D_SET_VIP_PROCESS -D_USE_TVPD_MODE"
+export CFLAGS="$CFLAGS -D_USE_TVPD_MODE"
%else
export CFLAGS="$CFLAGS -D_USE_MULTI_USER -D_USE_META_UPDATE -D_USE_DEVICED_DBUS"
%endif
bool ms_config_get_str(const char *key, char **value);
int ms_get_remain_space(double *free_space);
-#ifdef _USE_RECORDED_CONTENT
-bool ms_is_support_pvr(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);
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
+#ifdef _USE_TVPD_MODE
+bool ms_is_support_pvr(void);
int ms_set_vip_process(void);
#endif
#include <sys/statvfs.h>
#include <sys/stat.h>
-#ifdef _SET_VIP_PROCESS
+#ifdef _USE_TVPD_MODE
#include <sys/prctl.h>
#endif
#include <system_info.h>
return MS_MEDIA_ERR_NONE;
}
-#ifdef _USE_RECORDED_CONTENT
+#ifdef _USE_TVPD_MODE
bool ms_is_support_pvr(void)
{
bool bSupportPVR = false;
return ret;
}
-#ifdef _SET_VIP_PROCESS
+#ifdef _USE_TVPD_MODE
#define PROC_OOM_SCORE_ADJ_PATH "/proc/%d/oom_score_adj"
#define VIP_OOM_SCORE_ADJ (-1000)
#define PROC_NAME_MAX 1024
static void __msc_check_pvr_svc(void)
{
-#ifdef _USE_RECORDED_CONTENT
+#ifdef _USE_TVPD_MODE
if (ms_is_support_pvr()) {
MS_DBG_ERR("Waiting PVR service");
while (!power_off2) {
msc_send_ready();
MS_DBG_INFO("Scanner-V2 is running");
-#ifdef _SET_VIP_PROCESS
+#ifdef _USE_TVPD_MODE
/*Set VIP Process*/
ms_set_vip_process();
#endif
#ifdef _USE_TVPD_MODE
if (!ms_config_set_int(MS_SERVER_STATUS, 1))
MS_DBG_ERR("Fail to change sever status");
-#endif
-#ifdef _SET_VIP_PROCESS
+
/*Set VIP Process*/
ms_set_vip_process();
#endif