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

@@ -21,7 +21,7 @@
#include "PlaylistSave.hxx"
#include "PlaylistFile.hxx"
#include "Playlist.hxx"
#include "song.h"
#include "Song.hxx"
#include "Mapper.hxx"
#include "Idle.hxx"
#include "fs/Path.hxx"
@@ -31,14 +31,14 @@
#include <glib.h>
void
playlist_print_song(FILE *file, const struct song *song)
playlist_print_song(FILE *file, const Song *song)
{
if (playlist_saveAbsolutePaths && song_in_database(song)) {
if (playlist_saveAbsolutePaths && song->IsInDatabase()) {
const Path path = map_song_fs(song);
if (!path.IsNull())
fprintf(file, "%s\n", path.c_str());
} else {
char *uri = song_get_uri(song);
char *uri = song->GetURI();
const Path uri_fs = Path::FromUTF8(uri);
g_free(uri);