a) dynamically loadable control surface support
[ardour.git] / libs / surfaces / tranzport / interface.cc
1 #include <ardour/control_protocol.h>
2
3 #include "tranzport_control_protocol.h"
4
5 using namespace ARDOUR;
6
7 ControlProtocol*
8 new_tranzport_protocol (ControlProtocolDescriptor* descriptor, Session* s)
9 {
10         return new TranzportControlProtocol (*s);
11 }
12
13 void
14 delete_tranzport_protocol (ControlProtocolDescriptor* descriptor, ControlProtocol* cp)
15 {
16         delete cp;
17 }
18
19 static ControlProtocolDescriptor tranzport_descriptor = {
20         name : "Tranzport",
21         ptr : 0,
22         module : 0,
23         initialize : new_tranzport_protocol,
24         destroy : delete_tranzport_protocol
25 };
26         
27
28 extern "C" {
29 ControlProtocolDescriptor* 
30 protocol_descriptor () {
31         return &tranzport_descriptor;
32 }
33 }
34