23Model*
getModel(
const std::string& pluginSlug,
const std::string& modelSlug);
39extern std::vector<Plugin*>
plugins;
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:32
std::string plugin(plugin::Plugin *plugin, std::string filename="")
Returns the path of an asset in the plugin's dir.
Model * getModel(const std::string &pluginSlug, const std::string &modelSlug)
Finds a loaded Model by plugin and model slug.
std::vector< Plugin * > plugins
std::string normalizeSlug(const std::string &slug)
Returns a string containing only the valid slug characters.
bool isSlugValid(const std::string &slug)
Checks that the slug contains only alphanumeric characters, "-", and "_".
Model * getModelFallback(const std::string &pluginSlug, const std::string &modelSlug)
Finds a loaded Model by plugin and model slug, or a fallback model if exists.
PRIVATE void settingsMergeJson(json_t *rootJ)
Plugin * getPlugin(const std::string &pluginSlug)
Finds a loaded Plugin by slug.
std::string pluginsPath
Path to plugins installation dir.
Plugin * getPluginFallback(const std::string &pluginSlug)
Finds a loaded Plugin by slug, or a fallback plugin if exists.
Model * modelFromJson(json_t *moduleJ)
Creates a Model from a JSON module object.
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
Type information for a module.
Definition Model.hpp:34