Skip to content

Commit cb8617f

Browse files
committed
comments
1 parent 3368fbc commit cb8617f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/AudioTools/Disk/VFS.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ namespace audio_tools {
88
*/
99
class 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

src/AudioTools/Disk/VFS_Multi.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)