// abstraction layer for filesystems #include 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) { }