Changeset 6e9ae72 for protocols/oscar/oscar.c
- Timestamp:
- 2011-12-17T13:50:01Z (13 years ago)
- Branches:
- master
- Children:
- 18c6d36
- Parents:
- 87dddee (diff), 17f057d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/oscar.c
r87dddee r6e9ae72 1072 1072 static void gaim_icq_authgrant(void *data_) { 1073 1073 struct icq_auth *data = data_; 1074 char *uin , message;1074 char *uin; 1075 1075 struct oscar_data *od = (struct oscar_data *)data->ic->proto_data; 1076 1076 1077 1077 uin = g_strdup_printf("%u", data->uin); 1078 message = 0;1079 1078 aim_ssi_auth_reply(od->sess, od->conn, uin, 1, ""); 1079 // char *message = 0; 1080 1080 // aim_send_im_ch4(od->sess, uin, AIM_ICQMSG_AUTHGRANTED, &message); 1081 1081 imcb_ask_add(data->ic, uin, NULL); … … 1219 1219 static int gaim_parse_misses(aim_session_t *sess, aim_frame_t *fr, ...) { 1220 1220 va_list ap; 1221 guint16 chan,nummissed, reason;1221 guint16 nummissed, reason; 1222 1222 aim_userinfo_t *userinfo; 1223 1223 1224 1224 va_start(ap, fr); 1225 chan = (guint16)va_arg(ap, unsigned int);1225 va_arg(ap, unsigned int); /* chan */ 1226 1226 userinfo = va_arg(ap, aim_userinfo_t *); 1227 1227 nummissed = (guint16)va_arg(ap, unsigned int); … … 1335 1335 1336 1336 static int gaim_parse_motd(aim_session_t *sess, aim_frame_t *fr, ...) { 1337 char *msg;1338 1337 guint16 id; 1339 1338 va_list ap; … … 1341 1340 va_start(ap, fr); 1342 1341 id = (guint16)va_arg(ap, unsigned int); 1343 msg = va_arg(ap, char *);1342 va_arg(ap, char *); /* msg */ 1344 1343 va_end(ap); 1345 1344 … … 1361 1360 switch(type) { 1362 1361 case 0x0002: { 1363 guint8 maxrooms; 1364 struct aim_chat_exchangeinfo *exchanges; 1365 int exchangecount; // i; 1366 1367 maxrooms = (guint8)va_arg(ap, unsigned int); 1368 exchangecount = va_arg(ap, int); 1369 exchanges = va_arg(ap, struct aim_chat_exchangeinfo *); 1362 va_arg(ap, unsigned int); /* maxrooms */ 1363 va_arg(ap, int); /* exchangecount */ 1364 va_arg(ap, struct aim_chat_exchangeinfo *); /* exchanges */ 1370 1365 va_end(ap); 1371 1366 … … 1380 1375 break; 1381 1376 case 0x0008: { 1382 char *fqcn, *name, *ck; 1383 guint16 instance, flags, maxmsglen, maxoccupancy, unknown, exchange; 1384 guint8 createperms; 1385 guint32 createtime; 1386 1387 fqcn = va_arg(ap, char *); 1377 char *ck; 1378 guint16 instance, exchange; 1379 1380 va_arg(ap, char *); /* fqcn */ 1388 1381 instance = (guint16)va_arg(ap, unsigned int); 1389 1382 exchange = (guint16)va_arg(ap, unsigned int); 1390 flags = (guint16)va_arg(ap, unsigned int);1391 createtime = va_arg(ap, guint32);1392 maxmsglen = (guint16)va_arg(ap, unsigned int);1393 maxoccupancy = (guint16)va_arg(ap, unsigned int);1394 createperms = (guint8)va_arg(ap, int);1395 unknown = (guint16)va_arg(ap, unsigned int);1396 name = va_arg(ap, char *);1383 va_arg(ap, unsigned int); /* flags */ 1384 va_arg(ap, guint32); /* createtime */ 1385 va_arg(ap, unsigned int); /* maxmsglen */ 1386 va_arg(ap, unsigned int); /* maxoccupancy */ 1387 va_arg(ap, int); /* createperms */ 1388 va_arg(ap, unsigned int); /* unknown */ 1389 va_arg(ap, char *); /* name */ 1397 1390 ck = va_arg(ap, char *); 1398 1391 va_end(ap); … … 1456 1449 static int gaim_chat_info_update(aim_session_t *sess, aim_frame_t *fr, ...) { 1457 1450 va_list ap; 1458 aim_userinfo_t *userinfo; 1459 struct aim_chat_roominfo *roominfo; 1460 char *roomname; 1461 int usercount; 1462 char *roomdesc; 1463 guint16 unknown_c9, unknown_d2, unknown_d5, maxmsglen, maxvisiblemsglen; 1464 guint32 creationtime; 1451 guint16 maxmsglen, maxvisiblemsglen; 1465 1452 struct im_connection *ic = sess->aux_data; 1466 1453 struct chat_connection *ccon = find_oscar_chat_by_conn(ic, fr->conn); 1467 1454 1468 1455 va_start(ap, fr); 1469 roominfo = va_arg(ap, struct aim_chat_roominfo *);1470 roomname = va_arg(ap, char *);1471 usercount= va_arg(ap, int);1472 userinfo = va_arg(ap, aim_userinfo_t *);1473 roomdesc = va_arg(ap, char *);1474 unknown_c9 = (guint16)va_arg(ap, int);1475 creationtime = (guint32)va_arg(ap, unsigned long);1456 va_arg(ap, struct aim_chat_roominfo *); /* roominfo */ 1457 va_arg(ap, char *); /* roomname */ 1458 va_arg(ap, int); /* usercount */ 1459 va_arg(ap, aim_userinfo_t *); /* userinfo */ 1460 va_arg(ap, char *); /* roomdesc */ 1461 va_arg(ap, int); /* unknown_c9 */ 1462 va_arg(ap, unsigned long); /* creationtime */ 1476 1463 maxmsglen = (guint16)va_arg(ap, int); 1477 unknown_d2 = (guint16)va_arg(ap, int);1478 unknown_d5 = (guint16)va_arg(ap, int);1464 va_arg(ap, int); /* unknown_d2 */ 1465 va_arg(ap, int); /* unknown_d5 */ 1479 1466 maxvisiblemsglen = (guint16)va_arg(ap, int); 1480 1467 va_end(ap); … … 1517 1504 #endif 1518 1505 va_list ap; 1519 guint16 code , rateclass;1520 guint32 windowsize, clear, alert, limit, disconnect, currentavg, maxavg;1506 guint16 code; 1507 guint32 windowsize, clear, currentavg; 1521 1508 1522 1509 va_start(ap, fr); 1523 1510 code = (guint16)va_arg(ap, unsigned int); 1524 rateclass= (guint16)va_arg(ap, unsigned int);1511 va_arg(ap, unsigned int); /* rateclass */ 1525 1512 windowsize = (guint32)va_arg(ap, unsigned long); 1526 1513 clear = (guint32)va_arg(ap, unsigned long); 1527 alert = (guint32)va_arg(ap, unsigned long);1528 limit = (guint32)va_arg(ap, unsigned long);1529 disconnect = (guint32)va_arg(ap, unsigned long);1514 va_arg(ap, unsigned long); /* alert */ 1515 va_arg(ap, unsigned long); /* limit */ 1516 va_arg(ap, unsigned long); /* disconnect */ 1530 1517 currentavg = (guint32)va_arg(ap, unsigned long); 1531 maxavg = (guint32)va_arg(ap, unsigned long);1518 va_arg(ap, unsigned long); /* maxavg */ 1532 1519 va_end(ap); 1533 1520 … … 2102 2089 aim_ssi_addbuddies( sess, fr->conn, OSCAR_GROUP, &list, 1, 1 ); 2103 2090 } 2091 else if( st == 0x0A ) 2092 { 2093 imcb_error( sess->aux_data, "Buddy %s is already in your list", list ); 2094 } 2104 2095 else 2105 2096 { … … 2413 2404 struct im_connection * ic = sess->aux_data; 2414 2405 va_list ap; 2415 guint16 type 1, type2;2406 guint16 type2; 2416 2407 char * sn; 2417 2408 2418 2409 va_start(ap, fr); 2419 type1 = va_arg(ap, int);2410 va_arg(ap, int); /* type1 */ 2420 2411 sn = va_arg(ap, char*); 2421 2412 type2 = va_arg(ap, int); … … 2537 2528 2538 2529 if((cur = aim_getconn_type(od->sess, AIM_CONN_TYPE_CHATNAV))) { 2539 int st; 2540 2541 st = aim_chatnav_createroom(od->sess, cur, room, exchange_number); 2530 aim_chatnav_createroom(od->sess, cur, room, exchange_number); 2542 2531 2543 2532 return ret; … … 2566 2555 static int chat_id = 0; 2567 2556 char * chatname, *s; 2568 struct groupchat *c;2569 2557 2570 2558 chatname = g_strdup_printf("%s%s%d", isdigit(*ic->acc->user) ? "icq" : "", … … 2575 2563 *s = '0'; 2576 2564 2577 c = imcb_chat_new(ic, chatname);2578 2565 ret = oscar_chat_join_internal(ic, chatname, NULL, NULL, 4); 2579 2566 aim_chat_invite(od->sess, od->conn, who, "", 4, chatname, 0x0); … … 2581 2568 g_free(chatname); 2582 2569 2583 return NULL;2570 return ret; 2584 2571 } 2585 2572
Note: See TracChangeset
for help on using the changeset viewer.