util: resource: Check data type is integer or not when getting value 17/270517/1
authorChanwoo Choi <cw00.choi@samsung.com>
Fri, 4 Feb 2022 03:28:08 +0000 (12:28 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 4 Feb 2022 03:31:29 +0000 (12:31 +0900)
commit412f5a5dcc85537d663de0728bb0deecb7229d27
tree356832e5aaeb305d900b4f84166aa7a0db45d737
parent5e20233848f9c166d5c3d0be940c5d86f6094e46
util: resource: Check data type is integer or not when getting value

Each resource_attribute has the only one data type like integer, string
and so on. When using the getter function for specific data type such as
get_resource_attr_integer(), must need to check the data type of
resource attribute.

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