diff options
author | Radomir Dopieralski <openstack@sheep.art.pl> | 2016-08-22 16:10:34 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-08-26 12:45:21 +1000 |
commit | d29ca28288581ca788e468528ea1680b99eb49e5 (patch) | |
tree | 36fa74e4f03df4be98b7578be4ff0686aee28395 /extmod/fsusermount.h | |
parent | b0e2106fb89d108bd0249c85707b800d23d0273f (diff) | |
download | micropython-d29ca28288581ca788e468528ea1680b99eb49e5.tar.gz micropython-d29ca28288581ca788e468528ea1680b99eb49e5.zip |
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.
Diffstat (limited to 'extmod/fsusermount.h')
-rw-r--r-- | extmod/fsusermount.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/fsusermount.h b/extmod/fsusermount.h index a25434b781..e1f26f2ce8 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); |