diff options
author | Max Kellermann <max@duempel.org> | 2015-10-22 09:29:02 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-10-22 09:39:28 +0200 |
commit | f072cbbba765e3b972655880970d65760a208843 (patch) | |
tree | b2065cf07d599f7f44c39bb3c3537f8f72691a73 /src/SongLoader.hxx | |
parent | 1a5b66b78dc767a4e0b721a2325957fa9ae815c2 (diff) | |
download | mpd-f072cbbba765e3b972655880970d65760a208843.tar.gz mpd-f072cbbba765e3b972655880970d65760a208843.tar.xz mpd-f072cbbba765e3b972655880970d65760a208843.zip |
LocateUri: new library to classify URIs in a standard way
Diffstat (limited to 'src/SongLoader.hxx')
-rw-r--r-- | src/SongLoader.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/SongLoader.hxx b/src/SongLoader.hxx index 33baa6953..1c1300f11 100644 --- a/src/SongLoader.hxx +++ b/src/SongLoader.hxx @@ -29,7 +29,9 @@ class Client; class Database; class Storage; class DetachedSong; +class Path; class Error; +struct LocatedUri; /** * A utility class that loads a #DetachedSong object by its URI. If @@ -66,6 +68,8 @@ public: } #endif + DetachedSong *LoadSong(const LocatedUri &uri, Error &error) const; + gcc_nonnull_all DetachedSong *LoadSong(const char *uri_utf8, Error &error) const; @@ -74,7 +78,8 @@ private: DetachedSong *LoadFromDatabase(const char *uri, Error &error) const; gcc_nonnull_all - DetachedSong *LoadFile(const char *path_utf8, Error &error) const; + DetachedSong *LoadFile(const char *path_utf8, Path path_fs, + Error &error) const; }; #endif |