view src/lib/ostream-internal.h @ 908:bc55266563cd HEAD

Use separate check for uint_fast32_t.
author Timo Sirainen <tss@iki.fi>
date Mon, 06 Jan 2003 13:15:26 +0200
parents fd8888f6f037
children d141e1bfdd63
line wrap: on
line source

#ifndef __OSTREAM_INTERNAL_H
#define __OSTREAM_INTERNAL_H

#include "ostream.h"
#include "iostream-internal.h"

struct _ostream {
/* inheritance: */
	struct _iostream iostream;

/* methods: */
	void (*cork)(struct _ostream *stream);
	int (*flush)(struct _ostream *stream);
	int (*have_space)(struct _ostream *stream, size_t size);
	int (*seek)(struct _ostream *stream, uoff_t offset);
	ssize_t (*send)(struct _ostream *stream, const void *data, size_t size);
	off_t (*send_istream)(struct _ostream *outstream,
			      struct istream *instream);

/* data: */
	struct ostream ostream;
};

struct ostream *_o_stream_create(struct _ostream *_stream, pool_t pool);

#endif