# HG changeset patch # User Thomas Butter # Date 1125690438 0 # Node ID c39a48818f66c8eae6e62fea3799733ee1d26a10 # Parent e2ebebcae270480ff4f6922c85442698988b51fd [gaim-migrate @ 13665] exporting async gethostbyname committer: Tailor Script diff -r e2ebebcae270 -r c39a48818f66 src/proxy.c --- a/src/proxy.c Fri Sep 02 19:46:07 2005 +0000 +++ b/src/proxy.c Fri Sep 02 19:47:18 2005 +0000 @@ -186,8 +186,6 @@ /************************************************************************** * Proxy API **************************************************************************/ -typedef void (*dns_callback_t)(GSList *hosts, gpointer data, - const char *error_message); #ifdef __unix__ diff -r e2ebebcae270 -r c39a48818f66 src/proxy.h --- 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