aboutsummaryrefslogtreecommitdiffstats
path: root/test/read_tags.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 10:15:09 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 10:15:09 +0100
commitd5516dee005075a7569890c0cea4235659687ea1 (patch)
tree969046fc869f266103afc06bd2e8e1bd9c201d33 /test/read_tags.c
parent06e0741a5293b1db2ef5f2b5778e3669f2dea70e (diff)
downloadmpd-d5516dee005075a7569890c0cea4235659687ea1.tar.gz
mpd-d5516dee005075a7569890c0cea4235659687ea1.tar.xz
mpd-d5516dee005075a7569890c0cea4235659687ea1.zip
input_stream: convert to C++ (internally)
Diffstat (limited to '')
-rw-r--r--test/read_tags.cxx (renamed from test/read_tags.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/read_tags.c b/test/read_tags.cxx
index 43335ec2f..9fabddc6b 100644
--- a/test/read_tags.c
+++ b/test/read_tags.cxx
@@ -18,14 +18,18 @@
*/
#include "config.h"
+extern "C" {
#include "io_thread.h"
#include "decoder_list.h"
+}
#include "decoder_api.h"
-#include "input_init.h"
+#include "InputInit.hxx"
#include "input_stream.h"
#include "audio_format.h"
+extern "C" {
#include "tag_ape.h"
#include "tag_id3.h"
+}
#include "tag_handler.h"
#include <glib.h>
@@ -133,9 +137,9 @@ print_pair(const char *name, const char *value, G_GNUC_UNUSED void *ctx)
}
static const struct tag_handler print_handler = {
- .duration = print_duration,
- .tag = print_tag,
- .pair = print_pair,
+ print_duration,
+ print_tag,
+ print_pair,
};
int main(int argc, char **argv)