summaryrefslogtreecommitdiffstats
path: root/include/cfg.h
blob: 90f3844563f7e89519e5e67fef40fad119655aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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