summaryrefslogtreecommitdiff
path: root/stage3/fs.h
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-15 16:10:22 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-15 16:11:38 +0100
commit2298d17186cb0e58a96d285384de431902da9b1e (patch)
tree635d642931d9f55e701639ee3b3707e0e28a805e /stage3/fs.h
parent8a25a2935a60e65fcb3e2b715bada858f5fcd6a2 (diff)
downloadcuddles-2298d17186cb0e58a96d285384de431902da9b1e.tar.xz
big chungus
* fix a heap corruption bug * add qemu support * add an ATA driver * add an USTAR read-only file system * boot from disk instead of floppy * font rendering * image rendering * PCI enumeration * init script
Diffstat (limited to 'stage3/fs.h')
-rw-r--r--stage3/fs.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/stage3/fs.h b/stage3/fs.h
new file mode 100644
index 0000000..b585577
--- /dev/null
+++ b/stage3/fs.h
@@ -0,0 +1,13 @@
+#ifndef FS_H
+#define FS_H
+
+#include "def.h"
+
+typedef struct {
+ usize len;
+ void *data;
+} file;
+
+file fs_read(const char *filename);
+
+#endif