Source
63
63
zbx_addr_t;
64
64
65
65
typedef struct
66
66
{
67
67
int (*cfg_custom_parameter_parser_func)(const char *value, const struct cfg_line *cfg);
68
68
} cfg_custom_parameter_parser_t;
69
69
70
70
void zbx_addr_copy(zbx_vector_ptr_t *addr_to, const zbx_vector_ptr_t *addr_from);
71
71
void zbx_addr_free(zbx_addr_t *addr);
72
72
73
-
void zbx_init_library_cfg(unsigned char program_type);
73
+
void zbx_init_library_cfg(unsigned char program_type, const char *cfg_file);
74
74
75
75
int parse_cfg_file(const char *cfg_file, struct cfg_line *cfg, int optional, int strict, int noexit);
76
76
77
77
int check_cfg_feature_int(const char *parameter, int value, const char *feature);
78
78
int check_cfg_feature_str(const char *parameter, const char *value, const char *feature);
79
79
80
80
typedef int (*add_serveractive_host_f)(const zbx_vector_ptr_t *addrs, zbx_vector_str_t *hostnames, void *data);
81
81
int zbx_set_data_destination_hosts(char *str, unsigned short port, const char *name, add_serveractive_host_f cb,
82
82
zbx_vector_str_t *hostnames, void *data, char **error);
83
83