aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/x300/x300_eth_mgr.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2019-08-13 15:28:13 -0700
committerMartin Braun <martin.braun@ettus.com>2019-08-16 13:42:02 -0700
commit3d157e09f642caa7a5d48c71468b444d0566cf8d (patch)
treeb29219cb40d3f887d97a068d4a6e45c5ce2b5a65 /host/lib/usrp/x300/x300_eth_mgr.hpp
parentbbb869ca80fa299f7888b35134218229521dd0c0 (diff)
downloaduhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.tar.gz
uhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.tar.bz2
uhd-3d157e09f642caa7a5d48c71468b444d0566cf8d.zip
x300: Introduce conn_manager
This is a superclass to eth_manager and pcie_manager, since they usually do the same thing. This saves storing and passing multiple pointers. Also, x300_impl now stores a shared_ptr of the conn_manager, because we'll need to pass it around in the future.
Diffstat (limited to 'host/lib/usrp/x300/x300_eth_mgr.hpp')
-rw-r--r--host/lib/usrp/x300/x300_eth_mgr.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_eth_mgr.hpp b/host/lib/usrp/x300/x300_eth_mgr.hpp
index 85b3eabd0..022e14bbd 100644
--- a/host/lib/usrp/x300/x300_eth_mgr.hpp
+++ b/host/lib/usrp/x300/x300_eth_mgr.hpp
@@ -7,6 +7,7 @@
#ifndef INCLUDED_X300_ETH_MGR_HPP
#define INCLUDED_X300_ETH_MGR_HPP
+#include "x300_conn_mgr.hpp"
#include "x300_device_args.hpp"
#include "x300_mboard_type.hpp"
#include <uhd/transport/if_addrs.hpp>
@@ -22,7 +23,7 @@ namespace uhd { namespace usrp { namespace x300 {
/*! Helper class to manage the eth connections
*/
-class eth_manager
+class eth_manager : public conn_manager
{
public:
eth_manager(const x300_device_args_t& args,