comparison src/proxy.h @ 14164:879bb47cff8e

[gaim-migrate @ 16814] Revert SVN revision 16811. Kevin says it's crashing for him and I'm tired. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 17 Aug 2006 10:04:21 +0000
parents c3167a1dd817
children fc92a5a7dd95
comparison
equal deleted inserted replaced
14163:c3167a1dd817 14164:879bb47cff8e
24 */ 24 */
25 #ifndef _GAIM_PROXY_H_ 25 #ifndef _GAIM_PROXY_H_
26 #define _GAIM_PROXY_H_ 26 #define _GAIM_PROXY_H_
27 27
28 #include <glib.h> 28 #include <glib.h>
29 #include "dnsquery.h"
30 #include "eventloop.h" 29 #include "eventloop.h"
31 30
32 /** 31 /**
33 * A type of proxy connection. 32 * A type of proxy connection.
34 */ 33 */
55 char *username; /**< The username. */ 54 char *username; /**< The username. */
56 char *password; /**< The password. */ 55 char *password; /**< The password. */
57 56
58 } GaimProxyInfo; 57 } GaimProxyInfo;
59 58
60 typedef struct _GaimDnsQueryData GaimDnsQueryData;
61 typedef struct _GaimProxyConnectInfo GaimProxyConnectInfo; 59 typedef struct _GaimProxyConnectInfo GaimProxyConnectInfo;
62 60
63 typedef void (*GaimProxyConnectFunction)(gpointer data, gint source, const gchar *error_message); 61 typedef void (*GaimProxyConnectFunction)(gpointer data, gint source, const gchar *error_message);
64 62
65 /** 63 /**
278 * attempt early rather than just letting the OS's TCP/IP stack 276 * attempt early rather than just letting the OS's TCP/IP stack
279 * time-out the connection. 277 * time-out the connection.
280 */ 278 */
281 void gaim_proxy_connect_cancel(GaimProxyConnectInfo *connect_info); 279 void gaim_proxy_connect_cancel(GaimProxyConnectInfo *connect_info);
282 280
281 /**
282 * Do an async dns query
283 *
284 * @param hostname The hostname to resolve
285 * @param port A portnumber which is stored in the struct sockaddr
286 * @param callback Callback to call after resolving
287 * @param data Extra data for the callback function
288 *
289 * @return Zero indicates the connection is pending. Any other value indicates failure.
290 */
291 int gaim_gethostbyname_async(const char *hostname, int port, GaimProxyDnsConnectFunction callback, gpointer data);
292
283 /*@}*/ 293 /*@}*/
284 294
285 #ifdef __cplusplus 295 #ifdef __cplusplus
286 } 296 }
287 #endif 297 #endif