static void lld_hosts_get(zbx_uint64_t parent_hostid, zbx_vector_lld_host_ptr_t *hosts, unsigned char monitored_by,
#include "../db_lengths_constants.h"
#include "zbxexpression.h"
#include "zbx_availability_constants.h"
#include "audit/zbxaudit.h"
#include "audit/zbxaudit_host.h"
#include "zbx_host_constants.h"
#include "zbxcacheconfig.h"
#include "zbxinterface.h"
#include "../server_constants.h"
#define ZBX_USERMACRO_MANUAL 0
#define ZBX_USERMACRO_AUTOMATIC 1
zbx_uint64_t hostmacroid;
#define ZBX_FLAG_LLD_HMACRO_UPDATE_VALUE __UINT64_C(0x00000001)
#define ZBX_FLAG_LLD_HMACRO_UPDATE_DESCRIPTION __UINT64_C(0x00000002)
#define ZBX_FLAG_LLD_HMACRO_UPDATE_TYPE __UINT64_C(0x00000004)
#define ZBX_FLAG_LLD_HMACRO_UPDATE \
(ZBX_FLAG_LLD_HMACRO_UPDATE_VALUE | ZBX_FLAG_LLD_HMACRO_UPDATE_DESCRIPTION | \
ZBX_FLAG_LLD_HMACRO_UPDATE_TYPE)
#define ZBX_FLAG_LLD_HMACRO_REMOVE __UINT64_C(0x00000008)
ZBX_PTR_VECTOR_DECL(lld_hostmacro_ptr, zbx_lld_hostmacro_t*)
ZBX_PTR_VECTOR_IMPL(lld_hostmacro_ptr, zbx_lld_hostmacro_t*)
static void lld_hostmacro_free(zbx_lld_hostmacro_t *hostmacro)
zbx_free(hostmacro->macro);
zbx_free(hostmacro->value);
zbx_free(hostmacro->description);
zbx_free(hostmacro->value_orig);
zbx_free(hostmacro->description_orig);
char *authpassphrase_orig;
char *privpassphrase_orig;
unsigned char securitylevel;
unsigned char securitylevel_orig;
unsigned char authprotocol;
unsigned char authprotocol_orig;
unsigned char privprotocol;