lld_remove_lost_objects("item_discovery", "itemid", &items, lifetime, lastcheck, zbx_db_delete_items, get_item_info);
#include "../db_lengths.h"
#include "zbxprometheus.h"
#include "audit/zbxaudit.h"
#include "audit/zbxaudit_item.h"
typedef zbx_lld_item_full_t zbx_lld_item_t;
#define ZBX_DEPENDENT_ITEM_MAX_COUNT 29999
#define ZBX_DEPENDENT_ITEM_MAX_LEVELS 3
zbx_uint64_t master_itemid;
unsigned char item_flags;
zbx_uint64_t item_preprocid;
char *error_handler_params;
char *error_handler_params_orig;
#define ZBX_FLAG_LLD_ITEM_PREPROC_UNSET __UINT64_C(0x00)
#define ZBX_FLAG_LLD_ITEM_PREPROC_DISCOVERED __UINT64_C(0x01)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_TYPE __UINT64_C(0x02)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_PARAMS __UINT64_C(0x04)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_ERROR_HANDLER __UINT64_C(0x08)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_ERROR_HANDLER_PARAMS __UINT64_C(0x10)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_STEP __UINT64_C(0x20)
#define ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE \
(ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_TYPE | \
ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_PARAMS | \
ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_ERROR_HANDLER | \
ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_ERROR_HANDLER_PARAMS | \
ZBX_FLAG_LLD_ITEM_PREPROC_UPDATE_STEP \
static zbx_lld_item_preproc_t *zbx_init_lld_item_preproc(zbx_uint64_t item_preprocid, zbx_uint64_t flags,
int step, int type, const char *params, int error_handler, const char *error_handler_params)
zbx_lld_item_preproc_t *preproc_op;
preproc_op = (zbx_lld_item_preproc_t *)zbx_malloc(NULL, sizeof(zbx_lld_item_preproc_t));
preproc_op->flags = flags;
preproc_op->item_preprocid = item_preprocid;
preproc_op->type_orig = 0;