From 61b01f82ef0582d194d8adfa137a09f71ce728c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 23:28:36 +0100 Subject: 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. --- src/Mapper.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Mapper.hxx') diff --git a/src/Mapper.hxx b/src/Mapper.hxx index e19a9e137..18a5ca3fe 100644 --- a/src/Mapper.hxx +++ b/src/Mapper.hxx @@ -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. -- cgit v1.2.3