aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage/Configured.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-17 20:57:56 +0100
committerMax Kellermann <max@duempel.org>2014-02-19 23:24:17 +0100
commit150443b014e3df20d9fcac0de88ff32574e4c471 (patch)
tree188ed2e936b6727f0c432ccb8d24871f125bb0cd /src/storage/Configured.hxx
parent9e36af791615eb8adcaee956808421271cb1ddff (diff)
downloadmpd-150443b014e3df20d9fcac0de88ff32574e4c471.tar.gz
mpd-150443b014e3df20d9fcac0de88ff32574e4c471.tar.xz
mpd-150443b014e3df20d9fcac0de88ff32574e4c471.zip
DatabasePlugin: add FLAG_REQUIRE_STORAGE
Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin.
Diffstat (limited to '')
-rw-r--r--src/storage/Configured.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/Configured.hxx b/src/storage/Configured.hxx
index ec9621c64..d78857a26 100644
--- a/src/storage/Configured.hxx
+++ b/src/storage/Configured.hxx
@@ -21,6 +21,7 @@
#define MPD_STORAGE_CONFIG_HXX
#include "check.h"
+#include "Compiler.h"
class Error;
class Storage;
@@ -33,4 +34,11 @@ class Storage;
Storage *
CreateConfiguredStorage(Error &error);
+/**
+ * Returns true if there is configuration for a #Storage instance.
+ */
+gcc_const
+bool
+IsStorageConfigured();
+
#endif