conf-parser: introduce DEFINE_CONFIG_PARSE*() macros
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 May 2018 16:39:12 +0000 (01:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 31 May 2018 02:09:41 +0000 (11:09 +0900)
commit2d1729ca3ff7d8ee51b12711411d15c3e22b9148
treea179966f74cb5fab8b783bdecac8895e93e68ac3
parent0a9e36387049e25fd3829281e98cd9b74c7d81df
conf-parser: introduce DEFINE_CONFIG_PARSE*() macros

This introduces several macros for defining config parsers.
Also this fixes errno in DEFINE_CONFIG_PARSE_ENUM() and _ENUMV()
and makes the log level lower when a duplicated item is
specified to the settings parsed by the function defined by
DEFINE_CONFIG_PARSE_ENUMV().
src/shared/conf-parser.c
src/shared/conf-parser.h