resource: Add a new property "flag" to attributes 71/280371/4
authorSung-hun Kim <sfoon.kim@samsung.com>
Tue, 23 Aug 2022 11:13:57 +0000 (20:13 +0900)
committerSung-hun Kim <sfoon.kim@samsung.com>
Wed, 31 Aug 2022 08:28:34 +0000 (17:28 +0900)
commitd2f377a50ecaab9ad60b0be0e428711abe318a02
tree1e2fcf34106b13100d60d25a387837cc95f70123
parentf0776917d1f484d19ef5a31b1431613a0a0d6668
resource: Add a new property "flag" to attributes

To distinguish visibility of resource attributes, a new property
is added to each attribute. The visibility of each attribute is
pre-defined. Pass allows or rejects user's request for setting
interested attributes depends on the combination of the
visibility of each resource and the visibility of each attribute.

We used a flag variable for representing the visibility of the
resource attribute. The flag variable can extend to represent
other properties of the resource attribute.

Change-Id: Ie48f00f89ec6095e05e9f8fcf395e1ea0da026bb
Signed-off-by: Sung-hun Kim <sfoon.kim@samsung.com>
12 files changed:
include/util/resource.h
src/resource/resource-battery.c
src/resource/resource-bus.c
src/resource/resource-cpu.c
src/resource/resource-disk.c
src/resource/resource-display.c
src/resource/resource-gpu.c
src/resource/resource-memory.c
src/resource/resource-network.c
src/resource/resource-process-group.c
src/resource/resource-process.c
src/resource/resource-system.c