cfgfile: support empty value
authorAllain Legacy <allain.legacy@windriver.com>
Fri, 31 Mar 2017 13:52:03 +0000 (09:52 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 4 Apr 2017 14:32:06 +0000 (16:32 +0200)
commit216079fb1d4e4dad8d281e1e40edd5e0947f5cf5
tree5d54f881123db112693ae360beacc9725f12ddf9
parent3f3d51ebc88bea669fbc3712da80f148cc12f6c5
cfgfile: support empty value

This commit adds support to the cfgfile library for parsing a key=value
line that has no value string specified (e.g., "key=").  This can be used
to override a configuration attribute that has a default value or default
list of values to set it back to an undefined value to disable
functionality.

Signed-off-by: Allain Legacy <allain.legacy@windriver.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_cfgfile/rte_cfgfile.c
lib/librte_cfgfile/rte_cfgfile.h
test/test/test_cfgfile.c
test/test/test_cfgfiles/etc/empty_key_value.ini