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/include | |
| 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/include')
| -rw-r--r-- | host/include/uhd/transport/adapter_id.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/host/include/uhd/transport/adapter_id.hpp b/host/include/uhd/transport/adapter_id.hpp new file mode 100644 index 000000000..02041bc4c --- /dev/null +++ b/host/include/uhd/transport/adapter_id.hpp @@ -0,0 +1,21 @@ +// +// Copyright 2019 Ettus Research, a National Instruments Brand +// +// SPDX-License-Identifier: GPL-3.0-or-later +// + +#ifndef INCLUDED_UHD_TRANSPORT_ADAPTER_ID_HPP +#define INCLUDED_UHD_TRANSPORT_ADAPTER_ID_HPP + +#include <cstddef> + +namespace uhd { namespace transport { + +//! Host transport adapter ID +using adapter_id_t = size_t; +//! NULL/unassigned host transport adapter ID +static const adapter_id_t NULL_ADAPTER_ID = 0; + +}} // namespace uhd::transport + +#endif /* INCLUDED_UHD_TRANSPORT_ADAPTER_ID_HPP */ |
