diff options
| author | Miguel <m.i@gmx.at> | 2018-09-14 23:10:16 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-14 23:10:16 +0200 |
| commit | c4b20a0ebbde1348e1e085e2ea3be35345d92b7c (patch) | |
| tree | 611b68c1d288cace070152c628bb0e0e211bb500 /interface/fs.h | |
| parent | fdf6100721870780319bc7cc766a0bb5b4789965 (diff) | |
tuining userspace and files
Diffstat (limited to 'interface/fs.h')
| -rw-r--r-- | interface/fs.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/interface/fs.h b/interface/fs.h new file mode 100644 index 0000000..0a8b59e --- /dev/null +++ b/interface/fs.h @@ -0,0 +1,25 @@ +/** + * @file + * abstraction layer for filesystems + */ + +#ifndef FOOLOS_FS +#define FOOLOS_FS + +#include <stdint.h> + +enum FS_FILE_TYPE{ + FS_FILE_TYPE_DIR = 1, + FS_FILE_TYPE_FILE = 2 +}; + +typedef struct fs_dirent_struct +{ + uint32_t mount; //mount identifier + uint32_t inode; //inode number or similar + uint8_t type; //FILE OR DIR + char name[255]; + +}fs_dirent; + +#endif |
