From 573a28a2ea7534a1e85d2e0a3aa3d06b1218e08c Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 22 May 2015 09:14:16 +0200 Subject: started implementing files --- fs/file.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'fs/file.h') 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 -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; -- cgit v1.2.3