comparison src/protocols/oscar/conn.c @ 7466:fa0324675ed9

[gaim-migrate @ 8079] This might fix the "user info for null unavailable," or whatever. Let me know when it doesn't. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 09 Nov 2003 07:58:23 +0000
parents a50eea7628cb
children 2bdacd38528c
comparison
equal deleted inserted replaced
7465:dedbfdc7ce65 7466:fa0324675ed9
189 189
190 return; 190 return;
191 } 191 }
192 192
193 /** 193 /**
194 * aim_connrst - Clears out connection list, killing remaining connections. 194 * Clears out connection list, killing remaining connections.
195 * @sess: Session to be cleared 195 *
196 * 196 * @param sess Session to be cleared
197 * Clears out the connection list and kills any connections left.
198 *
199 */ 197 */
200 static void aim_connrst(aim_session_t *sess) 198 static void aim_connrst(aim_session_t *sess)
201 { 199 {
202 200
203 if (sess->connlist) { 201 if (sess->connlist) {
215 213
216 return; 214 return;
217 } 215 }
218 216
219 /** 217 /**
220 * aim_conn_init - Reset a connection to default values. 218 * Reset a connection to default values.
221 * @deadconn: Connection to be reset
222 *
223 * Initializes and/or resets a connection structure. 219 * Initializes and/or resets a connection structure.
224 * 220 *
221 * @param deadconn Connection to be reset
225 */ 222 */
226 static void aim_conn_init(aim_conn_t *deadconn) 223 static void aim_conn_init(aim_conn_t *deadconn)
227 { 224 {
228 225
229 if (!deadconn) 226 if (!deadconn)
869 aim_connrst(sess); 866 aim_connrst(sess);
870 sess->queue_outgoing = NULL; 867 sess->queue_outgoing = NULL;
871 sess->queue_incoming = NULL; 868 sess->queue_incoming = NULL;
872 aim_initsnachash(sess); 869 aim_initsnachash(sess);
873 sess->msgcookies = NULL; 870 sess->msgcookies = NULL;
874 sess->icq_info = NULL;
875 sess->oft_info = NULL;
876 sess->emailinfo = NULL;
877 sess->locate.userinfo = NULL;
878 sess->locate.request_queue = NULL;
879 sess->locate.waiting_for_response = FALSE;
880 sess->snacid_next = 0x00000001;
881
882 sess->nonblocking = nonblocking; 871 sess->nonblocking = nonblocking;
883 sess->debug = debuglevel; 872 sess->debug = debuglevel;
884 sess->debugcb = defaultdebugcb; 873 sess->debugcb = defaultdebugcb;
885
886 sess->modlistv = NULL; 874 sess->modlistv = NULL;
887 875 sess->snacid_next = 0x00000001;
876
877 sess->locate.userinfo = NULL;
878 sess->locate.torequest = NULL;
879 sess->locate.requested = NULL;
880 sess->locate.waiting_for_response = FALSE;
888 sess->ssi.received_data = 0; 881 sess->ssi.received_data = 0;
889 sess->ssi.numitems = 0; 882 sess->ssi.numitems = 0;
890 sess->ssi.official = NULL; 883 sess->ssi.official = NULL;
891 sess->ssi.local = NULL; 884 sess->ssi.local = NULL;
892 sess->ssi.pending = NULL; 885 sess->ssi.pending = NULL;
893 sess->ssi.timestamp = (time_t)0; 886 sess->ssi.timestamp = (time_t)0;
894 sess->ssi.waiting_for_ack = 0; 887 sess->ssi.waiting_for_ack = 0;
895 888 sess->icq_info = NULL;
896 sess->authinfo = NULL; 889 sess->authinfo = NULL;
890 sess->emailinfo = NULL;
891 sess->oft_info = NULL;
897 892
898 /* 893 /*
899 * This must always be set. Default to the queue-based 894 * This must always be set. Default to the queue-based
900 * version for back-compatibility. 895 * version for back-compatibility.
901 */ 896 */
902 aim_tx_setenqueue(sess, AIM_TX_QUEUED, NULL); 897 aim_tx_setenqueue(sess, AIM_TX_QUEUED, NULL);
903
904 898
905 /* 899 /*
906 * Register all the modules for this session... 900 * Register all the modules for this session...
907 */ 901 */
908 aim__registermodule(sess, misc_modfirst); /* load the catch-all first */ 902 aim__registermodule(sess, misc_modfirst); /* load the catch-all first */