util: resource: Add get_resource_attr_name and get_resource_controL_name function 12/278312/5
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 19 Jul 2022 03:27:22 +0000 (12:27 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Jul 2022 09:54:54 +0000 (18:54 +0900)
commit51e9db0bcf2b7c81305bd22702868769d30e0240
treed566d55391c80bceedb60417f92fad32562cde82
parent8dadde95406c67ccbe49cfe321bc95879a0b5239
util: resource: Add get_resource_attr_name and get_resource_controL_name function

Add get_resource_attr_name and get_resource_controL_name function
to get the attribute name and control name.

Function prototype as following:
- const char *get_resource_attr_name(struct resource *resource, u_int64_t attr_id)
- const char *get_resource_control_name(struct resource *resource, u_int64_t ctrl_id)

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