diff options
author | Lane Kolbly <lane.kolbly@ni.com> | 2021-12-21 13:13:53 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-05 09:58:21 -0600 |
commit | 25d8d6f611851d587e98607cba79a5bb74db2cb1 (patch) | |
tree | 9ba230390c0e006b5a5dce1267ef1215a56fc85c /host/include | |
parent | 450a36eababc10e21b8af7bb130f41cec9e90d1e (diff) | |
download | uhd-25d8d6f611851d587e98607cba79a5bb74db2cb1.tar.gz uhd-25d8d6f611851d587e98607cba79a5bb74db2cb1.tar.bz2 uhd-25d8d6f611851d587e98607cba79a5bb74db2cb1.zip |
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");
```
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/types/device_addr.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ -44,6 +44,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 */ |