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 4e565af0dc9c896ff86c64b3aa1948130e482c0a..a9fa3aa0550344a105bd55164315bfaf9a74a812 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 0cc7474e89dffd431671481eaac41d52a5e350ab..37a0608b82869d38f3b94f323eccfd9990f014b1 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 06b6fd694f74ab64e13738624200bff3deec8e19..a1005e3ffb382853c3047aa099ba7402cce876d6 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;