File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ namespace audio_tools {
88 */
99class VFS {
1010 public:
11+ // / mount the file systems
1112 virtual bool begin () = 0;
13+ // / unmount the file system
1214 virtual void end () = 0;
15+ // / provide the mount point (root directory for the file system)
1316 virtual void setMountPoint (const char * mp) = 0;
1417};
1518} // namespace audio_tools
Original file line number Diff line number Diff line change @@ -18,18 +18,21 @@ class VFS_Multi : public VFS {
1818 vfs.setMountPoint (mountPoint);
1919 vfs_vector.push_back (&vfs);
2020 }
21+ // / mount the file systems
2122 bool begin () override {
2223 bool result = true ;
2324 for (int j = 0 ; j < vfs_vector.size (); j++) {
2425 result = result && vfs_vector[j]->begin ();
2526 }
2627 return result;
2728 }
29+ // unmount the file systems
2830 void end () override {
2931 for (int j = 0 ; j < vfs_vector.size (); j++) {
3032 vfs_vector[j]->end ();
3133 }
3234 }
35+ // / Not used!
3336 virtual void setMountPoint (const char * mp) { LOGE (" not supported" ); }
3437
3538 protected:
You can’t perform that action at this time.
0 commit comments