resource-manager: Add new getter with user data 87/297587/5
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 21 Aug 2023 09:03:45 +0000 (18:03 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 22 Aug 2023 01:06:53 +0000 (10:06 +0900)
commite45b4c9d5237fe2ca4a58f0a9c10bca253185e6f
treeb502b530b0d7f4ad938fa751da4f44cac33abd87
parent48b58c77b08bec534fe22d4f66992d110aa8e332
resource-manager: Add new getter with user data

Until now, getter function has only passed the data to get the data
without any other arguments. But, it has the constraint which is not
able to pass the user data and then get the data.

So thet add new following getter funciton with passed user data:
- int syscommon_resman_get_resource_attr_uint64_with_1_user_data(
int resource_id, u_int64_t attr_id,
u_int64_t *user_data1,
u_int64_t *data);
  : This function is able to pass the one user data in order to get data
  from resource attirbute.
  : SYSCOMMON_RESMAN_DATA_TYPE_UINT64_WITH_1_USER_DATA data type
  should be used for this new getter function.

- int syscommon_resman_get_resource_attr_uint64_with_2_user_data(
int resource_id, u_int64_t attr_id,
u_int64_t *user_data1, u_int64_t *user_data2,
u_int64_t *data);
  : This function is able to pass the two user data in order to get data
  from resource attirbute.
  : SYSCOMMON_RESMAN_DATA_TYPE_UINT64_WITH_2_USER_DATA data type
  should be used for this new getter function.

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