resource: Use getter/setter of struct resource for encapsulation 47/277447/4
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Jul 2022 21:15:56 +0000 (06:15 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 8 Jul 2022 09:03:24 +0000 (18:03 +0900)
commita502594b7f7e2911ddfdd42d55e35c58017d006a
treec7f289440f376e37618bd6bbf875b45e76973839
parent196216a31323cc759b10896608575a230d6a8a5c
resource: Use getter/setter of struct resource for encapsulation

Prevent the direct access of the fields of struct resource
by using getter/setter functiosn of struct resource.

By this change, keep the encapsulation of struct resource
and only communicate via getter/setter functions.

Change-Id: I4c7b92b79197ef67688773a5ef6b7db5e044bc09
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/monitor/request-handler.c
src/resource/resource-bus.c
src/resource/resource-cpu.c
src/resource/resource-display.c
src/resource/resource-gpu.c
src/resource/resource-process-group.c
src/resource/resource-process.c
src/resource/resource-system.c