diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 09:46:41 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 09:46:41 +0100 |
commit | de0ab43bc12be345d85779e444266153ff5be007 (patch) | |
tree | ce024a0c25c6fc75c65438b562b6300c06737a33 /test/run_output.cxx | |
parent | e12cc01aa4b25798a2887ac6c5e01309e744ea8b (diff) | |
download | mpd-de0ab43bc12be345d85779e444266153ff5be007.tar.gz mpd-de0ab43bc12be345d85779e444266153ff5be007.tar.xz mpd-de0ab43bc12be345d85779e444266153ff5be007.zip |
output_*: convert to C++
Diffstat (limited to '')
-rw-r--r-- | test/run_output.cxx (renamed from test/run_output.c) | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/run_output.c b/test/run_output.cxx index bbb1be7d2..2b0fdd5f0 100644 --- a/test/run_output.c +++ b/test/run_output.cxx @@ -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 * * This program is free software; you can redistribute it and/or modify @@ -18,16 +18,20 @@ */ #include "config.h" -#include "io_thread.h" +#include "OutputControl.hxx" + +extern "C" { #include "output_plugin.h" #include "output_internal.h" -#include "output_control.h" +#include "io_thread.h" #include "conf.h" #include "audio_parser.h" #include "filter_registry.h" #include "pcm_convert.h" #include "event_pipe.h" #include "idle.h" +} + #include "playlist.h" #include "player_control.h" #include "stdbin.h" @@ -103,7 +107,7 @@ load_audio_output(const char *name) param = find_named_config_block(CONF_AUDIO_OUTPUT, name); if (param == NULL) { g_printerr("No such configured audio output: %s\n", name); - return false; + return nullptr; } static struct player_control dummy_player_control; |