summaryrefslogtreecommitdiff
path: root/fs/fs.c
diff options
context:
space:
mode:
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)
+{
+
+}
+
+