diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/doveadm/doveadm-print-private.h | |
parent | Initial commit. (diff) | |
download | dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.tar.xz dovecot-f7548d6d28c313cf80e6f3ef89aed16a19815df1.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/doveadm/doveadm-print-private.h')
-rw-r--r-- | src/doveadm/doveadm-print-private.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/doveadm/doveadm-print-private.h b/src/doveadm/doveadm-print-private.h new file mode 100644 index 0000000..fe85560 --- /dev/null +++ b/src/doveadm/doveadm-print-private.h @@ -0,0 +1,31 @@ +#ifndef DOVEADM_PRINT_PRIVATE_H +#define DOVEADM_PRINT_PRIVATE_H + +#include "doveadm-print.h" + +struct doveadm_print_header { + const char *key; + const char *title; + enum doveadm_print_header_flags flags; +}; + +struct doveadm_print_vfuncs { + const char *name; + + void (*init)(void); + void (*deinit)(void); + + void (*header)(const struct doveadm_print_header *hdr); + void (*print)(const char *value); + void (*print_stream)(const unsigned char *value, size_t size); + void (*flush)(void); +}; + +extern struct doveadm_print_vfuncs doveadm_print_flow_vfuncs; +extern struct doveadm_print_vfuncs doveadm_print_tab_vfuncs; +extern struct doveadm_print_vfuncs doveadm_print_table_vfuncs; +extern struct doveadm_print_vfuncs doveadm_print_pager_vfuncs; +extern struct doveadm_print_vfuncs doveadm_print_json_vfuncs; +extern struct doveadm_print_vfuncs doveadm_print_formatted_vfuncs; + +#endif |