|
oveRTOS C++ API
C++20 RAII wrappers for the oveRTOS C API
|
Thin C++ wrappers around the oveRTOS filesystem utility functions. More...
Functions | |
| Result< void > | mount (const char *dev_path, const char *mount_point) noexcept |
| Mounts a filesystem at the given mount point. | |
| void | unmount (const char *mount_point) |
| Unmounts a previously mounted filesystem. | |
| Result< void > | unlink (const char *path) noexcept |
| Deletes a file from the filesystem. | |
| Result< void > | rename (const char *old_path, const char *new_path) noexcept |
| Renames or moves a file or directory. | |
Thin C++ wrappers around the oveRTOS filesystem utility functions.
Available when CONFIG_OVE_FS is enabled. File and directory I/O is handled by the File and Dir RAII classes below.
|
inlinenoexcept |
Mounts a filesystem at the given mount point.
| [in] | dev_path | Path to the block device or image file. |
| [in] | mount_point | Directory path at which to mount the filesystem. |
Result<void> on success; unexpected Error on failure.
|
inline |
Unmounts a previously mounted filesystem.
| [in] | mount_point | The mount point path passed to mount(). |
|
inlinenoexcept |
Deletes a file from the filesystem.
| [in] | path | Absolute path to the file. |
Result<void> on success; unexpected Error on failure (Error::NotFound, …).