From d29ca28288581ca788e468528ea1680b99eb49e5 Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Mon, 22 Aug 2016 16:10:34 +0200 Subject: esp8266/modous: Add os.umount method to unmount a filesystem. This is an object-oriented approach, where uos is only a proxy for the methods on the vfs object. Some internals had to be exposed (the STATIC keyword removed) for this to work. Fixes #2338. --- extmod/fsusermount.h | 1 + 1 file changed, 1 insertion(+) (limited to 'extmod/fsusermount.h') diff --git a/extmod/fsusermount.h b/extmod/fsusermount.h index a25434b78..e1f26f2ce 100644 --- a/extmod/fsusermount.h +++ b/extmod/fsusermount.h @@ -55,6 +55,7 @@ typedef struct _fs_user_mount_t { } fs_user_mount_t; fs_user_mount_t *fatfs_mount_mkfs(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args, bool mkfs); +mp_obj_t fatfs_umount(mp_obj_t bdev_or_path_in); MP_DECLARE_CONST_FUN_OBJ(fsuser_mount_obj); MP_DECLARE_CONST_FUN_OBJ(fsuser_umount_obj); -- cgit v1.2.3