ini-parser: add libsys_config_parse_by_section() 72/268472/4 accepted/tizen/unified/20220117.135033 submit/tizen/20220112.015321 submit/tizen/20220113.004629
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 23 Dec 2021 07:33:30 +0000 (16:33 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 3 Jan 2022 06:51:48 +0000 (15:51 +0900)
commit0134007e65c5a07440380ce536a45746ac224482
tree70af07c9895645797252293998fc4cc50270c17c
parentb953f57f3f6a1aa73d025e83f5d0422a0fd765a0
ini-parser: add libsys_config_parse_by_section()

The original function, config_parse(), parses configuration file line by
line. Due to this, a parser, which is registered by the config_parse(),
can hardly handle out-of-ordered section/property or multiple sections
with same name.

The libsys_config_parse_by_section() now parses configuration file
by section. Therefore a parser can now find whole properties of a
section when the section is conveyed to the parser.

Change-Id: I08f09e2f6aefabea497393edb3c1f88dbe2d8850
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/libcommon/ini-parser.c
src/libcommon/ini-parser.h