summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-13 00:35:06 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-13 00:35:06 +0100
commitb126d01e9687e6509c9d49b1b174c95aee603a89 (patch)
treefe05187f4f9c28ef65bf530116c20c05f1a679b8 /fs
parente3c4f3b03aa77ea19ddf7d982d39871dbdc018c0 (diff)
fixing implicit functions!
Diffstat (limited to 'fs')
-rw-r--r--fs/ext2.h4
-rw-r--r--fs/fs.c2
-rw-r--r--fs/fs.h1
3 files changed, 7 insertions, 0 deletions
diff --git a/fs/ext2.h b/fs/ext2.h
new file mode 100644
index 0000000..e74d55f
--- /dev/null
+++ b/fs/ext2.h
@@ -0,0 +1,4 @@
+#include "lib/int/stdint.h"
+int ext2_check(uint8_t *ram);
+int ext2_inode_content(char *ram,int inode_nr,uint8_t *ramdest,int max);
+int ext2_read_dir(uint8_t *ram, int inode_nr,fs_dirent *dirs,int max);
diff --git a/fs/fs.c b/fs/fs.c
index fe9219f..5f5ea75 100644
--- a/fs/fs.c
+++ b/fs/fs.c
@@ -1,6 +1,8 @@
// abstraction layer for filesystems
#include <lib/int/stdint.h>
#include "fs.h"
+#include "ext2.h"
+
//
// returns number of entries in the directory specified by name.
// fills 0-max into *dirs
diff --git a/fs/fs.h b/fs/fs.h
index c581c33..f642502 100644
--- a/fs/fs.h
+++ b/fs/fs.h
@@ -15,5 +15,6 @@ typedef struct fs_dirent_struct
uint8_t type;
char name[256];
}fs_dirent;
+int fs_readdir(const char *name,fs_dirent *dirs,int max);
#endif