ardour
test_ui.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2015 Tim Mayberry
3 
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)
7  any later version.
8 
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
12  for more details.
13 
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.
17 */
18 
19 #include "test_ui.h"
20 
21 #include <glibmm/threads.h>
22 
23 #include "pbd/error.h"
24 
25 #include "ardour/session_event.h"
27 
28 #include "pbd/abstract_ui.cc" // instantiate template
29 
30 using namespace ARDOUR;
31 
32 template class AbstractUI<TestUIRequest>;
33 
35  : AbstractUI<TestUIRequest> ("test_ui")
36 {
37 
38  pthread_set_name ("test_ui_thread");
39 
40  run_loop_thread = Glib::Threads::Thread::self ();
41 
43 
44  SessionEvent::create_per_thread_pool ("test", 512);
45 
50 
51  /* We can't use VSTs here as we have a stub instead of the
52  required bits in gtk2_ardour.
53  */
54  Config->set_use_lxvst (false);
55 }
56 
58 {
60 }
61 
62 void
64 {
65 
66 }
LIBPBD_API Transmitter fatal
static void set_event_loop_for_thread(EventLoop *ui)
Definition: event_loop.cc:36
void hangup()
Definition: receiver.cc:38
LIBPBD_API Transmitter error
LIBPBD_API Transmitter warning
TestUI()
Definition: test_ui.cc:34
virtual void do_request(TestUIRequest *)
Definition: test_ui.cc:63
LIBARDOUR_API RCConfiguration * Config
Definition: globals.cc:119
Definition: amp.h:29
~TestUI()
Definition: test_ui.cc:57
LIBPBD_API void pthread_set_name(const char *name)
LIBPBD_API Transmitter info
Glib::Threads::Thread * run_loop_thread
Definition: base_ui.h:79
void listen_to(Transmitter &)
Definition: receiver.cc:51
TestReceiver m_test_receiver
Definition: test_ui.h:46