Source
32
32
33
33
typedef enum
34
34
{
35
35
ZBX_TEMPLATE_LINK_MANUAL = 0,
36
36
ZBX_TEMPLATE_LINK_LLD = 1
37
37
}
38
38
zbx_host_template_link_type;
39
39
40
40
typedef int (*zbx_trigger_func_t)(zbx_variant_t *, const zbx_dc_evaluate_item_t *, const char *, const char *,
41
41
const zbx_timespec_t *, char **);
42
-
43
42
typedef void (*zbx_lld_process_agent_result_func_t)(zbx_uint64_t itemid, zbx_uint64_t hostid, AGENT_RESULT *result,
44
43
zbx_timespec_t *ts, char *error);
44
+
typedef void (*zbx_preprocess_item_value_func_t)(zbx_uint64_t itemid, zbx_uint64_t hostid, unsigned char item_value_type,
45
+
unsigned char item_flags, AGENT_RESULT *result, zbx_timespec_t *ts, unsigned char state, char *error);
46
+
typedef void (*zbx_preprocessor_flush_func_t)(void);
45
47
46
-
void zbx_init_library_dbwrap(zbx_lld_process_agent_result_func_t lld_process_agent_result_func);
48
+
void zbx_init_library_dbwrap(zbx_lld_process_agent_result_func_t lld_process_agent_result_func,
49
+
zbx_preprocess_item_value_func_t preprocess_item_value_func,
50
+
zbx_preprocessor_flush_func_t preprocessor_flush_func);
47
51
48
52
int zbx_check_access_passive_proxy(zbx_socket_t *sock, int send_response, const char *req,
49
53
const zbx_config_tls_t *config_tls, int config_timeout, const char *server);
50
54
51
55
int zbx_get_active_proxy_from_request(const struct zbx_json_parse *jp, zbx_dc_proxy_t *proxy, char **error);
52
56
int zbx_proxy_check_permissions(const zbx_dc_proxy_t *proxy, const zbx_socket_t *sock, char **error);
53
57
54
58
int zbx_get_interface_availability_data(struct zbx_json *json, int *ts);
55
59
56
60
int zbx_proxy_get_host_active_availability(struct zbx_json *j);