summaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-10-22 09:51:03 +0200
committerMichal Idziorek <m.i@gmx.at>2014-10-22 09:51:03 +0200
commit430112c8d7224bf9d1e192adfc9fb55e7a044f83 (patch)
treecd6a1ba50070076861c73861a8410e2e288d9877 /fs/fs.c
parentd272f7fda985b266588af8ba6091c97e44862287 (diff)
started abstraction for filesystems
Diffstat (limited to 'fs/fs.c')
-rw-r--r--fs/fs.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/fs/fs.c b/fs/fs.c
new file mode 100644
index 0000000..a213861
--- /dev/null
+++ b/fs/fs.c
@@ -0,0 +1,32 @@
+// abstraction layer for filesystems
+#include <lib/int/stdint.h>
+
+enum FS_FILE_TYPE{
+
+ FS_FILE_TYPE_DIR = 1,
+ FS_FILE_TYPE_FILE = 2
+};
+
+typedef struct fs_file_struct
+{
+ int type;
+ char name[256];
+
+}fs_file;
+
+int fs_list(char *path, fs_file *list);
+{
+
+}
+
+int fs_read(char *path, uint8_t *buf)
+{
+
+}
+
+int fs_mount(char *dev, char *dir)
+{
+
+}
+
+