#ifndef _DIRENT_H #define _DIRENT_H #include enum FS_FILE_TYPE { FS_FILE_TYPE_DIR = 1, FS_FILE_TYPE_FILE = 2 }; struct dirent { uint32_t d_ino; char d_name[255]; // rest is optional uint8_t type; //FILE OR DIR (FS_FILE_TYPE) int pos; // position of last read! char dirname[255]; // directory name we are traversing TODO: use inode here or similar for other systems! }; typedef struct dirent DIR; #endif