Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/ostream-internal.h @ 6415:b0096861c390 HEAD
Renamed struct _[io]stream to struct [io]stream_private. Also removed _
prefix from _[io]stream_*() functions.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 16 Sep 2007 12:22:27 +0300 |
parents | e4eb71ae8e96 |
children | 81806d402514 |
line wrap: on
line source
#ifndef OSTREAM_INTERNAL_H #define OSTREAM_INTERNAL_H #include "ostream.h" #include "iostream-internal.h" struct ostream_private { /* inheritance: */ struct iostream_private iostream; /* methods: */ void (*cork)(struct ostream_private *stream, bool set); int (*flush)(struct ostream_private *stream); void (*flush_pending)(struct ostream_private *stream, bool set); size_t (*get_used_size)(struct ostream_private *stream); int (*seek)(struct ostream_private *stream, uoff_t offset); ssize_t (*sendv)(struct ostream_private *stream, const struct const_iovec *iov, unsigned int iov_count); off_t (*send_istream)(struct ostream_private *outstream, struct istream *instream); /* data: */ struct ostream ostream; stream_flush_callback_t *callback; void *context; }; struct ostream *o_stream_create(struct ostream_private *_stream); #endif