aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Partition.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx
index 6f340d0d9..dfc4ac19a 100644
--- a/src/Partition.hxx
+++ b/src/Partition.hxx
@@ -177,6 +177,13 @@ struct Partition final : private PlayerListener, private MixerListener {
#ifdef ENABLE_DATABASE
/**
+ * Returns the global #Database instance. May return nullptr
+ * if this MPD configuration has no database (no
+ * music_directory was configured).
+ */
+ const Database *GetDatabase(Error &error) const;
+
+ /**
* The database has been modified. Propagate the change to
* all subsystems.
*/