filter/Volume: add volume_filter_prepare()
Circumvent filter_new() with a fake ConfigBlock.
This commit is contained in:
@@ -78,6 +78,12 @@ const FilterPlugin volume_filter_plugin = {
|
||||
volume_filter_init,
|
||||
};
|
||||
|
||||
PreparedFilter *
|
||||
volume_filter_prepare() noexcept
|
||||
{
|
||||
return new PreparedVolumeFilter();
|
||||
}
|
||||
|
||||
unsigned
|
||||
volume_filter_get(const Filter *_filter) noexcept
|
||||
{
|
||||
|
@@ -20,8 +20,12 @@
|
||||
#ifndef MPD_VOLUME_FILTER_PLUGIN_HXX
|
||||
#define MPD_VOLUME_FILTER_PLUGIN_HXX
|
||||
|
||||
class PreparedFilter;
|
||||
class Filter;
|
||||
|
||||
PreparedFilter *
|
||||
volume_filter_prepare() noexcept;
|
||||
|
||||
unsigned
|
||||
volume_filter_get(const Filter *filter) noexcept;
|
||||
|
||||
|
Reference in New Issue
Block a user