#ifndef DOVEADM_PRINT_H
#define DOVEADM_PRINT_H
enum doveadm_print_header_flags {
};
extern const struct doveadm_print_vfuncs *doveadm_print_vfuncs_all[];
extern bool doveadm_print_hide_titles;
/* points to either stdout or to doveadm-server's TCP connection */
extern struct ostream *doveadm_print_ostream;
bool doveadm_print_is_initialized(void);
enum doveadm_print_header_flags flags);
void doveadm_print_header_simple(const char *key_title);
void doveadm_print(const char *value);
/* Stream for same field continues until len=0 */
/* Print the whole input stream. Returns 0 if ok, -1 if stream read() failed */
void doveadm_print_flush(void);
void doveadm_print_unstick_headers(void);
void doveadm_print_init(const char *name);
void doveadm_print_deinit(void);
void doveadm_print_formatted_set_format(const char *format);
#endif