// // Copyright 2019 Ettus Research, a National Instruments Brand // // SPDX-License-Identifier: GPL-3.0-or-later // #ifndef INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP #define INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP #include #include namespace uhd { namespace transport { class adapter_ctx : uhd::noncopyable { public: UHD_SINGLETON_FCN(adapter_ctx, get); ~adapter_ctx() = default; adapter_id_t register_adapter(adapter_info& info); private: adapter_ctx() = default; std::mutex _mutex; std::unordered_map _id_map; }; }} // namespace uhd::transport #endif /* INCLUDED_UHDLIB_TRANSPORT_ADAPTER_HPP */