aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/rtl_tcp/rtl_tcp_source_c.cc13
-rw-r--r--lib/rtl_tcp/rtl_tcp_source_c.h2
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/rtl_tcp/rtl_tcp_source_c.cc b/lib/rtl_tcp/rtl_tcp_source_c.cc
index 120abcb..861cf59 100644
--- a/lib/rtl_tcp/rtl_tcp_source_c.cc
+++ b/lib/rtl_tcp/rtl_tcp_source_c.cc
@@ -132,7 +132,18 @@ gr_basic_block_sptr rtl_tcp_source_c::self()
std::string rtl_tcp_source_c::name()
{
- return "RTL TCP Client Source";
+ return "RTL TCP Client";
+}
+
+std::vector<std::string> rtl_tcp_source_c::get_devices()
+{
+ std::vector<std::string> devices;
+
+ std::string args = "rtl_tcp=localhost:1234";
+ args += ",label='RTL-SDR Spectrum Server'";
+ devices.push_back( args );
+
+ return devices;
}
size_t rtl_tcp_source_c::get_num_channels( void )
diff --git a/lib/rtl_tcp/rtl_tcp_source_c.h b/lib/rtl_tcp/rtl_tcp_source_c.h
index 9657714..17f4c0c 100644
--- a/lib/rtl_tcp/rtl_tcp_source_c.h
+++ b/lib/rtl_tcp/rtl_tcp_source_c.h
@@ -48,6 +48,8 @@ public:
std::string name();
+ static std::vector< std::string > get_devices();
+
size_t get_num_channels( void );
osmosdr::meta_range_t get_sample_rates( void );