From 25d8d6f611851d587e98607cba79a5bb74db2cb1 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Tue, 21 Dec 2021 13:13:53 -0600 Subject: host: Add char* overload for device_addr_t This allows constructing a multi_usrp using a string constant: ``` auto usrp = uhd::usrp::multi_usrp::make("type=x4xx"); ``` --- host/include/uhd/types/device_addr.hpp | 6 ++++++ 1 file changed, 6 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..87cce626d 100644 --- a/host/include/uhd/types/device_addr.hpp +++ b/host/include/uhd/types/device_addr.hpp @@ -43,6 +43,12 @@ public: */ device_addr_t(const std::string& args = ""); + /*! + * Create a device address from an args string. + * \param args the arguments string + */ + device_addr_t(const char* args); + /*! * Create a device address from a std::map * \param info the device info map -- cgit v1.2.3