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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user