aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/subdev_spec.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-09-30 11:05:33 -0700
committerJosh Blum <josh@joshknows.com>2010-09-30 11:05:33 -0700
commita4f8ad59b2abc6d4b1a6c65aa2652083486e3065 (patch)
tree913ee903f92527980d8bf1f893d9f7d7a58547c7 /host/lib/usrp/subdev_spec.cpp
parentb8e62bb9bf86d4804defe738b2a7140cd9417a6f (diff)
downloaduhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.tar.gz
uhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.tar.bz2
uhd-a4f8ad59b2abc6d4b1a6c65aa2652083486e3065.zip
usrp: added subdev enabled property
the dboard manager will disable all subdevs at startup and shutdown setting the subdev spec will enable only the subdevs in use all dboards are currently implemented as always enabled nothing tested
Diffstat (limited to 'host/lib/usrp/subdev_spec.cpp')
-rw-r--r--host/lib/usrp/subdev_spec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/usrp/subdev_spec.cpp b/host/lib/usrp/subdev_spec.cpp
index 7a3e72867..95d2cbb12 100644
--- a/host/lib/usrp/subdev_spec.cpp
+++ b/host/lib/usrp/subdev_spec.cpp
@@ -34,6 +34,10 @@ subdev_spec_pair_t::subdev_spec_pair_t(
/* NOP */
}
+bool usrp::operator==(const subdev_spec_pair_t &lhs, const subdev_spec_pair_t &rhs){
+ return (lhs.db_name == rhs.db_name) and (lhs.sd_name == rhs.sd_name);
+}
+
subdev_spec_t::subdev_spec_t(const std::string &markup){
BOOST_FOREACH(const std::string &pair, std::split_string(markup)){
if (pair == "") continue;