resource-manager: Add N-tuple setter to pass multiple parameter 28/296628/6 accepted/tizen/unified/20230803.174812 accepted/tizen/unified/20230809.071927
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 2 Aug 2023 08:26:17 +0000 (17:26 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 3 Aug 2023 01:12:05 +0000 (10:12 +0900)
commit14d78d66a5e28d28d1978e0fddd46894fd3c6160
treeb66661cbe70d008ba54915f431b4d1f0cda3621a
parent159352956d488574e4ae6b8212139d09276ad583
resource-manager: Add N-tuple setter to pass multiple parameter

Add N-tuple setter function of resource manager to support the case
of when some attribute requires the multi paramters as setter.

[Newly added setter of resource-manager]
- int syscommon_resman_set_resource_attr_uint64_2(
int resource_id, u_int64_t attr_id,
u_int64_t data1, u_int64_t data2)
 : It pass the two parameter to the specific attribute which requires
   the two parameter as setter.

- int syscommon_resman_set_resource_attr_uint64_3(
int resource_id, u_int64_t attr_id,
u_int64_t data1, u_int64_t data2, u_int64_t data3)
 : It pass the three parameter to the specific attribute which requires
   the three parameter as setter.

- int syscommon_resman_set_resource_attr_uint64_4(
int resource_id, u_int64_t attr_id,
u_int64_t data1, u_int64_t data2, u_int64_t data3, u_int64_t data4)
 : It pass the four parameter to the specific attribute which requires
   the four parameter as setter.

[Newly added data type of resource manager]
- SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64
 : This data type include the two of u_int64 data type
- SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64_UINT64
 : This data type include the three of u_int64 data type
- SYSCOMMON_RESMAN_DATA_TYPE_UINT64_UINT64_UINT64_UINT64
 : This data type include the four of u_int64 data type

Change-Id: I8c659e5a9f5447e7aecb17c71005e5fa939960e8
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
include/libsyscommon/resource-manager.h
include/libsyscommon/resource-type.h
src/resource-manager/resource-manager.c