blob: d811def0c466c83a017e2feec29b9fdf49ed9a7b [file] [log] [blame]
#ifndef VFS_H
#define VFS_H
/** mount_fs
* @param fs_name Name of filesystem or NULL for auto selection
* @return 1 on success, 0 on failure
*/
int mount_fs(char *fs_name);
/** file_open
* @param filename
* @return 1 on success, 0 on failure
*/
int file_open(const char *filename);
/** file_read
* @param buf
* @param len Size of buffer / bytes to read
* @return Number of bytes read
*/
int file_read(void *buf, unsigned long len);
unsigned long file_seek(unsigned long offset);
/**file_size
* @return Filesize in bytes
*/
unsigned long file_size(void);
void file_close(void);
int ext2fs_mount(void);
int ext2fs_read(char *buf, int len);
int ext2fs_dir(char *path);
#endif /* VFS_H */