changeset 10341:681c69bfc267

[gaim-migrate @ 11550] Add silcgaim_add_buddies back committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 09 Dec 2004 23:03:13 +0000
parents 84d73473c019
children 476bf80b8ad8
files src/protocols/silc/buddy.c src/protocols/silc/silc.c src/protocols/silc/silcgaim.h
diffstat 3 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/silc/buddy.c	Thu Dec 09 05:22:18 2004 +0000
+++ b/src/protocols/silc/buddy.c	Thu Dec 09 23:03:13 2004 +0000
@@ -1330,6 +1330,15 @@
 	silcgaim_add_buddy_i(gc, buddy, FALSE);
 }
 
+void silcgaim_add_buddies(GaimConnection *gc, GList *buddies, GList *groups)
+{
+	GList *curb = buddies;
+	while (curb != NULL) {
+		silcgaim_add_buddy_i(gc, curb->data, TRUE);
+		curb = curb->next;
+	}
+}
+
 void silcgaim_remove_buddy(GaimConnection *gc, GaimBuddy *buddy,
 			   GaimGroup *group)
 {
--- a/src/protocols/silc/silc.c	Thu Dec 09 05:22:18 2004 +0000
+++ b/src/protocols/silc/silc.c	Thu Dec 09 23:03:13 2004 +0000
@@ -1519,7 +1519,7 @@
 	silcgaim_idle_set,			/* set_idle */
 	silcgaim_change_passwd,		/* change_passwd */
 	silcgaim_add_buddy,			/* add_buddy */
-	NULL,						/* add_buddies */
+	silcgaim_add_buddies,		/* add_buddies */
 	silcgaim_remove_buddy,		/* remove_buddy */
 	NULL,						/* remove_buddies */
 	NULL,						/* add_permit */
--- a/src/protocols/silc/silcgaim.h	Thu Dec 09 05:22:18 2004 +0000
+++ b/src/protocols/silc/silcgaim.h	Thu Dec 09 23:03:13 2004 +0000
@@ -98,6 +98,7 @@
 				SilcVerifyPublicKey completion, void *context);
 GList *silcgaim_buddy_menu(GaimBuddy *buddy);
 void silcgaim_add_buddy(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group);
+void silcgaim_add_buddies(GaimConnection *gc, GList *buddies, GList *groups);
 void silcgaim_remove_buddy(GaimConnection *gc, GaimBuddy *buddy, GaimGroup *group);
 void silcgaim_buddy_keyagr_request(SilcClient client,
 				   SilcClientConnection conn,