int zbx_process_sender_history_data(zbx_socket_t *sock, struct zbx_json_parse *jp, zbx_timespec_t *ts, char **info);
#include "zbxcacheconfig.h"
#define ZBX_PROXYMODE_ACTIVE 0
#define ZBX_PROXYMODE_PASSIVE 1
#define ZBX_PROXY_UPLOAD_UNDEFINED 0
#define ZBX_PROXY_UPLOAD_DISABLED 1
#define ZBX_PROXY_UPLOAD_ENABLED 2
ZBX_TEMPLATE_LINK_MANUAL = 0,
ZBX_TEMPLATE_LINK_LLD = 1
zbx_host_template_link_type;
typedef int (*zbx_trigger_func_t)(zbx_variant_t *, const DC_EVALUATE_ITEM *, const char *, const char *,
const zbx_timespec_t *, char **);
int zbx_check_access_passive_proxy(zbx_socket_t *sock, int send_response, const char *req,
const zbx_config_tls_t *config_tls, int config_timeout);
int zbx_get_active_proxy_from_request(const struct zbx_json_parse *jp, DC_PROXY *proxy, char **error);
int zbx_proxy_check_permissions(const DC_PROXY *proxy, const zbx_socket_t *sock, char **error);
int zbx_get_interface_availability_data(struct zbx_json *json, int *ts);
int zbx_proxy_get_hist_data(struct zbx_json *j, zbx_uint64_t *lastid, int *more);
int zbx_proxy_get_dhis_data(struct zbx_json *j, zbx_uint64_t *lastid, int *more);
int zbx_proxy_get_areg_data(struct zbx_json *j, zbx_uint64_t *lastid, int *more);
void zbx_proxy_set_hist_lastid(const zbx_uint64_t lastid);
void zbx_proxy_set_dhis_lastid(const zbx_uint64_t lastid);
void zbx_proxy_set_areg_lastid(const zbx_uint64_t lastid);
int zbx_proxy_get_host_active_availability(struct zbx_json *j);
int zbx_proxy_get_history_count(void);
int zbx_proxy_get_delay(zbx_uint64_t lastid);
int zbx_process_history_data(zbx_history_recv_item_t *items, zbx_agent_value_t *values, int *errcodes,
size_t values_num, zbx_proxy_suppress_t *nodata_win);