2005-02-20 14:27:00 +00:00
|
|
|
#ifndef _STREAM_H_
|
|
|
|
#define _STREAM_H_
|
2016-03-19 15:14:35 +00:00
|
|
|
#include "first.h"
|
2005-02-20 14:27:00 +00:00
|
|
|
|
|
|
|
#include "buffer.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
char *start;
|
|
|
|
off_t size;
|
2016-04-18 03:37:40 +00:00
|
|
|
int mapped;
|
2005-02-20 14:27:00 +00:00
|
|
|
} stream;
|
|
|
|
|
2016-05-12 02:34:53 +00:00
|
|
|
int stream_open(stream *f, const buffer *fn);
|
2005-02-20 14:27:00 +00:00
|
|
|
int stream_close(stream *f);
|
|
|
|
|
|
|
|
#endif
|