soapy: added device::find() support

Was missing from the implementation.
Now devices with a label show up nicely in GQRX
This commit is contained in:
Josh Blum 2017-02-02 11:10:08 -08:00
parent ae686c462d
commit 3511defbf4
1 changed files with 8 additions and 0 deletions

View File

@ -78,6 +78,10 @@
#include <airspy_source_c.h> #include <airspy_source_c.h>
#endif #endif
#ifdef ENABLE_SOAPY
#include <soapy_source_c.h>
#endif
#ifdef ENABLE_REDPITAYA #ifdef ENABLE_REDPITAYA
#include <redpitaya_source_c.h> #include <redpitaya_source_c.h>
#endif #endif
@ -178,6 +182,10 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() ) BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
devices.push_back( device_t(dev) ); devices.push_back( device_t(dev) );
#endif #endif
#ifdef ENABLE_SOAPY
BOOST_FOREACH( std::string dev, soapy_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
/* software-only sources should be appended at the very end, /* software-only sources should be appended at the very end,
* hopefully resulting in hardware sources to be shown first * hopefully resulting in hardware sources to be shown first