extend PortManager API to include 3rd argument used by backend get_connections()

Value is defaulted so this does not change behavior at all
This commit is contained in:
Paul Davis 2024-06-14 21:22:47 -06:00
parent 7982d69cb3
commit cf58a157e3
2 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ public:
bool connected (const std::string&);
bool physically_connected (const std::string&);
int get_connections (const std::string&, std::vector<std::string>&);
int get_connections (const std::string&, std::vector<std::string>&, bool process_context_safe = true);
/* Naming */

View File

@ -749,7 +749,7 @@ PortManager::physically_connected (const string& port_name)
}
int
PortManager::get_connections (const string& port_name, std::vector<std::string>& s)
PortManager::get_connections (const string& port_name, std::vector<std::string>& s, bool process_context_safe)
{
if (!_backend) {
s.clear ();
@ -763,7 +763,7 @@ PortManager::get_connections (const string& port_name, std::vector<std::string>&
return 0;
}
return _backend->get_connections (handle, s);
return _backend->get_connections (handle, s, process_context_safe);
}
int