lib: resource-monitor: Change prototype of pass_resource_monitor_get_resource_count 47/279547/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 5 Aug 2022 17:31:24 +0000 (02:31 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Aug 2022 08:54:40 +0000 (17:54 +0900)
commita155d4bce4d1ebc58dc1d287b8f9f87fcfc50c87
treeb2761f53616b123ceceacd0ef0872c99381b0239
parent7332663441031588dbc3cbf6de9d4c75d90f02a5
lib: resource-monitor: Change prototype of pass_resource_monitor_get_resource_count

Almost get_value functions get the value by using l-value parameter.
In order to keep the consistent function prototype stule,
change the prototype of pass_resource_monitor_get_resource_count function
as following:

- before: int pass_resource_monitor_get_resource_count(int id, int resource_type);
- after : int pass_resource_monitor_get_resource_count(int id, int resource_type, int *resource_count);

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