comparison src/protocols/oscar/family_alert.c @ 13239:f260d319bbbc

[gaim-migrate @ 15605] Renaming a bunch of structs and typedefs to use the same naming scheme as the rest of Gaim committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Feb 2006 16:02:05 +0000
parents f2431a7e33aa
children 87a7c3077c19
comparison
equal deleted inserted replaced
13238:1e855032d7bc 13239:f260d319bbbc
35 * 35 *
36 * @param sess The oscar session. 36 * @param sess The oscar session.
37 * @param conn The email connection for this session. 37 * @param conn The email connection for this session.
38 * @return Return 0 if no errors, otherwise return the error number. 38 * @return Return 0 if no errors, otherwise return the error number.
39 */ 39 */
40 faim_export int aim_email_sendcookies(aim_session_t *sess) 40 faim_export int aim_email_sendcookies(OscarSession *sess)
41 { 41 {
42 aim_conn_t *conn; 42 OscarConnection *conn;
43 aim_frame_t *fr; 43 FlapFrame *fr;
44 aim_snacid_t snacid; 44 aim_snacid_t snacid;
45 45
46 if (!sess || !(conn = aim_conn_findbygroup(sess, OSCAR_FAMILY_ALERT))) 46 if (!sess || !(conn = aim_conn_findbygroup(sess, OSCAR_FAMILY_ALERT)))
47 return -EINVAL; 47 return -EINVAL;
48 48
90 * email account (screenname@domainname.com). If this is the 90 * email account (screenname@domainname.com). If this is the
91 * first 0x0007 SNAC you've received since you signed on, or if 91 * first 0x0007 SNAC you've received since you signed on, or if
92 * this is just a periodic status update, this will also contain 92 * this is just a periodic status update, this will also contain
93 * the number of unread emails that you have. 93 * the number of unread emails that you have.
94 */ 94 */
95 static int parseinfo(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 95 static int parseinfo(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs)
96 { 96 {
97 int ret = 0; 97 int ret = 0;
98 aim_rxcallback_t userfunc; 98 aim_rxcallback_t userfunc;
99 struct aim_emailinfo *new; 99 struct aim_emailinfo *new;
100 aim_tlvlist_t *tlvlist; 100 aim_tlvlist_t *tlvlist;
166 * 166 *
167 * @param sess The oscar session. 167 * @param sess The oscar session.
168 * @param conn The email connection for this session. 168 * @param conn The email connection for this session.
169 * @return Return 0 if no errors, otherwise return the error number. 169 * @return Return 0 if no errors, otherwise return the error number.
170 */ 170 */
171 faim_export int aim_email_activate(aim_session_t *sess) 171 faim_export int aim_email_activate(OscarSession *sess)
172 { 172 {
173 aim_conn_t *conn; 173 OscarConnection *conn;
174 aim_frame_t *fr; 174 FlapFrame *fr;
175 aim_snacid_t snacid; 175 aim_snacid_t snacid;
176 176
177 if (!sess || !(conn = aim_conn_findbygroup(sess, OSCAR_FAMILY_ALERT))) 177 if (!sess || !(conn = aim_conn_findbygroup(sess, OSCAR_FAMILY_ALERT)))
178 return -EINVAL; 178 return -EINVAL;
179 179
193 aim_tx_enqueue(sess, fr); 193 aim_tx_enqueue(sess, fr);
194 194
195 return 0; 195 return 0;
196 } 196 }
197 197
198 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 198 static int snachandler(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs)
199 { 199 {
200 200
201 if (snac->subtype == 0x0007) 201 if (snac->subtype == 0x0007)
202 return parseinfo(sess, mod, rx, snac, bs); 202 return parseinfo(sess, mod, rx, snac, bs);
203 203
204 return 0; 204 return 0;
205 } 205 }
206 206
207 static void email_shutdown(aim_session_t *sess, aim_module_t *mod) 207 static void email_shutdown(OscarSession *sess, aim_module_t *mod)
208 { 208 {
209 while (sess->emailinfo) { 209 while (sess->emailinfo) {
210 struct aim_emailinfo *tmp = sess->emailinfo; 210 struct aim_emailinfo *tmp = sess->emailinfo;
211 sess->emailinfo = sess->emailinfo->next; 211 sess->emailinfo = sess->emailinfo->next;
212 free(tmp->cookie16); 212 free(tmp->cookie16);
217 } 217 }
218 218
219 return; 219 return;
220 } 220 }
221 221
222 faim_internal int email_modfirst(aim_session_t *sess, aim_module_t *mod) 222 faim_internal int email_modfirst(OscarSession *sess, aim_module_t *mod)
223 { 223 {
224 224
225 mod->family = 0x0018; 225 mod->family = 0x0018;
226 mod->version = 0x0001; 226 mod->version = 0x0001;
227 mod->toolid = 0x0010; 227 mod->toolid = 0x0010;