Mercurial > pidgin
changeset 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 | e2ebebcae270 |
children | 835dbb1b3337 |
files | src/proxy.c src/proxy.h |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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__
--- 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