aboutsummaryrefslogtreecommitdiffstats
path: root/lib/osmosdr_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/osmosdr_device.cc')
-rw-r--r--lib/osmosdr_device.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/osmosdr_device.cc b/lib/osmosdr_device.cc
index e2014ad..6941a9d 100644
--- a/lib/osmosdr_device.cc
+++ b/lib/osmosdr_device.cc
@@ -66,6 +66,10 @@
#include <bladerf_source_c.h>
#endif
+#ifdef ENABLE_NETSDR
+#include <netsdr_source_c.h>
+#endif
+
#include "osmosdr_arg_helpers.h"
using namespace osmosdr;
@@ -145,6 +149,11 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, hackrf_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
+#ifdef ENABLE_NETSDR
+ BOOST_FOREACH( std::string dev, netsdr_source_c::get_devices( true ) )
+ 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... */