aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2016-01-10 22:19:13 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2016-01-10 22:19:13 +0100
commit11257d0aa6e9cddb92a6c5a277b8edd57209d0d5 (patch)
treea28160ab943eced1dfc8a58148585bea56e6103f
parent3fda9d6be5f2cfe9723478bdefd17041efbb6051 (diff)
add Red Pitaya discovery in device find function
-rw-r--r--lib/device.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/device.cc b/lib/device.cc
index d8fcfba..3ce40fa 100644
--- a/lib/device.cc
+++ b/lib/device.cc
@@ -78,6 +78,10 @@
#include <airspy_source_c.h>
#endif
+#ifdef ENABLE_REDPITAYA
+#include <redpitaya_source_c.h>
+#endif
+
#include "arg_helpers.h"
using namespace osmosdr;
@@ -174,6 +178,7 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
+
/* software-only sources should be appended at the very end,
* hopefully resulting in hardware sources to be shown first
* in a graphical interface etc... */
@@ -182,6 +187,10 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, rtl_tcp_source_c::get_devices( fake ) )
devices.push_back( device_t(dev) );
#endif
+#ifdef ENABLE_REDPITAYA
+ BOOST_FOREACH( std::string dev, redpitaya_source_c::get_devices( fake ) )
+ devices.push_back( device_t(dev) );
+#endif
#ifdef ENABLE_FILE
BOOST_FOREACH( std::string dev, file_source_c::get_devices( fake ) )
devices.push_back( device_t(dev) );