resource-manager: Introduce attribute listener operations 19/288219/1
authorDongwoo Lee <dwoo08.lee@samsung.com>
Thu, 12 Jan 2023 01:01:22 +0000 (10:01 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 14 Feb 2023 02:41:12 +0000 (11:41 +0900)
commit35c859849daa2df0cb49d8664ecaf19a0ad79a19
tree8847bfe9299ae596531b13ba6e7b7257c9906593
parent806753808aa96580f7b0062fb18162b0d5025617
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: Ia2ae47ee1f7bfb42baed4ab6ddb8be545d42cee1
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