blob: 545592595c1ac895f159cbe7952174cd25bd08f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef FILE_H
#define FILE_H
#include <stdint.h>
typedef struct
{
void(* tell)();
void(* seek)(int offset, int whence);
void(* read)(char *buf, int len);
void(* wrtie)(char *buf, int len);
void(* close)();
int(* stat)(struct stat *buf);
void *data; //opaque
}file;
#endif
|