comparison src/oscar.c @ 250:c5aa7bf99059

[gaim-migrate @ 260] Mostly just touch-ups to the README.gaim file, and a couple FIXME's thrown about in oscar.c committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 22 May 2000 15:43:11 +0000
parents 810c595258c8
children 4a41f8323022
comparison
equal deleted inserted replaced
249:810c595258c8 250:c5aa7bf99059
56 static int gaim_chat_join (struct aim_session_t *, struct command_rx_struct *, ...); 56 static int gaim_chat_join (struct aim_session_t *, struct command_rx_struct *, ...);
57 static int gaim_chat_leave (struct aim_session_t *, struct command_rx_struct *, ...); 57 static int gaim_chat_leave (struct aim_session_t *, struct command_rx_struct *, ...);
58 static int gaim_chat_info_update (struct aim_session_t *, struct command_rx_struct *, ...); 58 static int gaim_chat_info_update (struct aim_session_t *, struct command_rx_struct *, ...);
59 static int gaim_chat_incoming_msg(struct aim_session_t *, struct command_rx_struct *, ...); 59 static int gaim_chat_incoming_msg(struct aim_session_t *, struct command_rx_struct *, ...);
60 60
61 /* FIXME ! This uses 100% of the CPU, guaranteed. We shouldn't be using
62 * aim_select at all. we should be using the gtk/gdk watcher functions */
61 static void oscar_callback(gpointer data, gint source, 63 static void oscar_callback(gpointer data, gint source,
62 GdkInputCondition condition) { 64 GdkInputCondition condition) {
63 struct aim_session_t *sess = (struct aim_session_t *)data; 65 struct aim_session_t *sess = (struct aim_session_t *)data;
64 struct aim_conn_t *conn = NULL; 66 struct aim_conn_t *conn = NULL;
65 struct timeval tv; 67 struct timeval tv;
466 flag2 = va_arg(ap, u_short); 468 flag2 = va_arg(ap, u_short);
467 va_end(ap); 469 va_end(ap);
468 470
469 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY); 471 serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
470 } 472 }
473 /* FIXME : channel == 2 is RVOUS requests, including chat invitations */
471 474
472 return 1; 475 return 1;
473 } 476 }
474 477
475 int gaim_parse_misses(struct aim_session_t *sess, 478 int gaim_parse_misses(struct aim_session_t *sess,