Mercurial > pidgin
comparison src/oscar.c @ 279:501e09c51cbc
[gaim-migrate @ 289]
Updates to libfaim -> updates to gaim.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 29 May 2000 20:30:48 +0000 |
parents | bba300ed4fab |
children | 918db59d3814 |
comparison
equal
deleted
inserted
replaced
278:29e1669b006b | 279:501e09c51cbc |
---|---|
90 struct aim_user *u; | 90 struct aim_user *u; |
91 char buf[256]; | 91 char buf[256]; |
92 | 92 |
93 sess = g_new0(struct aim_session_t, 1); | 93 sess = g_new0(struct aim_session_t, 1); |
94 aim_session_init(sess); | 94 aim_session_init(sess); |
95 /* we need an immediate queue because we don't use a while-loop to | |
96 * see if things need to be sent. */ | |
97 sess->tx_enqueue = &aim_tx_enqueue__immediate; | |
98 gaim_sess = sess; | |
95 | 99 |
96 sprintf(buf, "Looking up %s", FAIM_LOGIN_SERVER); | 100 sprintf(buf, "Looking up %s", FAIM_LOGIN_SERVER); |
97 set_login_progress(1, buf); | 101 set_login_progress(1, buf); |
98 conn = aim_newconn(sess, AIM_CONN_TYPE_AUTH, FAIM_LOGIN_SERVER); | 102 conn = aim_newconn(sess, AIM_CONN_TYPE_AUTH, FAIM_LOGIN_SERVER); |
99 | 103 |
220 #endif | 224 #endif |
221 set_state(STATE_OFFLINE); | 225 set_state(STATE_OFFLINE); |
222 hide_login_progress("Could Not Connect"); | 226 hide_login_progress("Could Not Connect"); |
223 return -1; | 227 return -1; |
224 } | 228 } |
229 gaim_conn = bosconn; | |
225 | 230 |
226 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_ACK, AIM_CB_ACK_ACK, NULL, 0); | 231 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_ACK, AIM_CB_ACK_ACK, NULL, 0); |
227 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, gaim_server_ready, 0); | 232 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_SERVERREADY, gaim_server_ready, 0); |
228 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_RATEINFO, NULL, 0); | 233 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_RATEINFO, NULL, 0); |
229 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_REDIRECT, gaim_handle_redirect, 0); | 234 aim_conn_addhandler(sess, bosconn, AIM_CB_FAM_GEN, AIM_CB_GEN_REDIRECT, gaim_handle_redirect, 0); |
318 | 323 |
319 aim_bos_clientready(sess, command->conn); | 324 aim_bos_clientready(sess, command->conn); |
320 | 325 |
321 aim_bos_reqservice(sess, command->conn, AIM_CONN_TYPE_CHATNAV); | 326 aim_bos_reqservice(sess, command->conn, AIM_CONN_TYPE_CHATNAV); |
322 | 327 |
323 gaim_sess = sess; | |
324 gaim_conn = command->conn; | |
325 | |
326 debug_print("Roger that, all systems go\n"); | 328 debug_print("Roger that, all systems go\n"); |
327 #ifdef USE_APPLET | 329 #ifdef USE_APPLET |
328 make_buddy(); | 330 make_buddy(); |
329 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { | 331 if (general_options & OPT_GEN_APP_BUDDY_SHOW) { |
330 gnome_buddy_show(); | 332 gnome_buddy_show(); |