#define ZBX_FLAG_EXPTYPE_EVENTS 1
#define ZBX_FLAG_EXPTYPE_HISTORY 2
#define ZBX_FLAG_EXPTYPE_TRENDS 4
typedef zbx_export_file_t *(*zbx_get_export_file_f)(void);
int zbx_init_library_export(zbx_config_export_t *zbx_config_export, char **error);
void zbx_deinit_library_export(void);
int zbx_validate_export_type(char *export_type, uint32_t *export_mask);
int zbx_is_export_enabled(uint32_t flags);
int zbx_has_export_dir(void);
void zbx_export_deinit(zbx_export_file_t *file);
zbx_export_file_t *zbx_problems_export_init(zbx_get_export_file_f get_export_file_cb, const char *process_name,
void zbx_problems_export_write(const char *buf, size_t count);
void zbx_problems_export_flush(void);
zbx_export_file_t *zbx_history_export_init(zbx_get_export_file_f get_export_file_cb, const char *process_name,
void zbx_history_export_write(const char *buf, size_t count);
void zbx_history_export_flush(void);
zbx_export_file_t *zbx_trends_export_init(zbx_get_export_file_f get_export_file_cb, const char *process_name,
void zbx_trends_export_write(const char *buf, size_t count);
void zbx_trends_export_flush(void);