ini-parser: add libsys_config_parse_by_section() 01/268801/1 accepted/tizen/6.5/unified/20220117.134909 submit/tizen_6.5/20220112.015623 submit/tizen_6.5/20220113.004754
authorYoungjae Cho <y0.cho@samsung.com>
Thu, 23 Dec 2021 07:33:30 +0000 (16:33 +0900)
committerHyotaek Shim <hyotaek.shim@samsung.com>
Mon, 3 Jan 2022 07:19:01 +0000 (07:19 +0000)
commit5cedb1c309a4803ba4c2a6e5c305d9ed8e26fd1b
tree70af07c9895645797252293998fc4cc50270c17c
parent350970d0dffb725dd8c63318a0e229bd56d5505b
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