view src/lib/istream-rawlog.h @ 18166:c02f29ca104d

lib: iostream-rawlog now writes to ostreams instead of directly to fds.
author Timo Sirainen <tss@iki.fi>
date Sat, 17 Jan 2015 04:14:58 +0200
parents 8ce6d41d2d41
children
line wrap: on
line source

#ifndef ISTREAM_RAWLOG_H
#define ISTREAM_RAWLOG_H

struct istream *
i_stream_create_rawlog(struct istream *input, const char *rawlog_path,
		       int rawlog_fd, enum iostream_rawlog_flags flags);
struct istream *
i_stream_create_rawlog_from_stream(struct istream *input,
				   struct ostream *rawlog_output,
				   enum iostream_rawlog_flags flags);

#endif