summaryrefslogtreecommitdiff
path: root/fs/file.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/file.h')
-rw-r--r--fs/file.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/fs/file.h b/fs/file.h
index 7ecd9c8..1f214a9 100644
--- a/fs/file.h
+++ b/fs/file.h
@@ -3,9 +3,17 @@
#include <stdint.h>
-typedef struct file_struct
+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;