--- libaitcfg/inc/aitcfg.h 2012/04/02 15:12:15 1.6.4.2 +++ libaitcfg/inc/aitcfg.h 2012/04/02 15:39:55 1.6.4.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.6.4.2 2012/04/02 15:12:15 misho Exp $ +* $Id: aitcfg.h,v 1.6.4.3 2012/04/02 15:39:55 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -193,17 +193,18 @@ inline const char *cfg_getAttribute(cfg_root_t * __res */ int cfg_setAttribute(cfg_root_t * __restrict cfg, const char *csSec, const char *csAttr, const char *csVal); - -#if 0 /* - * cfg_UnsetAttribute() Unset item from config list and free resources - * @cfg = Head list element + * cfg_unsetAttribute() - Unset item from config and free resources + * + * @cfg = Config root * @csSec = Config section //[{csSec}], if NULL unset in *default* section - * @csAttr = Config attribute //{csAttr} = ..., if NULL unset as *any* attribute - * return: 0 item not found, -1 error: null parameters; >0 position in list -*/ -int cfg_UnsetAttribute(sl_config * __restrict cfg, const u_char *csSec, const u_char *csAttr); + * @csAttr = Config attribute //{csAttr} = ... + * return: 0 item not found, -1 error or 1 removed item + */ +int cfg_unsetAttribute(cfg_root_t * __restrict cfg, const char *csSec, + const char *csAttr); +#if 0 /* * cfg_LoadAttribute() Extended get attribute, if not found item return *default value* * @cfg = Head list element