resource-manager: operate based on resource id
All operations provided by resource-manager now work based on resource
"id" instead of resource "instance" itself. All resource "instances" are
managed within libsyscommon and it only exposes their id.
The resource-manager source code has been implemented based on the
coding rule below.
- An actual operating function has no prefix syscommon_resman_. It has
internal linkage and takes actual resource instance as a parameter.
e.g., get_resource_attr(struct syscommon_resman_resource *resource, ...)
- A function exposed through header is prefixed with syscommon_resman_
and it takes resource id as a parameter. It locates resource instance
using resource id and invokes matching function.
e.g., syscommon_resman_get_resource_attr(int resource_id, ...)
Change-Id: If82c58593b363433188bf01809dc57a242ede24f
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>