diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-13 00:35:06 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-13 00:35:06 +0100 |
| commit | b126d01e9687e6509c9d49b1b174c95aee603a89 (patch) | |
| tree | fe05187f4f9c28ef65bf530116c20c05f1a679b8 /fs | |
| parent | e3c4f3b03aa77ea19ddf7d982d39871dbdc018c0 (diff) | |
fixing implicit functions!
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/ext2.h | 4 | ||||
| -rw-r--r-- | fs/fs.c | 2 | ||||
| -rw-r--r-- | fs/fs.h | 1 |
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); @@ -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 @@ -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 |
