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 {
8
8
*/
9
9
class VFS {
10
10
public:
11
+ // / mount the file systems
11
12
virtual bool begin () = 0;
13
+ // / unmount the file system
12
14
virtual void end () = 0;
15
+ // / provide the mount point (root directory for the file system)
13
16
virtual void setMountPoint (const char * mp) = 0;
14
17
};
15
18
} // namespace audio_tools
Original file line number Diff line number Diff line change @@ -18,18 +18,21 @@ class VFS_Multi : public VFS {
18
18
vfs.setMountPoint (mountPoint);
19
19
vfs_vector.push_back (&vfs);
20
20
}
21
+ // / mount the file systems
21
22
bool begin () override {
22
23
bool result = true ;
23
24
for (int j = 0 ; j < vfs_vector.size (); j++) {
24
25
result = result && vfs_vector[j]->begin ();
25
26
}
26
27
return result;
27
28
}
29
+ // unmount the file systems
28
30
void end () override {
29
31
for (int j = 0 ; j < vfs_vector.size (); j++) {
30
32
vfs_vector[j]->end ();
31
33
}
32
34
}
35
+ // / Not used!
33
36
virtual void setMountPoint (const char * mp) { LOGE (" not supported" ); }
34
37
35
38
protected:
You can’t perform that action at this time.
0 commit comments