comparison src/protocols/icq/gaim_icq.c @ 9285:7a8aa87164ae

[gaim-migrate @ 10088] Ok I'm done. This started out as shx's patch to make add/remove buddy/buddies take GaimBuddy and GaimGroup's in various places. I think his diff was like 2000 lines and mine is like 5000. I tried to clean up blist.c a bit and make it more uniform. There are some more g_return_if_fail() checks. Removed some code that was deprecated--it's probably been long enough. Removed some #include <multi.h>'s. Make blist.xml saving happen on a timer, like prefs.xml and accounts.xml. Sorry if this doesn't merge cleanly with whatever you're doing. People should really test this a lot. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 15 Jun 2004 02:37:27 +0000
parents ef881489396e
children db62420a53a2
comparison
equal deleted inserted replaced
9284:fe0291162312 9285:7a8aa87164ae
374 static void icq_keepalive(struct gaim_connection *gc) { 374 static void icq_keepalive(struct gaim_connection *gc) {
375 struct icq_data *id = (struct icq_data *)gc->proto_data; 375 struct icq_data *id = (struct icq_data *)gc->proto_data;
376 icq_KeepAlive(id->link); 376 icq_KeepAlive(id->link);
377 } 377 }
378 378
379 static void icq_add_buddy(struct gaim_connection *gc, const char *who) { 379 static void icq_add_buddy(struct gaim_connection *gc, GaimBuddy *buddy) {
380 struct icq_data *id = (struct icq_data *)gc->proto_data; 380 struct icq_data *id = (struct icq_data *)gc->proto_data;
381 icq_ContactAdd(id->link, atol(who)); 381 icq_ContactAdd(id->link, atol(buddy->name));
382 icq_ContactSetVis(id->link, atol(who), TRUE); 382 icq_ContactSetVis(id->link, atol(buddy->name), TRUE);
383 } 383 }
384 384
385 static void icq_add_buddies(struct gaim_connection *gc, GList *whos) { 385 static void icq_add_buddies(struct gaim_connection *gc, GList *buddies) {
386 struct icq_data *id = (struct icq_data *)gc->proto_data; 386 struct icq_data *id = (struct icq_data *)gc->proto_data;
387 while (whos) { 387 while (buddies) {
388 icq_ContactAdd(id->link, atol(whos->data)); 388 Gaimbuddy *buddy = buddies->data;
389 icq_ContactSetVis(id->link, atol(whos->data), TRUE); 389 icq_ContactAdd(id->link, atol(buddy->name));
390 whos = whos->next; 390 icq_ContactSetVis(id->link, atol(buddy->name), TRUE);
391 buddies = buddies->next;
391 } 392 }
392 } 393 }
393 394
394 static void icq_rem_buddy(struct gaim_connection *gc, char *who, char *group) { 395 static void icq_rem_buddy(struct gaim_connection *gc, char *who, char *group) {
395 struct icq_data *id = (struct icq_data *)gc->proto_data; 396 struct icq_data *id = (struct icq_data *)gc->proto_data;