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.
This commit is contained in:
Max Kellermann
2014-01-14 23:28:36 +01:00
parent 75b847132a
commit 61b01f82ef
7 changed files with 27 additions and 5 deletions

View File

@@ -106,6 +106,14 @@ gcc_pure
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.