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:
authorAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-09-21 15:32:28 +0300
committerAleksejs Sestakovs <aleksejs.sestakovs@zabbix.com>2020-09-21 15:32:28 +0300
commit37c4a6ec73c8589a1f5c684b244eb703a019a8d5 (patch)
tree462efe5a060e2f4ff2c2348b63ed43a0341e0b4f /include/cfg.h
parent35d8f78e2a8ec83775bb9676a73c8b291ee7dac9 (diff)
...G...... [ZBXNEXT-6191] refactored hostname parsing
Diffstat (limited to 'include/cfg.h')
-rw-r--r--include/cfg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cfg.h b/include/cfg.h
index 09272f17a4f..d03169c843b 100644
--- a/include/cfg.h
+++ b/include/cfg.h
@@ -20,6 +20,8 @@
#ifndef ZABBIX_CFG_H
#define ZABBIX_CFG_H
+#include "zbxalgo.h"
+
#define TYPE_INT 0
#define TYPE_STRING 1
#define TYPE_MULTISTRING 2
@@ -65,7 +67,7 @@ int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int
int check_cfg_feature_int(const char *parameter, int value, const char *feature);
int check_cfg_feature_str(const char *parameter, const char *value, const char *feature);
-typedef int (*add_serveractive_host_f)(const char *host, unsigned short port);
-void zbx_set_data_destination_hosts(char *active_hosts, add_serveractive_host_f cb);
+typedef int (*add_serveractive_host_f)(const char *host, unsigned short port, zbx_vector_str_t *hostnames);
+void zbx_set_data_destination_hosts(char *active_hosts, add_serveractive_host_f cb, zbx_vector_str_t *hostnames);
#endif