storage/Plugin: return std::unique_ptr<Storage>

This commit is contained in:
Max Kellermann
2018-01-02 16:11:17 +01:00
parent 3f4f7b0a53
commit 3c5e4e2788
15 changed files with 46 additions and 32 deletions

View File

@@ -23,14 +23,16 @@
#include "check.h"
#include "Compiler.h"
#include <memory>
struct StoragePlugin;
class Storage;
class Path;
extern const StoragePlugin local_storage_plugin;
gcc_malloc gcc_nonnull_all
Storage *
gcc_nonnull_all
std::unique_ptr<Storage>
CreateLocalStorage(Path base_fs);
#endif