diff options
author | Max Kellermann <max@duempel.org> | 2012-09-27 22:55:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-09-28 00:08:15 +0200 |
commit | 7298b6c84652a98140805f3d4c85c3d5263c407a (patch) | |
tree | 0f4ef9e5a62c30ec3326579acd9bcb773f6d5911 /src/PlaylistSave.cxx | |
parent | acec9c4fd7f2e291bea09ffff47d55adba2f838f (diff) | |
download | mpd-7298b6c84652a98140805f3d4c85c3d5263c407a.tar.gz mpd-7298b6c84652a98140805f3d4c85c3d5263c407a.tar.xz mpd-7298b6c84652a98140805f3d4c85c3d5263c407a.zip |
stored_playlist, playlist_save: use C++ compiler
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistSave.cxx (renamed from src/playlist_save.c) | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/playlist_save.c b/src/PlaylistSave.cxx index 122eca332..00de539d9 100644 --- a/src/playlist_save.c +++ b/src/PlaylistSave.cxx @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2012 The Music Player Daemon Project * http://www.musicpd.org * * This program is free software; you can redistribute it and/or modify @@ -18,16 +18,18 @@ */ #include "config.h" -#include "playlist_save.h" -#include "playlist.h" -#include "stored_playlist.h" -#include "queue.h" +#include "PlaylistSave.hxx" +#include "PlaylistFile.h" #include "song.h" + +extern "C" { +#include "playlist.h" #include "mapper.h" #include "path.h" #include "uri.h" -#include "database.h" #include "idle.h" +} + #include "glib_compat.h" #include <glib.h> @@ -127,7 +129,7 @@ playlist_load_spl(struct playlist *playlist, struct player_control *pc, end_index = list->len; for (unsigned i = start_index; i < end_index; ++i) { - const char *temp = g_ptr_array_index(list, i); + const char *temp = (const char *)g_ptr_array_index(list, i); if ((playlist_append_uri(playlist, pc, temp, NULL)) != PLAYLIST_RESULT_SUCCESS) { /* for windows compatibility, convert slashes */ char *temp2 = g_strdup(temp); |