aboutsummaryrefslogtreecommitdiff
path: root/extmod/vfs_posix.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-06-06 14:24:23 +1000
committerDamien George <damien.p.george@gmail.com>2018-06-06 14:33:42 +1000
commitc117effddd1f9ffd902a9712cf0ae7413696dc66 (patch)
treeb14d54474360c11580a55fe4ea28a11efb2646cc /extmod/vfs_posix.h
parentfadd6bbe436df73a8a0d15fa9b7e743707ee7c36 (diff)
extmod/vfs: Introduce a C-level VFS protocol, with fast import_stat.
Following other C-level protocols, this VFS protocol is added to help abstract away implementation details of the underlying VFS in an efficient way. As a starting point, the import_stat function is put into this protocol so that the VFS sub-system does not need to know about every VFS implementation in order to do an efficient stat for importing files. In the future it might be worth adding other functions to this protocol.
Diffstat (limited to 'extmod/vfs_posix.h')
-rw-r--r--extmod/vfs_posix.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/extmod/vfs_posix.h b/extmod/vfs_posix.h
index 35a255ff6..00756b4c9 100644
--- a/extmod/vfs_posix.h
+++ b/extmod/vfs_posix.h
@@ -29,13 +29,10 @@
#include "py/lexer.h"
#include "py/obj.h"
-struct _mp_obj_vfs_posix_t;
-
extern const mp_obj_type_t mp_type_vfs_posix;
extern const mp_obj_type_t mp_type_vfs_posix_fileio;
extern const mp_obj_type_t mp_type_vfs_posix_textio;
-mp_import_stat_t mp_vfs_posix_import_stat(struct _mp_obj_vfs_posix_t *self, const char *path_in);
mp_obj_t mp_vfs_posix_file_open(const mp_obj_type_t *type, mp_obj_t file_in, mp_obj_t mode_in);
#endif // MICROPY_INCLUDED_EXTMOD_VFS_POSIX_H