--- libaitcfg/inc/aitcfg.h 2014/03/19 16:35:28 1.14.2.1 +++ libaitcfg/inc/aitcfg.h 2014/03/19 17:00:51 1.14.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.14.2.1 2014/03/19 16:35:28 misho Exp $ +* $Id: aitcfg.h,v 1.14.2.2 2014/03/19 17:00:51 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -185,6 +185,14 @@ int cfgConcatConfig(cfg_root_t * __restrict cfg, cfg_r */ int cfgMergeConfig(cfg_root_t * __restrict cfg, cfg_root_t * __restrict add_cfg); +/* + * cfg_getSection() - Get entire section attributes into array + * + * @cfg = Config root + * @csSec = Config section //[{csSec}] + * return: NULL not found or !=NULL allocated array, must free with array_Destroy() after use! + */ +array_t *cfg_getSection(cfg_root_t * __restrict cfg, const char *csSec); /* * cfg_findAttribute() - Find attribute position in config file *