13
0

clean up aspects of ControlProtocol API

This commit is contained in:
Paul Davis 2013-12-21 15:27:57 -05:00
parent 0cf8b9d3ea
commit 8a005319b8

View File

@ -53,6 +53,8 @@ PBD::Signal0<void> ControlProtocol::ClearRouteSelection;
PBD::Signal0<void> ControlProtocol::StepTracksDown;
PBD::Signal0<void> ControlProtocol::StepTracksUp;
const std::string ControlProtocol::state_node_name ("Protocol");
ControlProtocol::ControlProtocol (Session& s, string str)
: BasicUI (s)
, _name (str)
@ -64,6 +66,13 @@ ControlProtocol::~ControlProtocol ()
{
}
int
ControlProtocol::set_active (bool yn)
{
_active = yn;
return 0;
}
void
ControlProtocol::next_track (uint32_t initial_id)
{
@ -356,5 +365,15 @@ ControlProtocol:: route_get_name (uint32_t table_index)
list<boost::shared_ptr<Bundle> >
ControlProtocol::bundles ()
{
return list<boost::shared_ptr<Bundle> > ();
return list<boost::shared_ptr<Bundle> > ();
}
XMLNode&
ControlProtocol::get_state ()
{
XMLNode* node = new XMLNode (state_node_name);
node->add_property ("name", _name);
return *node;
}