diff options
author | Max Kellermann <max@duempel.org> | 2014-01-14 23:28:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-17 23:51:14 +0100 |
commit | 61b01f82ef0582d194d8adfa137a09f71ce728c1 (patch) | |
tree | a0e0bc303a89bfcf6011dab17eba1d6b7adb2fa8 /src/Mapper.cxx | |
parent | 75b847132afb75d50b3c7041f298fb4372ccd1c2 (diff) | |
download | mpd-61b01f82ef0582d194d8adfa137a09f71ce728c1.tar.gz mpd-61b01f82ef0582d194d8adfa137a09f71ce728c1.tar.xz mpd-61b01f82ef0582d194d8adfa137a09f71ce728c1.zip |
Mapper: add function map_song_detach()
Make the DetachedSong(Song) conversion constructor private. Everybody
should use map_song_detach() which will take over more
responsibilities soon.
Diffstat (limited to '')
-rw-r--r-- | src/Mapper.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index c6d8a3ea5..d41fba957 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -217,6 +217,12 @@ map_detached_song_fs(const char *uri_utf8) return AllocatedPath::Build(music_dir_fs, uri_fs); } +DetachedSong +map_song_detach(const Song &song) +{ + return DetachedSong(song); +} + AllocatedPath map_song_fs(const Song &song) { |