Mercurial > pidgin
diff src/proxy.h @ 4366:7ba9b56a8796
[gaim-migrate @ 4632]
Ok, so this is a patch by Nicolas Lichtmaier (niqueco). You've probably noticed
that when you try to sign an account on, the UI freezes for a while (esp. on poor
connections). This was because gethostbyname() blocks. Nicolas's patch here forks
a new process to resolve host names and returns them in a pipe. It makes things
smoother and faster. Thanks so much, Nicolas.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 20 Jan 2003 19:26:56 +0000 |
parents | 22875a399312 |
children | d19872836812 |
line wrap: on
line diff
--- a/src/proxy.h Mon Jan 20 18:12:14 2003 +0000 +++ b/src/proxy.h Mon Jan 20 19:26:56 2003 +0000 @@ -39,14 +39,16 @@ #include <glib.h> -#define PROXY_NONE 0 -#define PROXY_HTTP 1 -#define PROXY_SOCKS4 2 -#define PROXY_SOCKS5 3 +typedef enum { + PROXY_NONE = 0, + PROXY_HTTP, + PROXY_SOCKS4, + PROXY_SOCKS5, +} proxytype_t; extern char proxyhost[128]; extern int proxyport; -extern int proxytype; +extern proxytype_t proxytype; extern char proxyuser[128]; extern char proxypass[128]; extern guint proxy_info_is_from_gaimrc;