resource-monitor: Apply system resource manager library 95/285195/1 accepted/tizen/7.0/unified/20221209.015654
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 20 Oct 2022 07:32:07 +0000 (16:32 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 7 Dec 2022 08:26:09 +0000 (17:26 +0900)
Change-Id: I6e3cf9cd983d7c804898e37343be1255a95094a4
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
CMakeLists.txt
packaging/capi-system-resource-monitor.spec
src/resource-monitor.c

index 4e565af..a9fa3aa 100644 (file)
@@ -14,6 +14,7 @@ SET(PKG_MODULES
        capi-base-common
        capi-system-info
        libpass-resource-monitor
+       libsyscommon
 )
 SET(pc_dependents "capi-base-common libpass-resource-monitor")
 
index 0cc7474..37a0608 100644 (file)
@@ -11,6 +11,7 @@ BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(capi-base-common)
 BuildRequires:  pkgconfig(capi-system-info)
 BuildRequires:  pkgconfig(libpass-resource-monitor)
+BuildRequires:  pkgconfig(libsyscommon)
 
 %description
 A Resource Monitor library in Tizen Native API
index 06b6fd6..a1005e3 100644 (file)
@@ -18,6 +18,7 @@
 #include "resource-monitor.h"
 
 #include <pass/resource-monitor.h>
+#include <libsyscommon/resource-type.h>
 
 #ifdef LOG_TAG
 #undef LOG_TAG
@@ -56,7 +57,7 @@ int resource_monitor_create_resource(int monitor_id, resource_monitor_type_e res
                        return resource_id;
        }
 
-       ret = pass_resource_monitor_set_resource_flag(monitor_id, resource_id, RESOURCE_FLAG_PUBLIC);
+       ret = pass_resource_monitor_set_resource_flag(monitor_id, resource_id, SYSCOMMON_RESMAN_RESOURCE_FLAG_PUBLIC);
        if (ret < 0)
                return ret;
        return resource_id;