aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongLoader.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-10-22 09:34:13 +0200
committerMax Kellermann <max@duempel.org>2015-10-22 09:34:13 +0200
commit1a5b66b78dc767a4e0b721a2325957fa9ae815c2 (patch)
tree1d48b059ad7488ed76f1517ff92c32683a4bcb81 /src/SongLoader.hxx
parentbea5973e0cffe983584484ad29f900044b003093 (diff)
downloadmpd-1a5b66b78dc767a4e0b721a2325957fa9ae815c2.tar.gz
mpd-1a5b66b78dc767a4e0b721a2325957fa9ae815c2.tar.xz
mpd-1a5b66b78dc767a4e0b721a2325957fa9ae815c2.zip
SongLoader: move code to LoadFromDatabase()
Avoids the recursion in LoadFile().
Diffstat (limited to '')
-rw-r--r--src/SongLoader.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SongLoader.hxx b/src/SongLoader.hxx
index 73f9b1f7b..33baa6953 100644
--- a/src/SongLoader.hxx
+++ b/src/SongLoader.hxx
@@ -71,6 +71,9 @@ public:
private:
gcc_nonnull_all
+ DetachedSong *LoadFromDatabase(const char *uri, Error &error) const;
+
+ gcc_nonnull_all
DetachedSong *LoadFile(const char *path_utf8, Error &error) const;
};