DatabasePlugin: add FLAG_REQUIRE_STORAGE
Ignore the storage configuration if FLAG_REQUIRE_STORAGE is not set in the DatabasePlugin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user