extmod/vfs: Add ability for VFS sub-system to import using VfsFat.

This commit is contained in:
Damien George
2017-01-27 17:17:54 +11:00
parent fb3ae1784e
commit 6c23c7587f
4 changed files with 15 additions and 10 deletions

View File

@@ -24,6 +24,8 @@
* THE SOFTWARE.
*/
#include "py/lexer.h"
struct _fs_user_mount_t;
extern const byte fresult_to_errno_table[20];
@@ -31,6 +33,7 @@ extern const mp_obj_type_t mp_fat_vfs_type;
struct _fs_user_mount_t *ff_get_vfs(const char **path);
mp_import_stat_t fat_vfs_import_stat(struct _fs_user_mount_t *vfs, const char *path);
mp_obj_t fatfs_builtin_open(mp_uint_t n_args, const mp_obj_t *args, mp_map_t *kwargs);
mp_obj_t fatfs_builtin_open_self(mp_obj_t self_in, mp_obj_t path, mp_obj_t mode);
MP_DECLARE_CONST_FUN_OBJ_KW(mp_builtin_open_obj);