diff options
author | Max Kellermann <max@duempel.org> | 2015-10-22 09:34:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-22 09:34:13 +0200 |
commit | 1a5b66b78dc767a4e0b721a2325957fa9ae815c2 (patch) | |
tree | 1d48b059ad7488ed76f1517ff92c32683a4bcb81 /src/SongLoader.hxx | |
parent | bea5973e0cffe983584484ad29f900044b003093 (diff) | |
download | mpd-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.hxx | 3 |
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; }; |