diff options
author | Max Kellermann <max@duempel.org> | 2014-02-01 01:11:50 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-04 00:57:43 +0100 |
commit | 29072797ca5a397b2878e458db22cb5dcc7dfe4d (patch) | |
tree | 442384db532c0d5d5affa5efa2c415efffe76c0e /src/db/DatabaseSong.hxx | |
parent | db69ceade64c1e1a9c3d7a7c634f8b8b05ce73b9 (diff) | |
download | mpd-29072797ca5a397b2878e458db22cb5dcc7dfe4d.tar.gz mpd-29072797ca5a397b2878e458db22cb5dcc7dfe4d.tar.xz mpd-29072797ca5a397b2878e458db22cb5dcc7dfe4d.zip |
db/DatabasePlaylist: pass Database reference around
Reduce global variable usage, move to frontend code.
Diffstat (limited to '')
-rw-r--r-- | src/db/DatabaseSong.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/DatabaseSong.hxx b/src/db/DatabaseSong.hxx index 0200af6b8..1197068bc 100644 --- a/src/db/DatabaseSong.hxx +++ b/src/db/DatabaseSong.hxx @@ -22,6 +22,7 @@ #include "Compiler.h" +class Database; class DetachedSong; class Error; @@ -33,6 +34,6 @@ class Error; */ gcc_malloc gcc_nonnull_all DetachedSong * -DatabaseDetachSong(const char *uri, Error &error); +DatabaseDetachSong(const Database &db, const char *uri, Error &error); #endif |