2024-07-29 20:03:24 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <solanaceae/object_store/object_store.hpp>
|
|
|
|
|
|
|
|
namespace Backends {
|
|
|
|
|
2025-01-18 01:53:46 +01:00
|
|
|
struct ToxFTFilesystem : public StorageBackendIMeta, public StorageBackendIFile2 {
|
|
|
|
ObjectStore2& _os;
|
|
|
|
|
2024-07-29 20:03:24 +02:00
|
|
|
ToxFTFilesystem(
|
|
|
|
ObjectStore2& os
|
|
|
|
);
|
|
|
|
~ToxFTFilesystem(void);
|
|
|
|
|
2025-01-18 01:53:46 +01:00
|
|
|
ObjectHandle newObject(ByteSpan id, bool throw_construct = true) override;
|
2024-07-29 20:03:24 +02:00
|
|
|
|
|
|
|
std::unique_ptr<File2I> file2(Object o, FILE2_FLAGS flags) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // Backends
|
|
|
|
|