aboutsummaryrefslogtreecommitdiffstats
path: root/os/fs/fs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'os/fs/fs.hpp')
-rw-r--r--os/fs/fs.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/fs/fs.hpp b/os/fs/fs.hpp
index ed4a3e177..55ef664f3 100644
--- a/os/fs/fs.hpp
+++ b/os/fs/fs.hpp
@@ -65,13 +65,6 @@ namespace chibios_fs {
class BaseFileStreamInterface : public chibios_rt::BaseSequentialStreamInterface {
public:
/**
- * @brief File close and object destruction.
- *
- * @api
- */
- virtual ~BaseFileStreamInterface(void) = 0;
-
- /**
* @brief Returns an implementation dependent error code.
*
* @return An implementation-dependent error code.
@@ -191,6 +184,13 @@ namespace chibios_fs {
* @api
*/
virtual BaseFileStreamInterface *create(const char *fname) = 0;
+
+ /**
+ * @brief Closes a file.
+ *
+ * @api
+ */
+ virtual void close(BaseFileStreamInterface *file) = 0;
};
}
#endif /* _FS_HPP_ */