summaryrefslogtreecommitdiffstats
path: root/lib/usrp/dboard/basic.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-01-14 19:02:55 -0800
committerJosh Blum <josh@joshknows.com>2010-01-14 19:02:55 -0800
commit3b47904f24169904bf65b29091d85ddfc2a7edb4 (patch)
treec6423c67a341a55ebbeb60c1519635cefb7d6612 /lib/usrp/dboard/basic.cpp
parentb52880892d1a85203e58cdb049877e7ae4c16663 (diff)
downloaduhd-3b47904f24169904bf65b29091d85ddfc2a7edb4.tar.gz
uhd-3b47904f24169904bf65b29091d85ddfc2a7edb4.tar.bz2
uhd-3b47904f24169904bf65b29091d85ddfc2a7edb4.zip
Switched dboard ctor arguments with a tuple.
Sub-classes only need to pass the single argument, makes implementation cleaner. Added a dboard registry and api for the manager. This way, one could externally register custom dboard from the api.
Diffstat (limited to 'lib/usrp/dboard/basic.cpp')
-rw-r--r--lib/usrp/dboard/basic.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/usrp/dboard/basic.cpp b/lib/usrp/dboard/basic.cpp
index 1c746815c..66358f0bb 100644
--- a/lib/usrp/dboard/basic.cpp
+++ b/lib/usrp/dboard/basic.cpp
@@ -7,8 +7,7 @@
/***********************************************************************
* Basic RX dboard
**********************************************************************/
-basic_rx::basic_rx(size_t subdev_index, interface::sptr dboard_interface)
-: rx_base(subdev_index, dboard_interface){
+basic_rx::basic_rx(ctor_args_t const& args) : rx_base(args){
/* NOP */
}
@@ -27,8 +26,7 @@ void basic_rx::rx_set(const wax::type &, const wax::type &){
/***********************************************************************
* Basic TX dboard
**********************************************************************/
-basic_tx::basic_tx(size_t subdev_index, interface::sptr dboard_interface)
-: tx_base(subdev_index, dboard_interface){
+basic_tx::basic_tx(ctor_args_t const& args) : tx_base(args){
/* NOP */
}