1 #ifndef ardour_control_protocol_manager_h
2 #define ardour_control_protocol_manager_h
7 #include <pbd/lockmonitor.h>
11 class ControlProtocol;
12 class ControlProtocolDescriptor;
14 struct ControlProtocolInfo {
15 ControlProtocolDescriptor* descriptor;
16 ControlProtocol* protocol;
21 class ControlProtocolManager
24 ControlProtocolManager ();
25 ~ControlProtocolManager ();
27 static ControlProtocolManager& instance() { return *_instance; }
29 void discover_control_protocols (std::string search_path);
30 void startup (Session&);
32 ControlProtocol* instantiate (Session&, std::string protocol_name);
33 int teardown (std::string protocol_name);
36 static ControlProtocolManager* _instance;
38 PBD::Lock protocols_lock;
39 std::list<ControlProtocolInfo*> control_protocol_info;
40 std::list<ControlProtocol*> control_protocols;
42 int control_protocol_discover (std::string path);
43 ControlProtocolDescriptor* get_descriptor (std::string path);
48 #endif // ardour_control_protocol_manager_h