Add & implement PortEngine::externally_connected() API
[ardour.git] / libs / ardour / ardour / port_engine.h
index 88935671a2dc96c3ac00bbbd49f422f1f49bb263..6db4bea24bda29389d23456abfc6cf97dba281c7 100644 (file)
@@ -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.
      */