diff options
author | Martin Braun <martin.braun@ettus.com> | 2019-08-13 15:28:13 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-08-16 13:42:02 -0700 |
commit | 3d157e09f642caa7a5d48c71468b444d0566cf8d (patch) | |
tree | b29219cb40d3f887d97a068d4a6e45c5ce2b5a65 /host/lib/usrp/x300/x300_pcie_mgr.hpp | |
parent | bbb869ca80fa299f7888b35134218229521dd0c0 (diff) | |
download | uhd-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_pcie_mgr.hpp')
-rw-r--r-- | host/lib/usrp/x300/x300_pcie_mgr.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/x300/x300_pcie_mgr.hpp b/host/lib/usrp/x300/x300_pcie_mgr.hpp index a9677e9bc..c884c8b5f 100644 --- a/host/lib/usrp/x300/x300_pcie_mgr.hpp +++ b/host/lib/usrp/x300/x300_pcie_mgr.hpp @@ -8,6 +8,7 @@ #define INCLUDED_X300_PCI_MGR_HPP #include "../device3/device3_impl.hpp" +#include "x300_conn_mgr.hpp" #include "x300_device_args.hpp" #include "x300_mboard_type.hpp" #include <uhd/transport/muxed_zero_copy_if.hpp> @@ -18,7 +19,7 @@ namespace uhd { namespace usrp { namespace x300 { /*! Helper class to manage the PCIe connections */ -class pcie_manager +class pcie_manager : public conn_manager { public: pcie_manager(const x300_device_args_t& args, |