add Red Pitaya discovery in device find function

soapy_support
Dimitri Stolnikov 7 years ago
parent 3fda9d6be5
commit 11257d0aa6
  1. 9
      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) );

Loading…
Cancel
Save