filter/Chain: eliminate, just use a chain of TwoFilters instead

The ChainFilter class is extremely complicated code, and will grow to
be even more complicated when the Filter interface gets extended.
Let's just remove it; we can easily chain many TwoFilters instead.
This commit is contained in:
Max Kellermann
2021-08-26 17:15:48 +02:00
parent bd79354f32
commit 9ca64d5fb3
7 changed files with 28 additions and 263 deletions
+3 -1
View File
@@ -20,6 +20,8 @@
#ifndef MPD_FILTER_LOAD_CHAIN_HXX
#define MPD_FILTER_LOAD_CHAIN_HXX
#include <memory>
class FilterFactory;
class PreparedFilter;
@@ -35,7 +37,7 @@ class PreparedFilter;
* @param spec the filter chain specification
*/
void
filter_chain_parse(PreparedFilter &chain,
filter_chain_parse(std::unique_ptr<PreparedFilter> &chain,
FilterFactory &factory,
const char *spec);