prepare VST plugins for reporting connected pins
[ardour.git] / libs / ardour / ardour / vst_plugin.h
index b5c289872cdddc21373089bcb6123b80c0eebf0c..e77ba892e3b03638f5bd50fc47f5374ca97ba75e 100644 (file)
@@ -31,6 +31,8 @@ typedef struct _VSTState VSTState;
 
 namespace ARDOUR {
 
+class PluginInsert;
+
 /** Parent class for VST plugins of both Windows and Linux varieties */
 class LIBARDOUR_API VSTPlugin : public Plugin
 {
@@ -81,6 +83,10 @@ public:
 
        int first_user_preset_index () const;
 
+       void set_insert (PluginInsert* pi, uint32_t num) { _pi = pi; _num = num; }
+       PluginInsert* plugin_insert () const { return _pi; }
+       uint32_t plugin_number () const { return _num; }
+
 protected:
        void set_plugin (AEffect *);
        gchar* get_chunk (bool) const;
@@ -97,6 +103,8 @@ protected:
        VSTHandle* _handle;
        VSTState*  _state;
        AEffect*   _plugin;
+       PluginInsert* _pi;
+       uint32_t      _num;
 
        MidiBuffer* _midi_out_buf;
 };