summaryrefslogtreecommitdiff
path: root/fs/file.h
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-22 09:14:16 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-22 09:14:16 +0200
commit573a28a2ea7534a1e85d2e0a3aa3d06b1218e08c (patch)
tree4d23995749d02459951bb386be238ad491cda45f /fs/file.h
parentbd5c0694678df3361eddaedcf9ceca6db687e010 (diff)
started implementing files
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;