Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2019-11-26 17:53:01 +0300
committerAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2019-11-26 17:57:41 +0300
commit3f00ec38102aa903e2b5baf9ae1d94fd4e56d1e7 (patch)
tree7f2b8b452d95c54ffcce5faa0b27c0aadcacaaf1 /include/cfg.h
parentf7e5e5776d0afe45d72ea5483ac23778b958597f (diff)
...G...PS. [ZBXNEXT-1085] added available agent check restriction parameters
Diffstat (limited to 'include/cfg.h')
-rw-r--r--include/cfg.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/cfg.h b/include/cfg.h
index 646517c9574..c66ee30b25c 100644
--- a/include/cfg.h
+++ b/include/cfg.h
@@ -47,14 +47,17 @@ extern int CONFIG_LOG_FILE_SIZE;
extern int CONFIG_ALLOW_ROOT;
extern int CONFIG_TIMEOUT;
+typedef int (*cfg_custom_parameter_parser_t)(const char *value, void *cfg);
+
struct cfg_line
{
- const char *parameter;
- void *variable;
- int type;
- int mandatory;
- zbx_uint64_t min;
- zbx_uint64_t max;
+ const char *parameter;
+ void *variable;
+ int type;
+ int mandatory;
+ zbx_uint64_t min;
+ zbx_uint64_t max;
+ cfg_custom_parameter_parser_t custom_parser;
};
int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int strict);