Mercurial > pidgin
comparison libpurple/protocols/oscar/family_icq.c @ 30400:11c54d781835
Removed unused "flags" parameter.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Thu, 05 Aug 2010 22:57:01 +0000 |
parents | a347a4cd1caf |
children | a1964c506f29 |
comparison
equal
deleted
inserted
replaced
30399:3eb2dd8a1cc7 | 30400:11c54d781835 |
---|---|
155 byte_stream_putle8(&bs, 0x02); | 155 byte_stream_putle8(&bs, 0x02); |
156 byte_stream_putle8(&bs, 0x01); | 156 byte_stream_putle8(&bs, 0x01); |
157 byte_stream_putle8(&bs, 0x00); | 157 byte_stream_putle8(&bs, 0x00); |
158 byte_stream_putle8(&bs, !auth_required); | 158 byte_stream_putle8(&bs, !auth_required); |
159 | 159 |
160 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs); | 160 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, snacid, &bs); |
161 | 161 |
162 byte_stream_destroy(&bs); | 162 byte_stream_destroy(&bs); |
163 | 163 |
164 return 0; | 164 return 0; |
165 } | 165 } |
205 byte_stream_putle16(&bs, 0x042e); /* shrug. */ | 205 byte_stream_putle16(&bs, 0x042e); /* shrug. */ |
206 byte_stream_putle16(&bs, passwdlen+1); | 206 byte_stream_putle16(&bs, passwdlen+1); |
207 byte_stream_putraw(&bs, (const guint8 *)passwd, passwdlen); | 207 byte_stream_putraw(&bs, (const guint8 *)passwd, passwdlen); |
208 byte_stream_putle8(&bs, '\0'); | 208 byte_stream_putle8(&bs, '\0'); |
209 | 209 |
210 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs); | 210 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, snacid, &bs); |
211 | 211 |
212 byte_stream_destroy(&bs); | 212 byte_stream_destroy(&bs); |
213 | 213 |
214 return 0; | 214 return 0; |
215 } | 215 } |
244 byte_stream_putle16(&bs, 0x07d0); /* I command thee. */ | 244 byte_stream_putle16(&bs, 0x07d0); /* I command thee. */ |
245 byte_stream_putle16(&bs, snacid); /* eh. */ | 245 byte_stream_putle16(&bs, snacid); /* eh. */ |
246 byte_stream_putle16(&bs, request_type); /* shrug. */ | 246 byte_stream_putle16(&bs, request_type); /* shrug. */ |
247 byte_stream_putle32(&bs, atoi(uin)); | 247 byte_stream_putle32(&bs, atoi(uin)); |
248 | 248 |
249 flap_connection_send_snac_with_priority(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs, FALSE); | 249 flap_connection_send_snac_with_priority(od, conn, SNAC_FAMILY_ICQ, 0x0002, snacid, &bs, FALSE); |
250 | 250 |
251 byte_stream_destroy(&bs); | 251 byte_stream_destroy(&bs); |
252 | 252 |
253 /* Keep track of this request and the ICQ number and request ID */ | 253 /* Keep track of this request and the ICQ number and request ID */ |
254 info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); | 254 info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); |
291 byte_stream_putle16(&bs, 0x07d0); /* I command thee. */ | 291 byte_stream_putle16(&bs, 0x07d0); /* I command thee. */ |
292 byte_stream_putle16(&bs, snacid); /* eh. */ | 292 byte_stream_putle16(&bs, snacid); /* eh. */ |
293 byte_stream_putle16(&bs, request_type); /* shrug. */ | 293 byte_stream_putle16(&bs, request_type); /* shrug. */ |
294 byte_stream_putle32(&bs, atoi(uin)); | 294 byte_stream_putle32(&bs, atoi(uin)); |
295 | 295 |
296 flap_connection_send_snac_with_priority(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs, FALSE); | 296 flap_connection_send_snac_with_priority(od, conn, SNAC_FAMILY_ICQ, 0x0002, snacid, &bs, FALSE); |
297 | 297 |
298 byte_stream_destroy(&bs); | 298 byte_stream_destroy(&bs); |
299 | 299 |
300 /* Keep track of this request and the ICQ number and request ID */ | 300 /* Keep track of this request and the ICQ number and request ID */ |
301 info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); | 301 info = (struct aim_icq_info *)g_new0(struct aim_icq_info, 1); |
396 byte_stream_put16(&bs, 0x0000); | 396 byte_stream_put16(&bs, 0x0000); |
397 byte_stream_put16(&bs, xmllen); | 397 byte_stream_put16(&bs, xmllen); |
398 byte_stream_putstr(&bs, xml); | 398 byte_stream_putstr(&bs, xml); |
399 byte_stream_put8(&bs, 0x00); | 399 byte_stream_put8(&bs, 0x00); |
400 | 400 |
401 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, 0x0000, snacid, &bs); | 401 flap_connection_send_snac(od, conn, SNAC_FAMILY_ICQ, 0x0002, snacid, &bs); |
402 | 402 |
403 byte_stream_destroy(&bs); | 403 byte_stream_destroy(&bs); |
404 | 404 |
405 g_free(xml); | 405 g_free(xml); |
406 g_free(stripped); | 406 g_free(stripped); |
726 | 726 |
727 memcpy(&info->icbm_cookie, cookie, 8); | 727 memcpy(&info->icbm_cookie, cookie, 8); |
728 | 728 |
729 od->icq_info = g_slist_prepend(od->icq_info, info); | 729 od->icq_info = g_slist_prepend(od->icq_info, info); |
730 | 730 |
731 flap_connection_send_snac_with_priority(od, conn, 0x0004, 0x0006, 0x0000, snacid, &bs, FALSE); | 731 flap_connection_send_snac_with_priority(od, conn, 0x0004, 0x0006, snacid, &bs, FALSE); |
732 | 732 |
733 byte_stream_destroy(&bs); | 733 byte_stream_destroy(&bs); |
734 } | 734 } |
735 | 735 |
736 g_free(uin); | 736 g_free(uin); |