MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / getPlugin

Function getPlugin

src/override/plugin.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56Plugin* getPlugin(const std::string& pluginSlug) {
57 if (pluginSlug.empty())
58 return NULL;
59
60 auto it = std::find_if(plugins.begin(), plugins.end(), [=](Plugin* p) {
61 return p->slug == pluginSlug;
62 });
63 if (it != plugins.end())
64 return *it;
65 return NULL;
66}
67
68
69Plugin* getPluginFallback(const std::string& pluginSlug) {

Callers 4

getPluginFallbackFunction · 0.85
getModelFunction · 0.85
StaticPluginLoaderMethod · 0.85
StaticPluginLoaderMethod · 0.85

Calls 3

emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected