zbx_rtc_subscribe(process_type, process_num, rtc_msgs, ARRSIZE(rtc_msgs), proxyconfig_args_in->config_timeout,
#include "zbxcachehistory.h"
#include "zbxcommshigh.h"
#include "proxyconfigwrite/proxyconfig_write.h"
#include "zbx_rtc_constants.h"
#include "zbx_host_constants.h"
#define CONFIG_PROXYCONFIG_RETRY 120
extern zbx_vector_ptr_t zbx_addrs;
extern char *CONFIG_HOSTNAME;
extern char *CONFIG_SOURCE_IP;
static void process_configuration_sync(size_t *data_size, zbx_synced_new_config_t *synced,
const zbx_config_tls_t *config_tls, const zbx_config_vault_t *config_vault,
const zbx_thread_info_t *thread_info, int config_timeout)
struct zbx_json_parse jp, jp_kvs_paths = {0};
char value[16], *error = NULL, *buffer = NULL;
size_t buffer_size, reserved;
zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
zbx_json_addstring(&j, "request", ZBX_PROTO_VALUE_PROXY_CONFIG, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, "host", CONFIG_HOSTNAME, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, ZBX_PROTO_TAG_VERSION, ZABBIX_VERSION, ZBX_JSON_TYPE_STRING);
zbx_json_addstring(&j, ZBX_PROTO_TAG_SESSION, zbx_dc_get_session_token(), ZBX_JSON_TYPE_STRING);
zbx_json_adduint64(&j, ZBX_PROTO_TAG_CONFIG_REVISION, zbx_dc_get_received_revision());