+#ifdef MACVST_SUPPORT
+static bool
+vstfx_instantiate_and_get_info_mac (
+ const char* dllpath, vector<VSTInfo*> *infos, int uniqueID)
+{
+ printf("vstfx_instantiate_and_get_info_mac %s\n", dllpath);
+ VSTHandle* h;
+ VSTState* vstfx;
+ if (!(h = mac_vst_load (dllpath))) {
+ PBD::warning << string_compose (_("Cannot get MacVST information from '%1': load failed."), dllpath) << endmsg;
+ return false;
+ }
+
+ vstfx_current_loading_id = uniqueID;
+
+ if (!(vstfx = mac_vst_instantiate (h, simple_master_callback, 0))) {
+ mac_vst_unload (h);
+ PBD::warning << string_compose (_("Cannot get MacVST information from '%1': instantiation failed."), dllpath) << endmsg;
+ return false;
+ }
+
+ vstfx_current_loading_id = 0;
+
+ vstfx_info_from_plugin (dllpath, vstfx, infos, ARDOUR::MacVST);