aboutsummaryrefslogtreecommitdiffstats
path: root/lib/source_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/source_impl.cc')
-rw-r--r--lib/source_impl.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/source_impl.cc b/lib/source_impl.cc
index b9fead3..5d7d305 100644
--- a/lib/source_impl.cc
+++ b/lib/source_impl.cc
@@ -60,6 +60,10 @@
#include <miri_source_c.h>
#endif
+#ifdef ENABLE_SDRPLAY
+#include <sdrplay_source_c.h>
+#endif
+
#ifdef ENABLE_HACKRF
#include <hackrf_source_c.h>
#endif
@@ -134,6 +138,9 @@ source_impl::source_impl( const std::string &args )
#ifdef ENABLE_MIRI
dev_types.push_back("miri");
#endif
+#ifdef ENABLE_SDRPLAY
+ dev_types.push_back("sdrplay");
+#endif
#ifdef ENABLE_HACKRF
dev_types.push_back("hackrf");
#endif
@@ -197,6 +204,10 @@ source_impl::source_impl( const std::string &args )
BOOST_FOREACH( std::string dev, miri_source_c::get_devices() )
dev_list.push_back( dev );
#endif
+#ifdef ENABLE_SDRPLAY
+ BOOST_FOREACH( std::string dev, sdrplay_source_c::get_devices() )
+ dev_list.push_back( dev );
+#endif
#ifdef ENABLE_BLADERF
BOOST_FOREACH( std::string dev, bladerf_source_c::get_devices() )
dev_list.push_back( dev );
@@ -288,6 +299,13 @@ source_impl::source_impl( const std::string &args )
}
#endif
+#ifdef ENABLE_SDRPLAY
+ if ( dict.count("sdrplay") ) {
+ sdrplay_source_c_sptr src = make_sdrplay_source_c( arg );
+ block = src; iface = src.get();
+ }
+#endif
+
#ifdef ENABLE_HACKRF
if ( dict.count("hackrf") ) {
hackrf_source_c_sptr src = make_hackrf_source_c( arg );