summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/port_engine.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-10-30 19:41:42 +0100
committerRobin Gareus <robin@gareus.org>2017-10-30 19:41:42 +0100
commit94e2bce740da8f6b53820ab2b4893846300d0c9e (patch)
treeb8311164e2677ef94a05436388002122ab282bdc /libs/ardour/ardour/port_engine.h
parent16b45352817bce83a1e2de2ad9c1106c0b560a63 (diff)
Add & implement PortEngine::externally_connected() API
Diffstat (limited to 'libs/ardour/ardour/port_engine.h')
-rw-r--r--libs/ardour/ardour/port_engine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/ardour/port_engine.h b/libs/ardour/ardour/port_engine.h
index 88935671a2..6db4bea24b 100644
--- a/libs/ardour/ardour/port_engine.h
+++ b/libs/ardour/ardour/port_engine.h
@@ -228,6 +228,14 @@ class LIBARDOUR_API PortEngine {
*/
virtual bool physically_connected (PortHandle port, bool process_callback_safe = true) = 0;
+ /** Return true if the port referred to by @param port has any connections
+ * to external, not-ardour owned, ports.
+ */
+ virtual bool externally_connected (PortHandle port, bool process_callback_safe = true) {
+ /* only with JACK, provides client ports that are not physical */
+ return physically_connected (port, process_callback_safe);
+ }
+
/** Place the names of all ports connected to the port named by @param
* ports into @param names, and return the number of connections.
*/