pass: rescon: Encapsulate struct pass_rescon to prevent direct access 01/283601/2
authorChanwoo Choi <cw00.choi@samsung.com>
Sun, 4 Sep 2022 17:03:22 +0000 (02:03 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 13 Dec 2022 02:41:33 +0000 (11:41 +0900)
commite1c72bb937a70d512f89e962ddc2a08dce444d7f
tree122ff4b452ede5a6b787cbe97a1c633dc3a80ae7
parentf823d14b83131cdb6dad145a17825d250c6f108c
pass: rescon: Encapsulate struct pass_rescon to prevent direct access

Any modules are able to access the internal fields of struct pass_rescon
directly. It might make the problem on later and the current method
is not proper. So that move the defintion of struct pass_rescon
into src/pass/pass-rescon.c to prevent the direct access.
Instead, provide the getter/setter function for fields of struct pass_rescon.

Change-Id: I801452d0b8ae98146a74f2ebd1926f6cc4c8c47a
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
12 files changed:
include/util/common.h
src/pass/pass-cpuhp-radiation.c
src/pass/pass-cpuhp-step.c
src/pass/pass-cpuhp.c
src/pass/pass-parser.c
src/pass/pass-rescon.c
src/pass/pass-rescon.h
src/pass/pass.c
src/pass/pass.h
tests/haltest/CMakeLists.txt
tests/integration-test/CMakeLists.txt
tests/unittest/CMakeLists.txt