#ifndef ZABBIX_ZBXHISTORY_H
#define ZABBIX_ZBXHISTORY_H
zbx_timespec_t timestamp;
zbx_history_value_t value;
ZBX_VECTOR_DECL(history_record, zbx_history_record_t)
int zbx_history_record_float_compare(const zbx_history_record_t *d1, const zbx_history_record_t *d2);
void zbx_history_record_vector_clean(zbx_vector_history_record_t *vector, int value_type);
void zbx_history_record_vector_destroy(zbx_vector_history_record_t *vector, int value_type);
void zbx_history_record_clear(zbx_history_record_t *value, int value_type);
int zbx_history_record_compare_asc_func(const zbx_history_record_t *d1, const zbx_history_record_t *d2);
int zbx_history_record_compare_desc_func(const zbx_history_record_t *d1, const zbx_history_record_t *d2);
void zbx_history_value2str(char *buffer, size_t size, const zbx_history_value_t *value, int value_type);
void zbx_history_value_print(char *buffer, size_t size, const zbx_history_value_t *value, int value_type);
void zbx_history_value2variant(const zbx_history_value_t *value, unsigned char value_type, zbx_variant_t *var);
#define zbx_history_record_vector_create(vector) zbx_vector_history_record_create(vector)
int zbx_history_init(const char *config_history_storage_url, const char *config_history_storage_opts,
int config_log_slow_queries, char **error);
void zbx_history_destroy(void);
zbx_history_value_t value;
zbx_uint64_t lastlogsize;
unsigned char value_type;