diff libpurple/network.h @ 26132:ae3d25465d0f

Run an asynchronous DNS lookup for the STUN server IP (to set as a property to the nice transmitter for media). Also update the IP when the preference changes and when NetworkManager support is present, when NM reports connected. TODO: add code to run DNS lookup on Win32 when the network connection is ready
author Marcus Lundblad <ml@update.uu.se>
date Sat, 17 Jan 2009 01:38:44 +0000
parents f52b94f3b6ca
children c56e8826fed0
line wrap: on
line diff
--- a/libpurple/network.h	Wed Jan 14 09:32:48 2009 +0000
+++ b/libpurple/network.h	Sat Jan 17 01:38:44 2009 +0000
@@ -214,6 +214,21 @@
  */
 void *purple_network_get_handle(void);
 
+/**	
+ * Update the STUN server name
+ * Will result in a DNS query being executed asynchronous
+ * 
+ * @param stun_server The host name of the STUN server to set
+ */
+void purple_network_set_stun_server(const gchar *stun_server);
+	
+/**
+ * Get the IP address of the STUN server as a string representation
+ *
+ * @return the IP address
+ */
+const gchar *purple_network_get_stun_ip(void);
+	
 /**
  * Initializes the network subsystem.
  */