pidgin.next.minor: d0b1119b: Hide PurpleBlist

grim at pidgin.im grim at pidgin.im
Sun Nov 2 06:10:31 EST 2008


-----------------------------------------------------------------
Revision: d0b1119bfd235f8bd11c81f36dc9dc6421e68d8d
Ancestor: 48459d414ca1ecedc43f0340b6bf2c645f488d7d
Author: grim at pidgin.im
Date: 2008-11-02T09:25:16
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/d0b1119bfd235f8bd11c81f36dc9dc6421e68d8d

Modified files:
        ChangeLog.API libpurple/blist.c libpurple/blist.h

ChangeLog: 

Hide PurpleBlist
Added purple_blist_get_buddies function

-------------- next part --------------
============================================================
--- ChangeLog.API	dc2cc5a7238b65cdabccb4c7f82c96efee4ae950
+++ ChangeLog.API	72e9b15915c8e1ab3f8f10649359a12ffa70ad29
@@ -8,6 +8,7 @@ version 2.6.0 (??/??/????):
 		* purple_connection_get_protocol_data
 		* purple_connection_set_protocol_data
 		* purple_buddy_get_local_buddy_alias
+		* purple_blist_get_buddies
 
 		Deprecated:
 		* purple_buddy_get_local_alias
============================================================
--- libpurple/blist.c	0065037a32b6948a319767f7c648f9ec2e33ae68
+++ libpurple/blist.c	10804e926f6d777e15db74976d5c1dd4df193098
@@ -699,6 +699,12 @@ purple_blist_get_root()
 	return purplebuddylist ? purplebuddylist->root : NULL;
 }
 
+GHashTable *
+purple_blist_get_buddies()
+{
+	return purplebuddylist ? purplebuddylist->buddies : NULL;
+}
+
 void purple_blist_show()
 {
 	PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
============================================================
--- libpurple/blist.h	3ebe49fb0d6b9ea11034963b473f24aaf88e3070
+++ libpurple/blist.h	5444412414fcf24a435516ecd4c55b32594f4cb2
@@ -156,9 +156,6 @@ struct _PurpleChat {
 	PurpleAccount *account; /**< The account this chat is attached to */
 };
 
-#endif /* PURPLE_HIDE_STRUCTS && PURPLE_BLIST_STRUCTS */
-
-
 /**
  * The Buddy List
  */
@@ -168,6 +165,8 @@ struct _PurpleBuddyList {
 	void *ui_data;                /**< UI-specific data. */
 };
 
+#endif /* PURPLE_HIDE_STRUCTS && PURPLE_BLIST_STRUCTS */
+
 /**
  * Buddy list UI operations.
  *
@@ -236,6 +235,14 @@ PurpleBlistNode *purple_blist_get_root(v
 PurpleBlistNode *purple_blist_get_root(void);
 
 /**
+ * Returns the hash table of every buddy in the list.
+ *
+ * @return The hash table of every buddy in the list.
+ * @since 2.6.0
+ */
+GHashTable *purple_blist_get_buddies(void);
+
+/**
  * Returns the next node of a given node. This function is to be used to iterate
  * over the tree returned by purple_get_blist.
  *


More information about the Commits mailing list