cfgfile: support looking up sections by index
authorRich Lane <rich.lane@bigswitch.com>
Thu, 25 Feb 2016 20:43:03 +0000 (12:43 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 29 Feb 2016 10:28:31 +0000 (11:28 +0100)
commitc2189745c38d944e3b0e0c99066d67d7bc7e7744
treeceaa17e5afaf41ba105e74298254c50d8ce803c5
parent930cd79735d082ba7c9b37a9f0490c359b2f244a
cfgfile: support looking up sections by index

This is useful when sections have duplicate names.

Signed-off-by: Rich Lane <rich.lane@bigswitch.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_cfgfile/rte_cfgfile.c
lib/librte_cfgfile/rte_cfgfile.h
lib/librte_cfgfile/rte_cfgfile_version.map