DEADSOFTWARE

files: remove my.h
[flatwaifu.git] / src / common / files.h
1 #ifndef COMMON_FILES_H_INCLUDED
2 #define COMMON_FILES_H_INCLUDED
4 #include <stdio.h>
5 #include "streams.h"
7 typedef struct FILE_Reader {
8 Reader base;
9 FILE *fp;
10 } FILE_Reader;
12 typedef struct FILE_Writer {
13 Writer base;
14 FILE *fp;
15 } FILE_Writer;
17 void FILE_AssignReader (FILE_Reader *r, FILE *fp);
18 int FILE_OpenReader (FILE_Reader *r, const char *name);
19 void FILE_CloseReader (FILE_Reader *r);
21 void FILE_AssignWriter (FILE_Writer *w, FILE *fp);
22 int FILE_OpenWriter (FILE_Writer *w, const char *name);
23 void FILE_CloseWriter (FILE_Writer *w);
25 #endif /* COMMON_FILES_H_INCLUDED */