summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/file.h10
-rw-r--r--fs/mount.h14
2 files changed, 23 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;
diff --git a/fs/mount.h b/fs/mount.h
new file mode 100644
index 0000000..d27195f
--- /dev/null
+++ b/fs/mount.h
@@ -0,0 +1,14 @@
+#ifndef MOUNT_H
+#define MOUNT_H
+
+typedef struct
+{
+ char *path; // where?
+ int (*getdents)(uint32_t file_desciptor, fs_dirent *entries, uint32_t max_count);
+ file get
+
+ void *data //opaque
+
+}mount;
+
+#endif