resource-manager: Add API for fine-tuned event listening
The syscommon_resman_subscribe_resource_event() has been split into
3 variants, each of which can narrow down the range of events that
we want to listen to.
- syscommon_resman_subscribe_event(...)
: It is identical to the existing one. Listen any events from any
type of resources.
- syscommon_resman_subscribe_resource_event(resource_type, ...)
: Listen any changes of attribute from specific type of resources.
- syscommon_resman_subscribe_resource_attribute_event(resource_type,
attr_mask, ...)
: Listen change of specific attributes from specific type of resources.
In addition, the event callback has been changed to receive an additional
parameter, void *user_data.
Change-Id: I41876fa746d1d042bc1595db55d29e3b8ff13e86
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>