16 lines
455 B
C
16 lines
455 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);
|
|
|
|
// File system driver
|
|
typedef struct {
|
|
fs_drv_open open;
|
|
fs_drv_seek seek;
|
|
fs_drv_read read;
|
|
} Fs_Driver;
|
|
|
|
#endif //EMBPART_FS_DRIVER_H
|