forked from sdr/gr-osmosdr
return default devices for file and rtl_tcp in device::find()
This commit is contained in:
parent
f81bf7cf12
commit
d243abe2d7
|
@ -32,7 +32,9 @@
|
||||||
/*
|
/*
|
||||||
#define ENABLE_OSMOSDR
|
#define ENABLE_OSMOSDR
|
||||||
#define ENABLE_FCD
|
#define ENABLE_FCD
|
||||||
|
#define ENABLE_FILE
|
||||||
#define ENABLE_RTL
|
#define ENABLE_RTL
|
||||||
|
#define ENABLE_RTL_TCP
|
||||||
#define ENABLE_UHD
|
#define ENABLE_UHD
|
||||||
#define ENABLE_MIRI
|
#define ENABLE_MIRI
|
||||||
*/
|
*/
|
||||||
|
@ -44,10 +46,18 @@
|
||||||
#include <fcd_source.h>
|
#include <fcd_source.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_FILE
|
||||||
|
#include <file_source_c.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_RTL
|
#ifdef ENABLE_RTL
|
||||||
#include <rtl_source_c.h>
|
#include <rtl_source_c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_RTL_TCP
|
||||||
|
#include <rtl_tcp_source_c.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_UHD
|
#ifdef ENABLE_UHD
|
||||||
#include <uhd_source_c.h>
|
#include <uhd_source_c.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -115,10 +125,18 @@ devices_t device::find(const device_t &hint)
|
||||||
BOOST_FOREACH( std::string dev, fcd_source::get_devices() )
|
BOOST_FOREACH( std::string dev, fcd_source::get_devices() )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_FILE
|
||||||
|
BOOST_FOREACH( std::string dev, file_source_c::get_devices() )
|
||||||
|
devices.push_back( device_t(dev) );
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_RTL
|
#ifdef ENABLE_RTL
|
||||||
BOOST_FOREACH( std::string dev, rtl_source_c::get_devices() )
|
BOOST_FOREACH( std::string dev, rtl_source_c::get_devices() )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_RTL_TCP
|
||||||
|
BOOST_FOREACH( std::string dev, rtl_tcp_source_c::get_devices() )
|
||||||
|
devices.push_back( device_t(dev) );
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_UHD
|
#ifdef ENABLE_UHD
|
||||||
BOOST_FOREACH( std::string dev, uhd_source_c::get_devices() )
|
BOOST_FOREACH( std::string dev, uhd_source_c::get_devices() )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
|
|
|
@ -91,7 +91,9 @@ osmosdr_source_c_impl::osmosdr_source_c_impl (const std::string &args)
|
||||||
|
|
||||||
std::vector< std::string > dev_types;
|
std::vector< std::string > dev_types;
|
||||||
|
|
||||||
|
#ifdef ENABLE_FILE
|
||||||
dev_types.push_back("file");
|
dev_types.push_back("file");
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_OSMOSDR
|
#ifdef ENABLE_OSMOSDR
|
||||||
dev_types.push_back("osmosdr");
|
dev_types.push_back("osmosdr");
|
||||||
#endif
|
#endif
|
||||||
|
@ -101,7 +103,9 @@ osmosdr_source_c_impl::osmosdr_source_c_impl (const std::string &args)
|
||||||
#ifdef ENABLE_RTL
|
#ifdef ENABLE_RTL
|
||||||
dev_types.push_back("rtl");
|
dev_types.push_back("rtl");
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_RTL_TCP
|
||||||
dev_types.push_back("rtl_tcp");
|
dev_types.push_back("rtl_tcp");
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_UHD
|
#ifdef ENABLE_UHD
|
||||||
dev_types.push_back("uhd");
|
dev_types.push_back("uhd");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue