int expr_db_item_value(const zbx_db_trigger *trigger, char **value, int N_functionid, int clock, int ns, int raw);
#ifndef ZABBIX_DATAFUNC_H
#define ZABBIX_DATAFUNC_H
#include "zbx_discoverer_constants.h"
#define ZBX_REQUEST_HOST_IP 1
#define ZBX_REQUEST_HOST_DNS 2
#define ZBX_REQUEST_HOST_CONN 3
#define ZBX_REQUEST_HOST_PORT 4
#define ZBX_REQUEST_HOST_ID 101
#define ZBX_REQUEST_HOST_HOST 102
#define ZBX_REQUEST_HOST_NAME 103
#define ZBX_REQUEST_HOST_DESCRIPTION 104
#define ZBX_REQUEST_ITEM_ID 105
#define ZBX_REQUEST_ITEM_NAME 106
#define ZBX_REQUEST_ITEM_NAME_ORIG 107
#define ZBX_REQUEST_ITEM_KEY 108
#define ZBX_REQUEST_ITEM_KEY_ORIG 109
#define ZBX_REQUEST_ITEM_DESCRIPTION 110
#define ZBX_REQUEST_ITEM_DESCRIPTION_ORIG 111
#define ZBX_REQUEST_PROXY_NAME 112
#define ZBX_REQUEST_PROXY_DESCRIPTION 113
#define ZBX_REQUEST_ITEM_VALUETYPE 114
#define ZBX_REQUEST_ITEM_ERROR 115
#define ZBX_REQUEST_ITEM_LOG_DATE 201
#define ZBX_REQUEST_ITEM_LOG_TIME 202
#define ZBX_REQUEST_ITEM_LOG_AGE 203
#define ZBX_REQUEST_ITEM_LOG_SOURCE 204
#define ZBX_REQUEST_ITEM_LOG_SEVERITY 205
#define ZBX_REQUEST_ITEM_LOG_NSEVERITY 206
#define ZBX_REQUEST_ITEM_LOG_EVENTID 207
const char *item_logtype_string(unsigned char logtype);
const char *alert_type_string(unsigned char type);
const char *alert_status_string(unsigned char type, unsigned char status);
const char *trigger_state_string(int state);
const char *item_state_string(int state);