diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-06-20 08:17:12 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-06-20 08:17:12 +0000 |
| commit | 01cd848a925015679ea237651e6291cd44129858 (patch) | |
| tree | 4327bfc443b9aff048f93b9d12ae3ad2de15533a /src/libs/zbxconf | |
| parent | 06e27fe2d16497bb5021d9ed61b15a2d67b5d75e (diff) | |
| download | zabbix-01cd848a925015679ea237651e6291cd44129858.tar.gz zabbix-01cd848a925015679ea237651e6291cd44129858.tar.xz zabbix-01cd848a925015679ea237651e6291cd44129858.zip | |
- added column escalation_log.actiontype (Alexei)
- time related function 'nodata','date','dayofweek','time','now' will be
periodically updated (Alexei)
- update of functions optimised. Do not update if same value. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1880 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxconf')
| -rw-r--r-- | src/libs/zbxconf/cfg.c | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/src/libs/zbxconf/cfg.c b/src/libs/zbxconf/cfg.c index f2ab375d..290c2cef 100644 --- a/src/libs/zbxconf/cfg.c +++ b/src/libs/zbxconf/cfg.c @@ -25,24 +25,23 @@ #include "common.h" #include "cfg.h" -/* struct cfg_line - { - char *parameter, - void *variable, - int type; - int mandatory; - int min; - int max; - }; -*/ - -/* struct cfg_line cfg[]= - {*/ -/* PARAMETER ,VAR ,FUNC, TYPE(0i,1s),MANDATORY,MIN,MAX */ -/* {"StartSuckers",&Suckers,0, 0 ,1 ,2,255}, - {0} - };*/ - +/****************************************************************************** + * * + * Function: parse_cfg_file * + * * + * Purpose: parse configuration file * + * * + * Parameters: cfg_file - full name of config filesocker descriptor * + * cfg - pointer to configuration parameter structure * + * * + * Return value: SUCCEED - parsed succesfully * + * FAIL - error processing config file * + * * + * Author: Alexei Vladishev * + * * + * Comments: * + * * + ******************************************************************************/ int parse_cfg_file(char *cfg_file,struct cfg_line *cfg) { FILE *file; |
