comparison src/protocols/oscar/email.c @ 4871:0b64f386a7b8

[gaim-migrate @ 5201] Nathan is SO the man. He pointed out that oscar was leaking about 500k per IM. No, just kidding. But this should help Gaim leak a little less. It was all Nathan. He is so S-M-R-T. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Mar 2003 07:59:17 +0000
parents 9810ce8e7a96
children 26837f462a66
comparison
equal deleted inserted replaced
4870:773135edda4a 4871:0b64f386a7b8
72 * this is just a periodic status update, this will also contain 72 * this is just a periodic status update, this will also contain
73 * the number of unread emails that you have. 73 * the number of unread emails that you have.
74 */ 74 */
75 static int parseinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 75 static int parseinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs)
76 { 76 {
77 int ret = 0;
77 aim_rxcallback_t userfunc; 78 aim_rxcallback_t userfunc;
78 struct aim_emailinfo *new; 79 struct aim_emailinfo *new;
79 aim_tlvlist_t *tlvlist; 80 aim_tlvlist_t *tlvlist;
80 fu8_t *cookie8, *cookie16; 81 fu8_t *cookie8, *cookie16;
81 int tmp, havenewmail = 0; /* Used to tell the client we have _new_ mail */ 82 int tmp, havenewmail = 0; /* Used to tell the client we have _new_ mail */
123 } 124 }
124 new->domain = aim_gettlv_str(tlvlist, 0x0082, 1); 125 new->domain = aim_gettlv_str(tlvlist, 0x0082, 1);
125 new->flag = aim_gettlv16(tlvlist, 0x0084, 1); 126 new->flag = aim_gettlv16(tlvlist, 0x0084, 1);
126 127
127 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) 128 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
128 return userfunc(sess, rx, new, havenewmail); 129 ret = userfunc(sess, rx, new, havenewmail);
129 130
130 return 0; 131 return ret;
131 } 132 }
132 133
133 /** 134 /**
134 * Subtype 0x0016 - Send something or other 135 * Subtype 0x0016 - Send something or other
135 * 136 *