core: Introduce resource-manager 33/296533/2
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 31 Jul 2023 07:06:08 +0000 (16:06 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 1 Aug 2023 08:40:01 +0000 (17:40 +0900)
commit209e8d258f786e630672fb9b186b0420a94e32a6
treec904dcb56aba3e2ad5d1ca27722918f4b4985470
parentd155cf61cffe9bdea8fb47a1e3c1af65b710522a
core: Introduce resource-manager

The deviced core init/exit resource drivers. The helper functions have
been added for this job.
 - resource_init()
 - resource_exit()

Currently, there can be only a single resource instance by a resource
type. Therefore, the deviced manages resource ids of instances within
an array that each index contains a single integer of resource id.

Change-Id: I8818c64f9bfa70a9751a213330e36c5744a55daa
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
CMakeLists.txt
packaging/deviced.spec
src/core/main.c
src/core/resource.c [new file with mode: 0644]
src/core/resource.h [new file with mode: 0644]