storage: add struct StoragePlugin and a plugin registry

This commit is contained in:
Max Kellermann
2014-02-05 19:23:02 +01:00
parent be081929f4
commit a0088ccce1
9 changed files with 177 additions and 6 deletions

View File

@@ -23,9 +23,12 @@
#include "check.h"
#include "Compiler.h"
struct StoragePlugin;
class Storage;
class Path;
extern const StoragePlugin local_storage_plugin;
gcc_malloc gcc_nonnull_all
Storage *
CreateLocalStorage(Path base_fs);