diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-06 14:24:23 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-06 14:33:42 +1000 |
commit | c117effddd1f9ffd902a9712cf0ae7413696dc66 (patch) | |
tree | b14d54474360c11580a55fe4ea28a11efb2646cc /extmod/vfs_fat.h | |
parent | fadd6bbe436df73a8a0d15fa9b7e743707ee7c36 (diff) |
extmod/vfs: Introduce a C-level VFS protocol, with fast import_stat.
Following other C-level protocols, this VFS protocol is added to help
abstract away implementation details of the underlying VFS in an efficient
way. As a starting point, the import_stat function is put into this
protocol so that the VFS sub-system does not need to know about every VFS
implementation in order to do an efficient stat for importing files.
In the future it might be worth adding other functions to this protocol.
Diffstat (limited to 'extmod/vfs_fat.h')
-rw-r--r-- | extmod/vfs_fat.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/extmod/vfs_fat.h b/extmod/vfs_fat.h index e0836a555..ba2915386 100644 --- a/extmod/vfs_fat.h +++ b/extmod/vfs_fat.h @@ -58,7 +58,6 @@ extern const mp_obj_type_t mp_fat_vfs_type; extern const mp_obj_type_t mp_type_vfs_fat_fileio; extern const mp_obj_type_t mp_type_vfs_fat_textio; -mp_import_stat_t fat_vfs_import_stat(struct _fs_user_mount_t *vfs, const char *path); MP_DECLARE_CONST_FUN_OBJ_3(fat_vfs_open_obj); #endif // MICROPY_INCLUDED_EXTMOD_VFS_FAT_H |