diff options
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 |
