doveadm-print-flow.c revision 8f75c29549038b056ee3cfef46bdb2980e75ee37
/* Copyright (c) 2010-2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "ostream.h"
#include "doveadm-print-private.h"
struct doveadm_print_flow_header {
const char *title;
};
struct doveadm_print_flow_context {
unsigned int header_idx;
bool streaming:1;
};
static struct doveadm_print_flow_context *ctx;
static void
{
struct doveadm_print_flow_header *fhdr;
}
static void flow_next_hdr(void)
{
else {
ctx->header_idx = 0;
}
}
{
}
}
static void doveadm_print_flow_print(const char *value)
{
const struct doveadm_print_flow_header *hdr =
}
static void
{
const struct doveadm_print_flow_header *hdr =
}
if (size == 0) {
}
}
static void doveadm_print_flow_init(void)
{
}
static void doveadm_print_flow_flush(void)
{
if (ctx->header_idx != 0) {
ctx->header_idx = 0;
}
}
static void doveadm_print_flow_deinit(void)
{
}
struct doveadm_print_vfuncs doveadm_print_flow_vfuncs = {
"flow",
};