ostream-metawrap.c revision fbae84cc7a76555ab38cf1b5b90682fa8deee2f3
/* Copyright (c) 2013-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "istream.h"
#include "ostream-private.h"
#include "ostream-metawrap.h"
struct metawrap_ostream {
struct ostream_private ostream;
void (*write_callback)(void *);
void *context;
};
{
if (write_callback != NULL) {
/* metadata headers aren't counted as part of the offset */
}
}
static ssize_t
{
else
return ret;
}
static int
{
struct metawrap_ostream *outstream =
(struct metawrap_ostream *)_outstream;
int ret;
return ret;
}
struct ostream *
void (*write_callback)(void *), void *context)
{
struct metawrap_ostream *mstream;
}