diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-20 15:48:50 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-02-20 15:48:50 +0000 |
commit | ee623dee6ae3742b1f6957c06433b075622da828 (patch) | |
tree | ce75ecc7884dc7b7a386947b0f3d6579ed6bc467 /include/cfg.h | |
parent | b863640625033bf4d27399fbc3f9b2d708a91e82 (diff) | |
download | zabbix-ee623dee6ae3742b1f6957c06433b075622da828.tar.gz zabbix-ee623dee6ae3742b1f6957c06433b075622da828.tar.xz zabbix-ee623dee6ae3742b1f6957c06433b075622da828.zip |
Common code for parsing of configuration files.
git-svn-id: svn://svn.zabbix.com/trunk@319 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'include/cfg.h')
-rw-r--r-- | include/cfg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/cfg.h b/include/cfg.h new file mode 100644 index 00000000..90f38445 --- /dev/null +++ b/include/cfg.h @@ -0,0 +1,23 @@ +#ifndef ZABBIX_CFG_H +#define ZABBIX_CFG_H + +#define TYPE_INT 0 +#define TYPE_STRING 1 + +#define PARM_OPT 0 +#define PARM_MAND 1 + +struct cfg_line +{ + char *parameter; + void *variable; + void *function; + int type; + int mandatory; + int min; + int max; +}; + +int parse_cfg_file(char *cfg_file,struct cfg_line *cfg); + +#endif |