diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:36:47 +0000 |
commit | 0441d265f2bb9da249c7abf333f0f771fadb4ab5 (patch) | |
tree | 3f3789daa2f6db22da6e55e92bee0062a7d613fe /src/doveadm/doveadm-print-private.h | |
parent | Initial commit. (diff) | |
download | dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.tar.xz dovecot-0441d265f2bb9da249c7abf333f0f771fadb4ab5.zip |
Adding upstream version 1:2.3.21+dfsg1.upstream/1%2.3.21+dfsg1
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 |