aboutsummaryrefslogtreecommitdiffstats
path: root/src/Partition.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-06 12:45:22 +0200
committerMax Kellermann <max@duempel.org>2015-08-06 12:45:45 +0200
commit84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704 (patch)
treebbc0acd726e96a2e6d946c93ddb9733ed0c171a4 /src/Partition.cxx
parent6cce3d29964a7d2912168b28b6774b10b5e43ef4 (diff)
downloadmpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.tar.gz
mpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.tar.xz
mpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.zip
Partition: add method GetDatabase()
Diffstat (limited to '')
-rw-r--r--src/Partition.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Partition.cxx b/src/Partition.cxx
index 31a64a355..1d48fefdb 100644
--- a/src/Partition.cxx
+++ b/src/Partition.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "Partition.hxx"
+#include "Instance.hxx"
#include "DetachedSong.hxx"
#include "output/MultipleOutputs.hxx"
#include "mixer/Volume.hxx"
@@ -27,6 +28,12 @@
#ifdef ENABLE_DATABASE
+const Database *
+Partition::GetDatabase(Error &error) const
+{
+ return instance.GetDatabase(error);
+}
+
void
Partition::DatabaseModified(const Database &db)
{