X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fardour%2Fplugin.h;h=be109885d7c5912fa993fe36bd9e8e113cfc0f76;hb=8a128b33d38172ae525ac798c53bc105bc4e2c64;hp=dc7dbf68e1a8badbceaacfb67fc14a960f501cb4;hpb=6dfb11c2d08201f1a27818955707590b762f5a40;p=ardour.git diff --git a/libs/ardour/ardour/plugin.h b/libs/ardour/ardour/plugin.h index dc7dbf68e1..be109885d7 100644 --- a/libs/ardour/ardour/plugin.h +++ b/libs/ardour/ardour/plugin.h @@ -231,6 +231,8 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent void set_cycles (uint32_t c) { _cycles = c; } cycles_t cycles() const { return _cycles; } + typedef std::map PropertyDescriptors; + /** Get a descrption of all properties supported by this plugin. * * Properties are distinct from parameters in that they are potentially @@ -239,7 +241,15 @@ class LIBARDOUR_API Plugin : public PBD::StatefulDestructible, public Latent * For LV2 plugins, properties are implemented by sending/receiving set/get * messages to/from the plugin via event ports. */ - virtual void get_supported_properties(std::vector& descs) {} + virtual const PropertyDescriptors& get_supported_properties() const { + static const PropertyDescriptors nothing; + return nothing; + } + + virtual const ParameterDescriptor& get_property_descriptor(uint32_t id) const { + static const ParameterDescriptor nothing; + return nothing; + } /** Set a property from the UI. *