aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-01-27 22:40:15 +1100
committerDamien George <damien.p.george@gmail.com>2017-01-27 23:22:15 +1100
commit3f6b4e08e38d3205f7a5a21f7ff81ab9f3c3c497 (patch)
tree0edefa2e716fdc0d775906df037f8df5804b2d8d /extmod/vfs.h
parentf488fa29e485964d15f9f9dbfad5180c580e4b24 (diff)
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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/extmod/vfs.h b/extmod/vfs.h
index 68f0b7154..ac3ca6fc4 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);