VCV Rack API v2
Loading...
Searching...
No Matches
plugin.hpp File Reference
#include <vector>
#include <common.hpp>
#include <plugin/Plugin.hpp>
#include <plugin/Model.hpp>
Include dependency graph for plugin.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  rack
 Root namespace for the Rack API.
 
namespace  rack::plugin
 Loads and manages Rack plugins.
 

Functions

PRIVATE void rack::plugin::init ()
 
PRIVATE void rack::plugin::destroy ()
 
PRIVATE void rack::plugin::settingsMergeJson (json_t *rootJ)
 
Pluginrack::plugin::getPlugin (const std::string &pluginSlug)
 Finds a loaded Plugin by slug.
 
Pluginrack::plugin::getPluginFallback (const std::string &pluginSlug)
 Finds a loaded Plugin by slug, or a fallback plugin if exists.
 
Modelrack::plugin::getModel (const std::string &pluginSlug, const std::string &modelSlug)
 Finds a loaded Model by plugin and model slug.
 
Modelrack::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.
 
Modelrack::plugin::modelFromJson (json_t *moduleJ)
 Creates a Model from a JSON module object.
 
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.
 

Variables

std::string rack::plugin::pluginsPath
 Path to plugins installation dir.
 
std::vector< Plugin * > rack::plugin::plugins