resource-monitor: Change prototype of resource_monitor_get_resource_count 23/279423/3
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 9 Aug 2022 04:17:04 +0000 (13:17 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 11 Aug 2022 09:47:09 +0000 (18:47 +0900)
Change prototype of resource_monitor_get_resource_count
because pass_resource_monitor_get_resource_count's prototype is changed.

Change-Id: Ibb474da55be846e20001929f760602ee91ce3673
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
include/resource-monitor.h
src/resouce-monitor.c

index 441025033d40b1aa829af2398a48e983c4b3c617..dc0ff2828472445e0ae7825d28aaa78573849d00 100644 (file)
@@ -206,9 +206,10 @@ int resource_monitor_exit(int id);
  * @brief Get the count of supported resources according to resource type
  * @param[in] Resource monitor id
  * @param[in] Resource type
- * @return @c positive integer as resource count on success, otherwise a negative error value
+ * @param[out] Resource count retrived from resource monitor
+ * @return @c 0 on success, otherwise a negative error value
  */
-int resource_monitor_get_resource_count(int id, int resource_type);
+int resource_monitor_get_resource_count(int id, int resource_type, int *resource_count);
 
 /**
  * @brief Create resource for given resource_type
index 1838358b9e45448c316a4b4f98813e458beb18b1..043e3e526a4bf1f333492f144153784a0dfd1f60 100644 (file)
@@ -32,9 +32,9 @@ int resource_monitor_exit(int id)
        return pass_resource_monitor_exit(id);
 }
 
-int resource_monitor_get_resource_count(int id, int resource_type)
+int resource_monitor_get_resource_count(int id, int resource_type, int *resource_count)
 {
-       return pass_resource_monitor_get_resource_count(id, resource_type);
+       return pass_resource_monitor_get_resource_count(id, resource_type, resource_count);
 }
 
 int resource_monitor_create_resource(int id, int resource_type)