MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / LoadFilter

Function LoadFilter

test/run_filter.cxx:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77static std::unique_ptr<PreparedFilter>
78LoadFilter(const ConfigData &config, const char *name)
79{
80 const auto *param = config.FindBlock(ConfigBlockOption::AUDIO_FILTER,
81 "name", name);
82 if (param == nullptr)
83 throw FmtRuntimeError("No such configured filter: {}",
84 name);
85
86 return filter_configured_new(*param);
87}
88
89int main(int argc, char **argv)
90try {

Callers 1

mainFunction · 0.85

Calls 2

filter_configured_newFunction · 0.85
FindBlockMethod · 0.80

Tested by

no test coverage detected