From 150443b014e3df20d9fcac0de88ff32574e4c471 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 17 Feb 2014 20:57:56 +0100 Subject: DatabasePlugin: add FLAG_REQUIRE_STORAGE Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin. --- src/storage/Configured.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/storage/Configured.cxx') diff --git a/src/storage/Configured.cxx b/src/storage/Configured.cxx index ab0135935..29e511c7a 100644 --- a/src/storage/Configured.cxx +++ b/src/storage/Configured.cxx @@ -76,3 +76,9 @@ CreateConfiguredStorage(Error &error) return CreateConfiguredStorageLocal(error); } + +bool +IsStorageConfigured() +{ + return config_get_string(CONF_MUSIC_DIR, nullptr) != nullptr; +} -- cgit v1.2.3