2 Copyright (C) 2015 Tim Mayberry
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License as published by the Free
6 Software Foundation; either version 2 of the License, or (at your option)
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include <glibmm/threads.h>
23 #include "pbd/error.h"
25 #include "ardour/session_event.h"
26 #include "ardour/rc_configuration.h"
28 #include "pbd/abstract_ui.cc" // instantiate template
30 using namespace ARDOUR;
32 template class AbstractUI<TestUIRequest>;
35 : AbstractUI<TestUIRequest> ("test_ui")
38 pthread_set_name ("test_ui_thread");
40 run_loop_thread = Glib::Threads::Thread::self ();
42 set_event_loop_for_thread (this);
44 SessionEvent::create_per_thread_pool ("test", 512);
46 m_test_receiver.listen_to (PBD::error);
47 m_test_receiver.listen_to (PBD::info);
48 m_test_receiver.listen_to (PBD::fatal);
49 m_test_receiver.listen_to (PBD::warning);
51 /* We can't use VSTs here as we have a stub instead of the
52 required bits in gtk2_ardour.
54 Config->set_use_lxvst (false);
59 m_test_receiver.hangup ();
63 TestUI::do_request (TestUIRequest* req)