#ifndef ZABBIX_LLD_PROTOCOL_H
#define ZABBIX_LLD_PROTOCOL_H
#define ZBX_IPC_SERVICE_LLD "lld"
#define ZBX_IPC_LLD_REGISTER 1000
#define ZBX_IPC_LLD_DONE 1001
#define ZBX_IPC_LLD_TASK 1100
#define ZBX_IPC_LLD_REQUEST 1200
#define ZBX_IPC_LLD_QUEUE 1300
#define ZBX_IPC_LLD_DIAG_STATS 1400
#define ZBX_IPC_LLD_DIAG_STATS_RESULT 1401
#define ZBX_IPC_LLD_TOP_ITEMS 1402
#define ZBX_IPC_LLD_TOP_ITEMS_RESULT 1403
zbx_uint32_t zbx_lld_serialize_item_value(unsigned char **data, zbx_uint64_t itemid, zbx_uint64_t hostid,
const char *value, const zbx_timespec_t *ts, unsigned char meta, zbx_uint64_t lastlogsize, int mtime,
void zbx_lld_deserialize_item_value(const unsigned char *data, zbx_uint64_t *itemid, zbx_uint64_t *hostid,
char **value, zbx_timespec_t *ts, unsigned char *meta, zbx_uint64_t *lastlogsize, int *mtime,
zbx_uint32_t zbx_lld_serialize_diag_stats(unsigned char **data, zbx_uint64_t items_num, zbx_uint64_t values_num);