--- libaitcfg/inc/aitcfg.h 2014/01/30 08:30:47 1.13 +++ libaitcfg/inc/aitcfg.h 2014/03/03 09:41:09 1.14 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.13 2014/01/30 08:30:47 misho Exp $ +* $Id: aitcfg.h,v 1.14 2014/03/03 09:41:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -85,10 +85,16 @@ const char *cfg_GetError(); /* * cfgInitConfig() - Init config root * - * @cfg = Config root - * return: -1 error or 0 ok + * return: NULL error or !=NULL allocated config root */ -int cfgInitConfig(cfg_root_t * __restrict cfg); +cfg_root_t *cfgInitConfig(); +/* + * cfgEndConfig() - Free resources & config root + * + * @pcfg = Config root + * return: none + */ +void cfgEndConfig(cfg_root_t **pcfg); /* * cfgLoadConfig() - Load config from file *