diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:58 +0100 |
commit | eb8922f3468fe664211911c49077a4e3442b7703 (patch) | |
tree | de04b123e392464023d50d42cd9e9464ae58ec0a /test | |
parent | 84eb95466b49453b45cdfef5bed4364cf0d3a299 (diff) | |
download | mpd-eb8922f3468fe664211911c49077a4e3442b7703.tar.gz mpd-eb8922f3468fe664211911c49077a4e3442b7703.tar.xz mpd-eb8922f3468fe664211911c49077a4e3442b7703.zip |
test/{read_conf,run_filter}: convert to C++
Diffstat (limited to 'test')
-rw-r--r-- | test/read_conf.cxx (renamed from test/read_conf.c) | 2 | ||||
-rw-r--r-- | test/run_filter.cxx (renamed from test/run_filter.c) | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/test/read_conf.c b/test/read_conf.cxx index 4f6005c6f..859c8949d 100644 --- a/test/read_conf.c +++ b/test/read_conf.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 diff --git a/test/run_filter.c b/test/run_filter.cxx index 7a4bd9d80..990a57df0 100644 --- a/test/run_filter.c +++ b/test/run_filter.cxx @@ -19,7 +19,11 @@ #include "config.h" #include "conf.h" + +extern "C" { #include "audio_parser.h" +} + #include "audio_format.h" #include "filter_plugin.h" #include "pcm_volume.h" @@ -75,7 +79,7 @@ load_filter(const char *name) param = find_named_config_block("filter", name); if (param == NULL) { g_printerr("No such configured filter: %s\n", name); - return false; + return nullptr; } filter = filter_configured_new(param, &error); |