From b126d01e9687e6509c9d49b1b174c95aee603a89 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Thu, 13 Nov 2014 00:35:06 +0100 Subject: fixing implicit functions! --- fs/ext2.h | 4 ++++ fs/fs.c | 2 ++ fs/fs.h | 1 + 3 files changed, 7 insertions(+) create mode 100644 fs/ext2.h (limited to 'fs') 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 #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 -- cgit v1.2.3