changeset 16814:08b9f27cf219

Finish the removal of purple_presence_remove_buddy() and purple_presence_get_buddies(), re-instate the incorrectly removed purple_account_remove_buddies from gaim-compat.h
author Stu Tomlinson <stu@nosnilmot.com>
date Thu, 03 May 2007 15:21:56 +0000
parents c6ca9e25814b
children 3123f888f328
files libpurple/gaim-compat.h libpurple/plugins/perl/common/Status.xs libpurple/status.h
diffstat 3 files changed, 1 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/gaim-compat.h	Thu May 03 14:48:29 2007 +0000
+++ b/libpurple/gaim-compat.h	Thu May 03 15:21:56 2007 +0000
@@ -115,6 +115,7 @@
 #define gaim_account_add_buddy       purple_account_add_buddy
 #define gaim_account_add_buddies     purple_account_add_buddies
 #define gaim_account_remove_buddy    purple_account_remove_buddy
+#define gaim_account_remove_buddies  purple_account_remove_buddies
 
 #define gaim_account_remove_group  purple_account_remove_group
 
@@ -1985,7 +1986,6 @@
 #define gaim_presence_new_for_conv       purple_presence_new_for_conv
 #define gaim_presence_new_for_buddy      purple_presence_new_for_buddy
 #define gaim_presence_destroy            purple_presence_destroy
-#define gaim_presence_remove_buddy       purple_presence_remove_buddy
 #define gaim_presence_add_status         purple_presence_add_status
 #define gaim_presence_add_list           purple_presence_add_list
 #define gaim_presence_set_status_active  purple_presence_set_status_active
--- a/libpurple/plugins/perl/common/Status.xs	Thu May 03 14:48:29 2007 +0000
+++ b/libpurple/plugins/perl/common/Status.xs	Thu May 03 15:21:56 2007 +0000
@@ -113,16 +113,6 @@
 purple_presence_get_active_status(presence)
 	Purple::Presence presence
 
-void
-purple_presence_get_buddies(presence)
-	Purple::Presence presence
-PREINIT:
-	const GList *l;
-PPCODE:
-	for (l = purple_presence_get_buddies(presence); l != NULL; l = l->next) {
-		XPUSHs(sv_2mortal(purple_perl_bless_object(l->data, "Purple::BuddyList::Buddy")));
-	}
-
 const char *
 purple_presence_get_chat_user(presence)
 	Purple::Presence presence
@@ -197,11 +187,6 @@
 	Purple::Conversation conv
 
 void
-purple_presence_remove_buddy(presence, buddy)
-	Purple::Presence presence
-	Purple::BuddyList::Buddy buddy
-
-void
 purple_presence_set_idle(presence, idle, idle_time)
 	Purple::Presence presence
 	gboolean idle
--- a/libpurple/status.h	Thu May 03 14:48:29 2007 +0000
+++ b/libpurple/status.h	Thu May 03 15:21:56 2007 +0000
@@ -752,9 +752,6 @@
  * All statuses added to this list will be destroyed along with
  * the presence.
  *
- * If this presence belongs to a buddy, you must call
- * purple_presence_remove_buddy() first.
- *
  * @param presence The presence to destroy.
  */
 void purple_presence_destroy(PurplePresence *presence);