diff options
author | Max Kellermann <max@duempel.org> | 2015-08-06 12:45:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-06 12:45:45 +0200 |
commit | 84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704 (patch) | |
tree | bbc0acd726e96a2e6d946c93ddb9733ed0c171a4 /src/Partition.hxx | |
parent | 6cce3d29964a7d2912168b28b6774b10b5e43ef4 (diff) | |
download | mpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.tar.gz mpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.tar.xz mpd-84e09aa8dd3a7ac1e6fd8945a3e22b2011e91704.zip |
Partition: add method GetDatabase()
Diffstat (limited to '')
-rw-r--r-- | src/Partition.hxx | 7 |
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. */ |