diff options
author | Damien George <damien.p.george@gmail.com> | 2017-01-27 22:40:15 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-01-27 23:22:15 +1100 |
commit | 3f6b4e08e38d3205f7a5a21f7ff81ab9f3c3c497 (patch) | |
tree | 0edefa2e716fdc0d775906df037f8df5804b2d8d /extmod/vfs.h | |
parent | f488fa29e485964d15f9f9dbfad5180c580e4b24 (diff) | |
download | micropython-3f6b4e08e38d3205f7a5a21f7ff81ab9f3c3c497.tar.gz micropython-3f6b4e08e38d3205f7a5a21f7ff81ab9f3c3c497.zip |
extmod/vfs: Expose mp_vfs_mount_t type.
It should only be used for low-level things and with caution, for example
putting mounted VFS data in ROM or the static data section.
Diffstat (limited to 'extmod/vfs.h')
-rw-r--r-- | extmod/vfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extmod/vfs.h b/extmod/vfs.h index 68f0b71548..ac3ca6fc42 100644 --- a/extmod/vfs.h +++ b/extmod/vfs.h @@ -30,6 +30,13 @@ #include "py/lexer.h" #include "py/obj.h" +typedef struct _mp_vfs_mount_t { + const char *str; // mount point with leading / + size_t len; + mp_obj_t obj; + struct _mp_vfs_mount_t *next; +} mp_vfs_mount_t; + mp_import_stat_t mp_vfs_import_stat(const char *path); mp_obj_t mp_vfs_mount(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args); mp_obj_t mp_vfs_umount(mp_obj_t mnt_in); |