aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage/plugins/LocalStorage.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 19:23:02 +0100
committerMax Kellermann <max@duempel.org>2014-02-07 23:46:15 +0100
commita0088ccce1749dbef6503fbf489f7096d824c11d (patch)
treec2a8e4ed79ee62bfb70cfbfcd1aefa035219e609 /src/storage/plugins/LocalStorage.cxx
parentbe081929f4523376db2df52903230d3b20dc54e9 (diff)
downloadmpd-a0088ccce1749dbef6503fbf489f7096d824c11d.tar.gz
mpd-a0088ccce1749dbef6503fbf489f7096d824c11d.tar.xz
mpd-a0088ccce1749dbef6503fbf489f7096d824c11d.zip
storage: add struct StoragePlugin and a plugin registry
Diffstat (limited to 'src/storage/plugins/LocalStorage.cxx')
-rw-r--r--src/storage/plugins/LocalStorage.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/storage/plugins/LocalStorage.cxx b/src/storage/plugins/LocalStorage.cxx
index 2bf430b2e..34d11569c 100644
--- a/src/storage/plugins/LocalStorage.cxx
+++ b/src/storage/plugins/LocalStorage.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "LocalStorage.hxx"
+#include "storage/StoragePlugin.hxx"
#include "storage/StorageInterface.hxx"
#include "storage/FileInfo.hxx"
#include "util/Error.hxx"
@@ -210,3 +211,8 @@ CreateLocalStorage(Path base_fs)
{
return new LocalStorage(base_fs);
}
+
+const StoragePlugin local_storage_plugin = {
+ "local",
+ nullptr,
+};