aboutsummaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorMarvin Borner2020-07-25 00:12:57 +0200
committerMarvin Borner2020-07-25 00:12:57 +0200
commit16c5b566d04e6cbf63f871bd569d4636a9e90d62 (patch)
tree3cc851f5608b33f7c0f690ef319e4aa5e6c2ebda /src/inc
parente83d78eb48eaaeca83bb21a9da4f98904eed4671 (diff)
Added fs wrapper
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/inc/fs.h b/src/inc/fs.h
index 222939b..b521ca6 100644
--- a/src/inc/fs.h
+++ b/src/inc/fs.h
@@ -73,6 +73,7 @@ struct inode {
u32 fragment_addr;
u8 os_specific_val2[12];
};
+
#define INODE_SIZE (sizeof(struct inode))
struct dirent {
@@ -93,7 +94,8 @@ struct file {
int find_inode(const char *name, int dir_inode);
struct inode *get_inode(int i);
-void *read_file(struct inode *in);
+void *read_inode(struct inode *in);
+void *read_file(const char *name, int dir_inode);
void ls_root(); // DEMO ;)
#endif