conf: Extract functions to reduce duplicate code 46/295746/7
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 12 Jul 2023 00:34:38 +0000 (09:34 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Mon, 31 Jul 2023 02:35:06 +0000 (11:35 +0900)
commitc5bc1aa709fdd858276de3b5e44610cba3445fcf
tree8dd3f2d8bc11a43742a593b32d62efe6146dc208
parente5d69d7ee7a2a0f7d8598cff8547cf094dd833a9
conf: Extract functions to reduce duplicate code

Find configuration parsing codes that are predicted to be commonly used and
extract them as functions.

'proc_conf_info' structure is used to store configurations of
per process information. In addition, this structure can be used
for all kind of configurations in resourced
(e.g., limiter.conf, optimizer.conf, and process.conf).
Therefore, initialization and inserting of 'proc_conf_info'
are predicted to be commonly used.

Change-Id: I161ffce5c6b28ee4acf9610af7c984f2323ea07e
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/common/conf/config-parser.c