Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/src/proxy.h Tue Jul 31 18:02:40 2001 +0000 +++ b/src/proxy.h Tue Jul 31 23:23:40 2001 +0000 @@ -30,7 +30,7 @@ #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> -#include <gtk/gtk.h> +#include <glib.h> #define PROXY_NONE 0 #define PROXY_HTTP 1 @@ -43,6 +43,15 @@ extern char proxyuser[128]; extern char proxypass[128]; -extern int proxy_connect(char *host, int port, GdkInputFunction func, gpointer data); +typedef enum { + GAIM_INPUT_READ = 1 << 0, + GAIM_INPUT_WRITE = 1 << 1 +} GaimInputCondition; +typedef void (*GaimInputFunction)(gpointer, gint, GaimInputCondition); + +extern gint gaim_input_add(int, GaimInputCondition, GaimInputFunction, gpointer); +extern void gaim_input_remove(gint); + +extern int proxy_connect(char *host, int port, GaimInputFunction func, gpointer data); #endif