diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-06-21 23:01:03 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-06-21 23:01:03 +0000 |
commit | 912da52a539981193941d8739fa6f103b5e406db (patch) | |
tree | bc83e26b458af139a4e8a06d4c6e0650921f7157 /gtk2_ardour/main.cc | |
parent | 69ac3569ed061345bc9a2d8e13b6201dae2ab812 (diff) |
the return of VST support
git-svn-id: svn://localhost/ardour2/trunk@629 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/main.cc')
-rw-r--r-- | gtk2_ardour/main.cc | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gtk2_ardour/main.cc b/gtk2_ardour/main.cc index 2bbae39568..0a07da0cd2 100644 --- a/gtk2_ardour/main.cc +++ b/gtk2_ardour/main.cc @@ -53,6 +53,7 @@ using namespace Gtk; using namespace GTK_ARDOUR; using namespace ARDOUR; +using namespace PBD; using namespace sigc; TextReceiver text_receiver ("ardour"); @@ -361,9 +362,17 @@ To create it from the command line, start ardour as \"ardour --new %1"), path) return true; } +#ifdef VST_SUPPORT +/* this is called from the entry point of a wine-compiled + executable that is linked against gtk2_ardour built + as a shared library. +*/ +extern "C" { +int ardour_main (int argc, char *argv[]) +#else +int main (int argc, char *argv[]) +#endif -int -main (int argc, char *argv[]) { ARDOUR::AudioEngine *engine; vector<Glib::ustring> null_file_list; @@ -463,6 +472,9 @@ main (int argc, char *argv[]) ARDOUR::cleanup (); shutdown (0); - /* just another commit forcing change */ + return 0; } +#ifdef VST_SUPPORT +} // end of extern C block +#endif |