change name of a Session method to makes its intended function clear
[ardour.git] / libs / ardour / ardour / vst_types.h
index d185d6260634c68e702f2def967e3b17ed2054f6..2e1c4074f27f603f52f964c605fce38cbf4e00ef 100644 (file)
 #ifndef __ardour_vst_types_h__
 #define __ardour_vst_types_h__
 
+#include <pthread.h>
+#include "ardour/libardour_visibility.h"
 #include "ardour/vestige/aeffectx.h"
 
-struct _VSTKey
+struct LIBARDOUR_API _VSTKey
 {
        /** virtual-key code, or 0 if this _VSTFXKey is a `character' key */
        int special;
@@ -32,22 +34,22 @@ struct _VSTKey
 
 typedef struct _VSTKey VSTKey;
 
-struct _VSTInfo 
+struct LIBARDOUR_API _VSTInfo
 {
        char  *name;
        char  *creator;
        int    UniqueID;
        char  *Category;
-    
+
        int    numInputs;
        int    numOutputs;
        int    numParams;
-       
+
        int    wantMidi;
        int    wantEvents;
        int    hasEditor;
        int    canProcessReplacing;
-       
+
        char** ParamNames;
        char** ParamLabels;
 };
@@ -56,12 +58,12 @@ typedef struct _VSTInfo VSTInfo;
 
 typedef AEffect * (* main_entry_t) (audioMasterCallback);
 
-struct _VSTHandle
+struct LIBARDOUR_API _VSTHandle
 {
        void*        dll;
        char*        name;
-       char*        nameptr;
-       
+       char*        path;
+
        main_entry_t main_entry;
 
        int          plugincnt;
@@ -69,7 +71,7 @@ struct _VSTHandle
 
 typedef struct _VSTHandle VSTHandle;
 
-struct _VSTState
+struct LIBARDOUR_API _VSTState
 {
        AEffect* plugin;
 
@@ -81,24 +83,28 @@ struct _VSTState
        void*       windows_window;
 
        int         xid;               ///< X11 XWindow
-       
+
        int         want_resize;       ///< Set to signal the plugin resized its UI
        void*       extra_data;        ///< Pointer to any extra data
-       
+
        void * event_callback_thisptr;
        void  (* eventProc) (void * event);
-       
+
        VSTHandle*  handle;
-       
-       int         width;
-       int         height;
-       int         wantIdle;
-       int         destroy;
-       int         vst_version;
-       int         has_editor;
-       
+
+       int width;
+       int height;
+       int wantIdle;
+
+       int voffset;
+       int hoffset;
+       int gui_shown;
+       int destroy;
+       int vst_version;
+       int has_editor;
+
        int         program_set_without_editor;
-       
+
        int         want_program;
        int         want_chunk;
        int         n_pending_keys;
@@ -106,7 +112,7 @@ struct _VSTState
        int         wanted_chunk_size;
        float *     want_params;
        float *     set_params;
-       
+
        VSTKey      pending_keys[16];
 
        int         dispatcher_wantcall;