From 41abf75077921766f25aae45c87aca927244e520 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 7 Nov 2018 23:37:10 +0100 Subject: Consolidate VST Plugin Info This unifies common PluginManager VST code to construct *VSTPluginInfo and also provides a dedicated is_instrument() method for VST plugins. --- libs/ardour/ardour/vst_plugin.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libs/ardour/ardour/vst_plugin.h') diff --git a/libs/ardour/ardour/vst_plugin.h b/libs/ardour/ardour/vst_plugin.h index b2189143d3..21ac6775ad 100644 --- a/libs/ardour/ardour/vst_plugin.h +++ b/libs/ardour/ardour/vst_plugin.h @@ -32,6 +32,8 @@ typedef struct _VSTState VSTState; #include "ardour/vestige/vestige.h" +struct _VSTInfo; + namespace ARDOUR { class PluginInsert; @@ -134,6 +136,15 @@ protected: bool _eff_bypassed; }; +class LIBARDOUR_API VSTPluginInfo : public PluginInfo +{ +public: + VSTPluginInfo (_VSTInfo*); + bool is_instrument () const; +protected: + bool _is_instrument; +}; + } #endif -- cgit v1.2.3