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.hxx | |
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 'src/Mapper.hxx')
-rw-r--r-- | src/Mapper.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Mapper.hxx b/src/Mapper.hxx index e19a9e137..18a5ca3fe 100644 --- a/src/Mapper.hxx +++ b/src/Mapper.hxx @@ -107,6 +107,14 @@ AllocatedPath map_directory_child_fs(const Directory &directory, const char *name); /** + * "Detach" the #Song object, i.e. convert it to a #DetachedSong + * instance. + */ +gcc_pure +DetachedSong +map_song_detach(const Song &song); + +/** * Determines the file system path of a song. This must not be a * remote song. * |