os backend refactor

This commit is contained in:
Green Sky
2025-01-18 01:53:46 +01:00
parent 09300c1702
commit d91ad4bfa9
3 changed files with 15 additions and 13 deletions

View File

@@ -4,13 +4,15 @@
namespace Backends {
struct ToxFTFilesystem : public StorageBackendI {
struct ToxFTFilesystem : public StorageBackendIMeta, public StorageBackendIFile2 {
ObjectStore2& _os;
ToxFTFilesystem(
ObjectStore2& os
);
~ToxFTFilesystem(void);
ObjectHandle newObject(ByteSpan id) override;
ObjectHandle newObject(ByteSpan id, bool throw_construct = true) override;
std::unique_ptr<File2I> file2(Object o, FILE2_FLAGS flags) override;
};