diff options
author | Max Kellermann <max@duempel.org> | 2014-02-01 00:26:34 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 11:22:33 +0100 |
commit | cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9 (patch) | |
tree | 7368011b1ecf5ae6db6dcafb676fddf03ff9d823 /src/PlaylistPrint.cxx | |
parent | f00710a57e80738c33255eaa1347ab776fbce869 (diff) | |
download | mpd-cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9.tar.gz mpd-cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9.tar.xz mpd-cf6281a5a758e4b93d67f7fd5804a8cff60ddbf9.zip |
Instance: add Database attribute
Move from db/DatabaseGlue.cxx, eliminating global variable.
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistPrint.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx index 377da25c9..2e29ac6a2 100644 --- a/src/PlaylistPrint.cxx +++ b/src/PlaylistPrint.cxx @@ -23,7 +23,8 @@ #include "Playlist.hxx" #include "queue/QueuePrint.hxx" #include "SongPrint.hxx" -#include "db/DatabaseGlue.hxx" +#include "Partition.hxx" +#include "Instance.hxx" #include "db/DatabasePlugin.hxx" #include "client/Client.hxx" #include "input/InputStream.hxx" @@ -115,7 +116,7 @@ playlist_print_changes_position(Client &client, static bool PrintSongDetails(Client &client, const char *uri_utf8) { - const Database *db = GetDatabase(); + const Database *db = client.partition.instance.database; if (db == nullptr) return false; |