diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-10-22 09:51:03 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-10-22 09:51:03 +0200 |
| commit | 430112c8d7224bf9d1e192adfc9fb55e7a044f83 (patch) | |
| tree | cd6a1ba50070076861c73861a8410e2e288d9877 /fs/fs.c | |
| parent | d272f7fda985b266588af8ba6091c97e44862287 (diff) | |
started abstraction for filesystems
Diffstat (limited to 'fs/fs.c')
| -rw-r--r-- | fs/fs.c | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +// abstraction layer for filesystems +#include <lib/int/stdint.h> + +enum FS_FILE_TYPE{ + + FS_FILE_TYPE_DIR = 1, + FS_FILE_TYPE_FILE = 2 +}; + +typedef struct fs_file_struct +{ + int type; + char name[256]; + +}fs_file; + +int fs_list(char *path, fs_file *list); +{ + +} + +int fs_read(char *path, uint8_t *buf) +{ + +} + +int fs_mount(char *dev, char *dir) +{ + +} + + |
