| @@ -122,6 +122,12 @@ public: | |||||
| */ | */ | ||||
| unsigned int getOptionsEnabled() const noexcept; | unsigned int getOptionsEnabled() const noexcept; | ||||
| /*! | |||||
| * Get the plugin's patchbay client id.\n | |||||
| * Id 0 means no client. | |||||
| */ | |||||
| unsigned int getPatchbayClientId() const noexcept; | |||||
| /*! | /*! | ||||
| * Check if the plugin is enabled.\n | * Check if the plugin is enabled.\n | ||||
| * When a plugin is disabled, it will never be processed or managed in any way. | * When a plugin is disabled, it will never be processed or managed in any way. | ||||
| @@ -171,6 +171,11 @@ unsigned int CarlaPlugin::getOptionsEnabled() const noexcept | |||||
| return pData->options; | return pData->options; | ||||
| } | } | ||||
| unsigned int CarlaPlugin::getPatchbayClientId() const noexcept | |||||
| { | |||||
| return pData->patchbayClientId; | |||||
| } | |||||
| bool CarlaPlugin::isEnabled() const noexcept | bool CarlaPlugin::isEnabled() const noexcept | ||||
| { | { | ||||
| return pData->enabled; | return pData->enabled; | ||||
| @@ -1037,6 +1037,7 @@ const CarlaPluginInfo* carla_get_plugin_info(uint pluginId) | |||||
| info.optionsAvailable = plugin->getOptionsAvailable(); | info.optionsAvailable = plugin->getOptionsAvailable(); | ||||
| info.optionsEnabled = plugin->getOptionsEnabled(); | info.optionsEnabled = plugin->getOptionsEnabled(); | ||||
| info.patchbayClientId = plugin->getPatchbayClientId(); | |||||
| plugin->getLabel(strBufLabel); | plugin->getLabel(strBufLabel); | ||||
| info.label = carla_strdup(strBufLabel); | info.label = carla_strdup(strBufLabel); | ||||