song_update: convert to C++

This commit is contained in:
Max Kellermann 2013-01-02 22:42:12 +01:00
parent 9ceb8a717a
commit 43cbbe111b
2 changed files with 10 additions and 3 deletions

View File

@ -309,7 +309,7 @@ src_mpd_SOURCES = \
src/replay_gain_info.c \ src/replay_gain_info.c \
src/sig_handlers.c \ src/sig_handlers.c \
src/Song.cxx \ src/Song.cxx \
src/song_update.c \ src/SongUpdate.cxx \
src/SongPrint.cxx src/SongPrint.hxx \ src/SongPrint.cxx src/SongPrint.hxx \
src/SongSave.cxx src/SongSave.hxx \ src/SongSave.cxx src/SongSave.hxx \
src/resolver.c src/resolver.h \ src/resolver.c src/resolver.h \

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2003-2011 The Music Player Daemon Project * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -18,9 +18,15 @@
*/ */
#include "config.h" /* must be first for large file support */ #include "config.h" /* must be first for large file support */
extern "C" {
#include "song.h" #include "song.h"
#include "uri.h" #include "uri.h"
}
#include "directory.h" #include "directory.h"
extern "C" {
#include "mapper.h" #include "mapper.h"
#include "decoder_list.h" #include "decoder_list.h"
#include "decoder_plugin.h" #include "decoder_plugin.h"
@ -29,6 +35,7 @@
#include "tag.h" #include "tag.h"
#include "tag_handler.h" #include "tag_handler.h"
#include "input_stream.h" #include "input_stream.h"
}
#include <glib.h> #include <glib.h>
@ -187,7 +194,7 @@ song_file_update_inarchive(struct song *song)
if (suffix == NULL) if (suffix == NULL)
return false; return false;
plugin = decoder_plugin_from_suffix(suffix, false); plugin = decoder_plugin_from_suffix(suffix, nullptr);
if (plugin == NULL) if (plugin == NULL)
return false; return false;