[vinagre] Detect RDP hosts via Avahi



commit f04c5bea725fb36f427005262bf23e85f6b81766
Author: Marek Kasik <mkasik redhat com>
Date:   Tue Oct 14 14:06:29 2014 +0200

    Detect RDP hosts via Avahi
    
    Implement impl_get_mdns_service() for RDP's VinagreProtocolInterface so
    that we can detect available RDP hosts over Avahi.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738523

 plugins/rdp/vinagre-rdp-plugin.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/rdp/vinagre-rdp-plugin.c b/plugins/rdp/vinagre-rdp-plugin.c
index 149f7fa..a11d5a6 100644
--- a/plugins/rdp/vinagre-rdp-plugin.c
+++ b/plugins/rdp/vinagre-rdp-plugin.c
@@ -66,6 +66,12 @@ impl_get_public_description (VinagreProtocol *plugin)
   return result;
 }
 
+static const gchar *
+impl_get_mdns_service (VinagreProtocol *plugin)
+{
+  return "_rdp._tcp";
+}
+
 static VinagreConnection *
 impl_new_connection (VinagreProtocol *plugin)
 {
@@ -168,6 +174,7 @@ vinagre_rdp_protocol_iface_init (VinagreProtocolInterface *iface)
   iface->get_protocol  = impl_get_protocol;
   iface->get_public_description  = impl_get_public_description;
   iface->new_connection = impl_new_connection;
+  iface->get_mdns_service  = impl_get_mdns_service;
   iface->new_tab = impl_new_tab;
   iface->get_default_port = impl_get_default_port;
   iface->get_connect_widget = impl_get_connect_widget;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]