diff src/proxy.h @ 11428:c39a48818f66

[gaim-migrate @ 13665] exporting async gethostbyname committer: Tailor Script <tailor@pidgin.im>
author Thomas Butter <tbutter>
date Fri, 02 Sep 2005 19:47:18 +0000
parents 03a244acce57
children fc464a0abccc
line wrap: on
line diff
--- a/src/proxy.h	Fri Sep 02 19:46:07 2005 +0000
+++ b/src/proxy.h	Fri Sep 02 19:47:18 2005 +0000
@@ -228,6 +228,19 @@
 int gaim_proxy_connect_socks5(GaimProxyInfo *gpi, const char *host, int port,
 					   GaimInputFunction func, gpointer data);
 
+typedef void (*dns_callback_t)(GSList *hosts, gpointer data,
+		const char *error_message);
+/**
+ * Do an async dns query
+ *
+ * @param hostname The hostname to resolve
+ * @param port A portnumber which is stored in the struct sockaddr
+ * @param callback Callback to call after resolving
+ * @param data Extra data for the callback function
+ * @return a GSList containing the size of followed by the struct sockaddr for any returned IP
+ */
+int gaim_gethostbyname_async(const char *hostname, int port, dns_callback_t callback, gpointer data);
+
 /*@}*/
 
 #ifdef __cplusplus