diff options
author | Alex Williams <alex.williams@ni.com> | 2019-08-09 11:18:35 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2019-11-26 11:49:38 -0800 |
commit | 01284980b1d7227f1c11496d2be939bb4b23adb1 (patch) | |
tree | 3bf21c2ece1296640a8854ea229960e5c937ebdd /host/tests/common | |
parent | af5b2b5e778ead57b0fe9e72561227f1ebbbfc42 (diff) | |
download | uhd-01284980b1d7227f1c11496d2be939bb4b23adb1.tar.gz uhd-01284980b1d7227f1c11496d2be939bb4b23adb1.tar.bz2 uhd-01284980b1d7227f1c11496d2be939bb4b23adb1.zip |
transport: Add modeling of physical adapters
Now link instances must have the ability to report the corresponding
physical adapter that is used for the local side of the link. This
information can be used to help identify when multiple links share
the same adapter.
Diffstat (limited to 'host/tests/common')
-rw-r--r-- | host/tests/common/mock_link.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/host/tests/common/mock_link.hpp b/host/tests/common/mock_link.hpp index 73a65916c..a62aa49c7 100644 --- a/host/tests/common/mock_link.hpp +++ b/host/tests/common/mock_link.hpp @@ -128,6 +128,11 @@ public: _simulate_io_timeout = simulate_io_timeout; } + adapter_id_t get_send_adapter_id() const + { + return NULL_ADAPTER_ID; + } + private: // Friend declaration to allow base class to call private methods friend base_t; @@ -223,6 +228,11 @@ public: _rx_lens.push_back(len); } + adapter_id_t get_recv_adapter_id() const + { + return NULL_ADAPTER_ID; + } + private: // Friend declaration to allow base class to call private methods friend base_t; |