Thomas Heijligen | 75d1ff3 | 2023-12-04 13:40:11 +0000 | [diff] [blame] | 1 | #ifndef VFS_H |
| 2 | #define VFS_H |
| 3 | |
| 4 | /** mount_fs |
| 5 | * @param fs_name Name of filesystem or NULL for auto selection |
| 6 | * @return 1 on success, 0 on failure |
| 7 | */ |
| 8 | int mount_fs(char *fs_name); |
| 9 | |
| 10 | /** file_open |
| 11 | * @param filename |
| 12 | * @return 1 on success, 0 on failure |
| 13 | */ |
| 14 | int file_open(const char *filename); |
| 15 | |
| 16 | /** file_read |
| 17 | * @param buf |
| 18 | * @param len Size of buffer / bytes to read |
| 19 | * @return Number of bytes read |
| 20 | */ |
| 21 | int file_read(void *buf, unsigned long len); |
| 22 | |
| 23 | unsigned long file_seek(unsigned long offset); |
| 24 | /**file_size |
| 25 | * @return Filesize in bytes |
| 26 | */ |
| 27 | unsigned long file_size(void); |
| 28 | |
| 29 | void file_close(void); |
| 30 | |
Thomas Heijligen | a6d6315 | 2024-01-29 13:43:40 +0000 | [diff] [blame] | 31 | int nullfs_mount(void); |
| 32 | int nullfs_read(char*, int); |
| 33 | int nullfs_dir(char*); |
| 34 | |
Nico Huber | fcd5f0e | 2024-01-23 16:22:29 +0100 | [diff] [blame] | 35 | int ext2fs_mount(void); |
| 36 | int ext2fs_read(char *buf, int len); |
| 37 | int ext2fs_dir(char *path); |
Nico Huber | cc960f2 | 2024-01-29 01:13:45 +0100 | [diff] [blame] | 38 | int iso9660_mount(void); |
| 39 | int iso9660_read(char *buf, int len); |
| 40 | int iso9660_dir(char *path); |
Nico Huber | fcd5f0e | 2024-01-23 16:22:29 +0100 | [diff] [blame] | 41 | |
Thomas Heijligen | 75d1ff3 | 2023-12-04 13:40:11 +0000 | [diff] [blame] | 42 | #endif /* VFS_H */ |