doveadm-print-pager.c revision 80fbf2394fb1071e2bcc50a8c1da1fe876a961a2
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi/* Copyright (c) 2010-2012 Dovecot authors, see the included COPYING file */
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi const char *title;
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi ARRAY_DEFINE(headers, struct doveadm_print_pager_header);
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi unsigned int header_idx;
3f08db06526d6901aa08c110b5bc7dde6bc39905ndstatic void
1d980e5489836e977ba59b419e27b0ec875c4bd3takashidoveadm_print_pager_header(const struct doveadm_print_header *hdr)
1d980e5489836e977ba59b419e27b0ec875c4bd3takashistatic void pager_next_hdr(void)
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi if (++ctx->header_idx == array_count(&ctx->headers)) {
1d980e5489836e977ba59b419e27b0ec875c4bd3takashistatic void doveadm_print_pager_print(const char *value)
1d980e5489836e977ba59b419e27b0ec875c4bd3takashidoveadm_print_pager_print_stream(const unsigned char *value, size_t size)
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi if (size == 0) {
b2a930a0c94e9fd25f8d2b3a2c53573235db3f06nilgunstatic void doveadm_print_pager_init(void)
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi pool = pool_alloconly_create("doveadm print pager", 1024);
b2a930a0c94e9fd25f8d2b3a2c53573235db3f06nilgun ctx = p_new(pool, struct doveadm_print_pager_context, 1);
1d980e5489836e977ba59b419e27b0ec875c4bd3takashistatic void doveadm_print_pager_flush(void)