aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2016-10-17 17:26:14 -0700
committerMartin Braun <martin.braun@ettus.com>2016-10-17 17:26:14 -0700
commitd172b44f157a1429de69599cf0a06aa61fa7a274 (patch)
tree239d6edf32ac2ca18eed392ce0ee090bdfb4c1ab /host/include
parent1b70b3e70df40aae4d1e53037212d77af2fdc4e4 (diff)
parent9e73914791be936216ea11eea9bd38061ef5f323 (diff)
downloaduhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.gz
uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.tar.bz2
uhd-d172b44f157a1429de69599cf0a06aa61fa7a274.zip
Merge branch 'maint'
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/rfnoc/node_ctrl_base.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/host/include/uhd/rfnoc/node_ctrl_base.hpp b/host/include/uhd/rfnoc/node_ctrl_base.hpp
index 82e095b1d..071de803c 100644
--- a/host/include/uhd/rfnoc/node_ctrl_base.hpp
+++ b/host/include/uhd/rfnoc/node_ctrl_base.hpp
@@ -65,6 +65,18 @@ public:
node_map_t list_downstream_nodes() { return _downstream_nodes; };
node_map_t list_upstream_nodes() { return _upstream_nodes; };
+ /*! Disconnect this node from all neighbouring nodes.
+ */
+ void disconnect();
+
+ /*! Identify \p output_port as unconnected
+ */
+ void disconnect_output_port(const size_t output_port);
+
+ /*! Identify \p input_port as unconnected
+ */
+ void disconnect_input_port(const size_t input_port);
+
// TODO we need a more atomic connect procedure, this is too error-prone.
/*! For an existing connection, store the remote port number.
@@ -156,8 +168,8 @@ protected:
/***********************************************************************
* Structors
**********************************************************************/
- node_ctrl_base(void) {};
- virtual ~node_ctrl_base() {};
+ node_ctrl_base(void) {}
+ virtual ~node_ctrl_base() { disconnect(); }
/***********************************************************************
* Protected members