version 1.1.1.1, 2008/08/28 13:17:41
|
version 1.2.2.3, 2009/09/23 14:20:53
|
Line 1
|
Line 1
|
|
/************************************************************************* |
|
* (C) 2008 AITNET ltd - Sofia/Bulgaria - <misho@aitbg.com> |
|
* by Michael Pounov <misho@openbsd-bg.org> |
|
* |
|
* $Author$ |
|
* $Id$ |
|
* |
|
*************************************************************************/ |
#ifndef __AITCFG_H |
#ifndef __AITCFG_H |
#define __AITCFG_H |
#define __AITCFG_H |
|
|
Line 23 typedef struct tagHead sl_config;
|
Line 31 typedef struct tagHead sl_config;
|
*/ |
*/ |
inline int InitConfig(sl_config * __restrict cfg); |
inline int InitConfig(sl_config * __restrict cfg); |
/* |
/* |
|
* cfg_CreateConfig() Create config file from memory without whitespaces! |
|
* @csConfigName = New config filename |
|
* @cfg = Head list element |
|
* return: 0 ok; -1 error:: can`t save new config |
|
*/ |
|
int cfg_CreateConfig(const char *csConfigName, sl_config * __restrict cfg); |
|
/* |
* CreateConfig() Create config file from memory |
* CreateConfig() Create config file from memory |
* @csConfigName = New config filename |
* @csConfigName = New config filename |
* @cfg = Head list element |
* @cfg = Head list element |
Line 63 int ReadConfig(FILE *f, sl_config * __restrict cfg);
|
Line 78 int ReadConfig(FILE *f, sl_config * __restrict cfg);
|
* return: 0 ok; -1 error:: can`t write to file |
* return: 0 ok; -1 error:: can`t write to file |
*/ |
*/ |
int WriteConfig(FILE *f, sl_config * __restrict cfg); |
int WriteConfig(FILE *f, sl_config * __restrict cfg); |
|
|
|
/* |
|
* cfg_WriteConfig() Write to file from items in config list without whitespaces! |
|
* @f = file resource |
|
* @cfg = Head list element |
|
* return: 0 ok; -1 error:: can`t write to file |
|
*/ |
|
int cfg_WriteConfig(FILE *f, sl_config * __restrict cfg); |
|
|
|
/* |
|
* ConcatConfig() Concat two list in one |
|
* @cfg = Head list element of main list |
|
* @add_cfg = Head list element of added list |
|
* return: 0 ok; -1 error:: can`t concat lists |
|
*/ |
|
int ConcatConfig(sl_config * __restrict cfg, sl_config * __restrict add_cfg); |
|
|
|
|
/* |
/* |