resource-manager: Introduce attribute listener operations 78/287478/4
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 12 Jan 2023 01:01:22 +0000 (10:01 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 13 Feb 2023 06:40:35 +0000 (15:40 +0900)
commite0026da02c35c8c39111f89b68d4b77836b7b99d
tree63a0dd879ee7c52d8754dbabe49e2a4144c37789
parent77dc6e9f73dffc1638c6d018c16843826cfc961c
resource-manager: Introduce attribute listener operations

Now each attribute can have 'listener_ops' which consists 'init',
'exit', and 'action', to watch changes for underlying state. Each
operation has a role as below:

 - init: allocate resources and register listeners
 - exit: deallocate resources and unregister listeners
 - action: change attribute values as following listener parameters

'init'/'exit' is called automatically when each attribute interest is
set/unset each, on the other hand, 'action' should be called by each
listener.

Change-Id: I076f41f751b18f4c39d7548e4d78ddc02e8e26a2
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
CMakeLists.txt
src/resource-manager/resource-listener.h [new file with mode: 0644]
src/resource-manager/resource-manager.c
src/resource-manager/resource-manager.h