Mercurial > pidgin.yaz
diff plugins/msn/msn.c @ 1283:87ad345a6d4f
[gaim-migrate @ 1293]
Sometimes I smoke too much crack, Mmmkay.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 15 Dec 2000 01:23:04 +0000 |
parents | 577b71ae4e2a |
children | ea91dbf089db |
line wrap: on
line diff
--- a/plugins/msn/msn.c Fri Dec 15 00:45:25 2000 +0000 +++ b/plugins/msn/msn.c Fri Dec 15 01:23:04 2000 +0000 @@ -76,7 +76,7 @@ int fd; }; -void msn_handler(gpointer data, gint source, GdkInputCondition condition); +void msn_callback(gpointer data, gint fd, GdkInputCondition condition); GSList *msn_connections = NULL; @@ -242,8 +242,9 @@ g_free(ap); } -void msn_callback(struct gaim_connection *gc, gint fd) +void msn_callback(gpointer data, gint fd, GdkInputCondition condition) { + struct gaim_connection *gc = data; struct msn_data *mdata; char c; int i = 0; @@ -454,7 +455,7 @@ mc->user = g_strdup(resps[5]); - mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_handler, gc); + mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_callback, gc); g_snprintf(buf, 4096, "ANS 1 %s %s %s\n", gc->username, resps[4], resps[1]); write(mc->fd, buf, strlen(buf)); @@ -470,12 +471,6 @@ } - -void msn_handler(gpointer data, gint source, GdkInputCondition condition) -{ - msn_callback(data, source); -} - void msn_login(struct aim_user *user) { time_t trId = time((time_t *) NULL); @@ -642,7 +637,7 @@ do_import(NULL, gc); /* We want to do this so that we can read what's going on */ - gc->inpa = gdk_input_add(mdata->fd, GDK_INPUT_READ, msn_handler, gc); + gc->inpa = gdk_input_add(mdata->fd, GDK_INPUT_READ, msn_callback, gc); } void msn_send_im(struct gaim_connection *gc, char *who, char *message, int away) @@ -705,7 +700,7 @@ } mc->user = g_strdup(who); - mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_handler, gc); + mc->inpa = gdk_input_add(mc->fd, GDK_INPUT_READ, msn_callback, gc); msn_connections = g_slist_append(msn_connections, mc);