--- libaitcfg/inc/aitcfg.h 2014/04/14 19:57:03 1.15.2.1 +++ libaitcfg/inc/aitcfg.h 2021/11/25 23:44:52 1.17.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcfg.h,v 1.15.2.1 2014/04/14 19:57:03 misho Exp $ +* $Id: aitcfg.h,v 1.17.2.1 2021/11/25 23:44:52 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2014 +Copyright 2004 - 2021 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -173,6 +173,15 @@ int cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg */ int cfgWriteConfig(FILE *f, cfg_root_t * __restrict cfg, int whitespace); /* + * cfgWriteConfigRaw() - Write config from memory by list + * + * @f = File handle + * @cfg = Config root + * @whitespace = Additional whitespace characters to file + * return: -1 error or 0 ok + */ +int cfgWriteConfigRaw(FILE *f, cfg_root_t * __restrict cfg, int whitespace); +/* * cfgConcatConfig() - Concat two configs into one * * @cfg = Config root @@ -189,6 +198,13 @@ int cfgConcatConfig(cfg_root_t * __restrict cfg, cfg_r */ int cfgMergeConfig(cfg_root_t * __restrict cfg, cfg_root_t * __restrict add_cfg); +/* + * cfg_dumpCfg() - dump config data + * + * @cfg = Config root + * return: none + */ +void cfg_dumpCfg(cfg_root_t * __restrict cfg); /* * cfg_getSection() - Get entire section attributes into array *