#ifndef FILE_H #define FILE_H #include typedef struct { void(* seek)(int offset, int whence); void(* read)(char *buf, int len); void(* wrtie)(char *buf, int len); void(* close)(); void(* tell)(); int(* stat)(struct stat *buf); void *data; //opaque }file; #endif