aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateSong.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
commita654f146d1b39a363cb10853a7670ef099570e54 (patch)
tree2c171646333f0b529655b57bee2c1eb6a3dd7c1c /src/UpdateSong.cxx
parent67b46a151da4ca6f81fa63d30e2c629da352ec45 (diff)
downloadmpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.gz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.xz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.zip
update: convert to C++
Diffstat (limited to '')
-rw-r--r--src/UpdateSong.cxx (renamed from src/update_song.c)17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/update_song.c b/src/UpdateSong.cxx
index 1126ad115..8241d46f2 100644
--- a/src/update_song.c
+++ b/src/UpdateSong.cxx
@@ -18,17 +18,20 @@
*/
#include "config.h" /* must be first for large file support */
-#include "update_song.h"
-#include "update_internal.h"
-#include "update_io.h"
-#include "update_db.h"
-#include "update_container.h"
+#include "UpdateSong.hxx"
+#include "UpdateInternal.hxx"
+#include "UpdateIO.hxx"
+#include "UpdateDatabase.hxx"
+#include "UpdateContainer.hxx"
#include "db_lock.h"
#include "directory.h"
#include "song.h"
-#include "decoder_list.h"
#include "decoder_plugin.h"
+extern "C" {
+#include "decoder_list.h"
+}
+
#include <glib.h>
#include <unistd.h>
@@ -104,7 +107,7 @@ update_song_file(struct directory *directory,
const struct stat *st)
{
const struct decoder_plugin *plugin =
- decoder_plugin_from_suffix(suffix, false);
+ decoder_plugin_from_suffix(suffix, nullptr);
if (plugin == NULL)
return false;