From 8fea36aa81195d758a29067141afdc4becefe5ae Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Thu, 24 Sep 2020 13:05:34 -0500 Subject: lib: disable non pcie types in find with resource mpmd find doesn't respect the "resource" arg hint and can be detected when "resource" is set. This results in incorrect device selection when using PCIe. This change adds detection for "resource" as a prefix in the device hints for mpmd and the other devices. --- host/include/uhd/types/device_addr.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/types/device_addr.hpp b/host/include/uhd/types/device_addr.hpp index 869f4a862..035715bf9 100644 --- a/host/include/uhd/types/device_addr.hpp +++ b/host/include/uhd/types/device_addr.hpp @@ -49,6 +49,13 @@ public: */ device_addr_t(const std::map& info); + /*! + * Looks for any key that matches the prefix. + * \param prefix string to compare keys to + * \return a bool true if found else false + */ + bool has_key_with_prefix(const std::string& prefix) const; + /*! * Convert a device address into a pretty print string. * \return a printable string representing the device address -- cgit v1.2.3