#ifdef _USE_TVPD_MODE
#include <sys/prctl.h>
+#include <usb-device.h>
#endif
#include <system_info.h>
#include <device/power.h>
-#ifndef _USE_DEVICED_DBUS
-#include <usb-device.h>
-#endif
-
#include "media-util.h"
#include "media-server-ipc.h"
#include "media-common-dbg.h"
return false;
}
-bool ms_config_get_str(const char *key, char **value)
-{
- char *res = NULL;
-
- if (key == NULL || value == NULL) {
- MS_DBG_ERR("Arguments key or value is NULL");
- return false;
- }
-
- res = vconf_get_str(key);
- if (MS_STRING_VALID(res)) {
- *value = g_strdup(res);
- MS_SAFE_FREE(res);
- return true;
- }
-
- return false;
-}
-
int ms_get_remain_space(uint64_t *free_space)
{
int ret = MS_MEDIA_ERR_NONE;
return ret;
}
-#ifndef _USE_DEVICED_DBUS
-
+#ifdef _USE_TVPD_MODE
typedef struct storage_result {
char *storage_path;
bool result;
bool ms_storage_mount_status(const char *start_path)
{
bool ret = false;
-#ifndef _USE_DEVICED_DBUS
+#ifdef _USE_TVPD_MODE
storage_result_s res = {0, };
char *remain_path = NULL;
int remain_len = 0;