save/restore VCAManager state

This commit is contained in:
Paul Davis
2016-02-29 16:16:31 -05:00
parent 0d5705d096
commit d2c405416c

View File

@@ -1213,6 +1213,8 @@ Session::state (bool full_state)
}
}
node->add_child_nocopy (_vca_manager->get_state());
child = node->add_child ("Routes");
{
boost::shared_ptr<RouteList> r = routes.reader ();
@@ -1459,6 +1461,10 @@ Session::set_state (const XMLNode& node, int version)
}
}
if ((child = find_named_node (node, VCAManager::xml_node_name)) != 0) {
_vca_manager->set_state (*child, version);
}
if ((child = find_named_node (node, "Routes")) == 0) {
error << _("Session: XML state has no routes section") << endmsg;
goto out;