lib: resource-monitor: Change pass_resourced_monitor_is_resource_attr_supported prototype 11/280011/2 accepted/tizen/unified/20220823.005726 submit/tizen/20220822.094833 submit/tizen/20220822.102536
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Aug 2022 07:59:08 +0000 (16:59 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Aug 2022 08:35:34 +0000 (17:35 +0900)
commit5f56fe2eddb0625b622ee6ba4cd1b96ae183c211
treef1247609a29552e2d159aa6eb0a3d6aa8eb95762
parent476a97b39e0a3f30e9ef52a0b01c87d55d1ed077
lib: resource-monitor: Change pass_resourced_monitor_is_resource_attr_supported prototype

Change pass_resourced_monitor_is_resource_attr_supported prototype
to express the various error case and then get the value from l-value
style parameter.

[Before]
bool pass_resource_monitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id);

[After]
int pass_resource_monitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id, bool *supported);

Change-Id: If4943e034db0a180807a85700ac2db7c87ecef5a
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/util/resource.h
lib/resource-monitor/resource-monitor.c
lib/resource-monitor/resource-monitor.h
src/monitor/request-handler.c
src/util/resource.c
tests/integration-test/resource-monitor-tests.cpp
tools/resource-monitor/resource-monitor.c