song: convert header to C++

This commit is contained in:
Max Kellermann
2013-07-28 13:25:12 +02:00
parent 43f613d9be
commit ba161ec572
91 changed files with 643 additions and 691 deletions

View File

@@ -24,7 +24,7 @@
#include "config.h"
#include "Mapper.hxx"
#include "Directory.hxx"
#include "song.h"
#include "Song.hxx"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
#include "fs/DirectoryReader.hxx"
@@ -246,12 +246,12 @@ map_detached_song_fs(const char *uri_utf8)
}
Path
map_song_fs(const struct song *song)
map_song_fs(const Song *song)
{
assert(song_is_file(song));
assert(song->IsFile());
if (song_in_database(song))
return song_is_detached(song)
if (song->IsInDatabase())
return song->IsDetached()
? map_detached_song_fs(song->uri)
: map_directory_child_fs(song->parent, song->uri);
else