Mercurial > pidgin
comparison src/proxy.h @ 2090:b66aca8e8dce
[gaim-migrate @ 2100]
change ../config.h to <config.h> because that's better. change from GdkInput functions to GaimInput for reasons mentioned elsewhere.
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Tue, 31 Jul 2001 23:23:40 +0000 |
| parents | a02584b98823 |
| children | 5473c8c5378d |
comparison
equal
deleted
inserted
replaced
| 2089:bb1ddaaf0d26 | 2090:b66aca8e8dce |
|---|---|
| 28 | 28 |
| 29 #include <sys/types.h> | 29 #include <sys/types.h> |
| 30 #include <sys/socket.h> | 30 #include <sys/socket.h> |
| 31 #include <netdb.h> | 31 #include <netdb.h> |
| 32 #include <netinet/in.h> | 32 #include <netinet/in.h> |
| 33 #include <gtk/gtk.h> | 33 #include <glib.h> |
| 34 | 34 |
| 35 #define PROXY_NONE 0 | 35 #define PROXY_NONE 0 |
| 36 #define PROXY_HTTP 1 | 36 #define PROXY_HTTP 1 |
| 37 #define PROXY_SOCKS4 2 | 37 #define PROXY_SOCKS4 2 |
| 38 #define PROXY_SOCKS5 3 | 38 #define PROXY_SOCKS5 3 |
| 41 extern int proxyport; | 41 extern int proxyport; |
| 42 extern int proxytype; | 42 extern int proxytype; |
| 43 extern char proxyuser[128]; | 43 extern char proxyuser[128]; |
| 44 extern char proxypass[128]; | 44 extern char proxypass[128]; |
| 45 | 45 |
| 46 extern int proxy_connect(char *host, int port, GdkInputFunction func, gpointer data); | 46 typedef enum { |
| 47 GAIM_INPUT_READ = 1 << 0, | |
| 48 GAIM_INPUT_WRITE = 1 << 1 | |
| 49 } GaimInputCondition; | |
| 50 typedef void (*GaimInputFunction)(gpointer, gint, GaimInputCondition); | |
| 51 | |
| 52 extern gint gaim_input_add(int, GaimInputCondition, GaimInputFunction, gpointer); | |
| 53 extern void gaim_input_remove(gint); | |
| 54 | |
| 55 extern int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data); | |
| 47 | 56 |
| 48 #endif | 57 #endif |
