diff options
author | Max Kellermann <max@duempel.org> | 2014-02-06 18:58:15 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-06 19:06:08 +0100 |
commit | 29b18d9ab7e98dddccc89614eec05b4716029e36 (patch) | |
tree | 189df09aa657726777d71a7c55925c74f08f526b /src/db/Song.hxx | |
parent | ad309cdeae3531abb14529d04fc43062a4385388 (diff) | |
download | mpd-29b18d9ab7e98dddccc89614eec05b4716029e36.tar.gz mpd-29b18d9ab7e98dddccc89614eec05b4716029e36.tar.xz mpd-29b18d9ab7e98dddccc89614eec05b4716029e36.zip |
SongUpdate: use the Storage interface, support remote files
This commit finally allows the database update to scan remote files,
e.g. using the smbclient storage plugin. However, it is not yet
possible to configure that, therefore the feature is not accessible
yet.
Diffstat (limited to '')
-rw-r--r-- | src/db/Song.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/db/Song.hxx b/src/db/Song.hxx index 0b94fe6d0..616a566eb 100644 --- a/src/db/Song.hxx +++ b/src/db/Song.hxx @@ -32,6 +32,7 @@ struct LightSong; struct Directory; class DetachedSong; +class Storage; /** * A song file inside the configured music directory. @@ -91,11 +92,12 @@ struct Song { * data, nullptr is returned. */ gcc_malloc - static Song *LoadFile(const char *path_utf8, Directory &parent); + static Song *LoadFile(Storage &storage, const char *name_utf8, + Directory &parent); void Free(); - bool UpdateFile(); + bool UpdateFile(Storage &storage); bool UpdateFileInArchive(); /** |