embpart/fs/fs_driver.h
Wiesner András d7a5a49394 - Sequential file reading works
- FAT32 file system driver is defined
- Automount implemented
- Unified file operations implemented
- File listing implemented
2023-11-11 18:03:23 +01:00

18 lines
543 B
C

#ifndef EMBPART_FS_DRIVER_H
#define EMBPART_FS_DRIVER_H
typedef int (*fs_drv_open)(const void * ctrl, const char * path, void * file);
typedef int (*fs_drv_seek)(const void * ctrl, void * file, unsigned long pos);
typedef int (*fs_drv_read)(const void * ctrl, void * file, unsigned long len, void * buf);
typedef int (*fs_drv_list)(const void * ctrl, const char * path);
// File system driver
typedef struct {
fs_drv_open open;
fs_drv_seek seek;
fs_drv_read read;
fs_drv_list list;
} Fs_Driver;
#endif //EMBPART_FS_DRIVER_H