cfgfile: add section number of entries by index
authorGuduri Prathyusha <gprathyusha@caviumnetworks.com>
Thu, 27 Apr 2017 06:51:40 +0000 (12:21 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 15 Sep 2017 13:57:04 +0000 (15:57 +0200)
commit3d2e0448ebb5c76fda6e988558793c070c3baded
treed231c0551ff731bae5dc21c7128d65e2ced75c99
parentaee62e906f5e59a8fac65c78cac811958aa11657
cfgfile: add section number of entries by index

rte_cfgfile_section_num_entries_by_index() is added to get the number of
entries of a section when multiple sections of the same name are
present.

Signed-off-by: Guduri Prathyusha <gprathyusha@caviumnetworks.com>
Reviewed-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_cfgfile/rte_cfgfile.c
lib/librte_cfgfile/rte_cfgfile.h