#ifndef OSTREAM_PRIVATE_H
#define OSTREAM_PRIVATE_H
#include "ostream.h"
#include "iostream-private.h"
struct ostream_private {
/* inheritance: */
/* methods: */
void *context);
const struct const_iovec *iov,
unsigned int iov_count);
/* data: */
int fd;
void *context;
};
struct ostream *
ATTR_NULL(2);
/* This should be called before sending data to parent stream. It makes sure
that the parent stream's output buffer doesn't become too large.
Returns 1 if more data can be safely added, 0 if not, -1 if error. */
/* Call this in flush() handler to flush the parent stream. It will call
either o_stream_flush() or o_stream_finish() depending on whether this
stream is already finished. If the parent fails, its error will be also
copied to this stream. */
#endif