VCV Rack API v2
|
Loads and manages Rack plugins. More...
Classes | |
struct | Model |
Type information for a module. More... | |
struct | Plugin |
Functions | |
PRIVATE void | init () |
PRIVATE void | destroy () |
PRIVATE void | settingsMergeJson (json_t *rootJ) |
Plugin * | getPlugin (const std::string &pluginSlug) |
Finds a loaded Plugin by slug. | |
Plugin * | getPluginFallback (const std::string &pluginSlug) |
Finds a loaded Plugin by slug, or a fallback plugin if exists. | |
Model * | getModel (const std::string &pluginSlug, const std::string &modelSlug) |
Finds a loaded Model by plugin and model slug. | |
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. | |
Model * | modelFromJson (json_t *moduleJ) |
Creates a Model from a JSON module object. | |
bool | isSlugValid (const std::string &slug) |
Checks that the slug contains only alphanumeric characters, "-", and "_". | |
std::string | normalizeSlug (const std::string &slug) |
Returns a string containing only the valid slug characters. | |
Variables | |
std::string | pluginsPath |
Path to plugins installation dir. | |
std::vector< Plugin * > | plugins |
Loads and manages Rack plugins.
PRIVATE void rack::plugin::init | ( | ) |
PRIVATE void rack::plugin::destroy | ( | ) |
PRIVATE void rack::plugin::settingsMergeJson | ( | json_t * | rootJ | ) |
Plugin * rack::plugin::getPluginFallback | ( | const std::string & | pluginSlug | ) |
Finds a loaded Plugin by slug, or a fallback plugin if exists.
Model * rack::plugin::getModel | ( | const std::string & | pluginSlug, |
const std::string & | modelSlug ) |
Finds a loaded Model by plugin and model slug.
Model * rack::plugin::getModelFallback | ( | const std::string & | pluginSlug, |
const std::string & | modelSlug ) |
Finds a loaded Model by plugin and model slug, or a fallback model if exists.
Model * rack::plugin::modelFromJson | ( | json_t * | moduleJ | ) |
bool rack::plugin::isSlugValid | ( | const std::string & | slug | ) |
Checks that the slug contains only alphanumeric characters, "-", and "_".
std::string rack::plugin::normalizeSlug | ( | const std::string & | slug | ) |
Returns a string containing only the valid slug characters.
|
extern |
Path to plugins installation dir.
|
extern |