From 3f0e7d405f128e9faeea03cb6f97f25423983e63 Mon Sep 17 00:00:00 2001 From: Brent Stapleton Date: Thu, 29 Mar 2018 18:42:39 -0700 Subject: lib: adding device_addr_t constructor from map Adding constructor for device_addr_t that takes a map as an argument. --- 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 dd60df2e7..b9d3659c0 100644 --- a/host/include/uhd/types/device_addr.hpp +++ b/host/include/uhd/types/device_addr.hpp @@ -14,6 +14,7 @@ #include #include #include +#include namespace uhd{ @@ -42,6 +43,12 @@ namespace uhd{ */ device_addr_t(const std::string &args = ""); + /*! + * Create a device address from a std::map + * \param info the device info map + */ + device_addr_t(const std::map &info); + /*! * Convert a device address into a pretty print string. * \return a printable string representing the device address -- cgit v1.2.3