test/{read_conf,run_filter}: convert to C++

This commit is contained in:
Max Kellermann
2013-01-29 17:23:58 +01:00
parent 84eb95466b
commit eb8922f346
6 changed files with 25 additions and 5 deletions

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
*
* This program is free software; you can redistribute it and/or modify

View File

@@ -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);