pidgin.next.minor: b20668b7: Add purple_buddy_get_protocol_data() and...

rlaager at pidgin.im rlaager at pidgin.im
Thu Oct 30 18:56:02 EDT 2008


-----------------------------------------------------------------
Revision: b20668b7f9977bd4d0096faface181965decd8e2
Ancestor: ef94cfcae4f60dc48d2f84789acfdafd0b6f5d8c
Author: rlaager at pidgin.im
Date: 2008-10-30T20:07:46
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/b20668b7f9977bd4d0096faface181965decd8e2

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

ChangeLog: 

Add purple_buddy_get_protocol_data() and purple_buddy_set_protocol_data()
accessors for PurpleBuddy->proto_data.

-------------- next part --------------
============================================================
--- ChangeLog.API	09bd1c73e92aa9e2e48a51c0e677ecc7d41fc100
+++ ChangeLog.API	50fbd3c343e00830f00c01f45a079ec38718cc5d
@@ -1,5 +1,11 @@ Pidgin and Finch: The Pimpin' Penguin IM
 Pidgin and Finch: The Pimpin' Penguin IM Clients That're Good for the Soul
 
+version 2.6.0 (??/??/????):
+	libpurple:
+		Added:
+		* purple_buddy_get_protocol_data
+		* purple_buddy_set_protocol_data
+
 version 2.5.0 (08/18/2008):
 	libpurple:
 		Added:
============================================================
--- libpurple/blist.c	b90d368f010ac7bb099c92e49dc8b35c4a1cf570
+++ libpurple/blist.c	3be9204fcf4ed17c4285dcd35bf55067713254e3
@@ -1234,6 +1234,23 @@ purple_buddy_get_icon(const PurpleBuddy 
 	return buddy->icon;
 }
 
+gpointer
+purple_buddy_get_protocol_data(const PurpleBuddy *buddy)
+{
+	g_return_val_if_fail(buddy != NULL, NULL);
+
+	return buddy->proto_data;
+}
+
+void
+purple_buddy_set_protocol_data(PurpleBuddy *buddy, gpointer data)
+{
+	g_return_if_fail(buddy != NULL);
+
+	buddy->proto_data = data;
+}
+
+
 void purple_blist_add_chat(PurpleChat *chat, PurpleGroup *group, PurpleBlistNode *node)
 {
 	PurpleBlistNode *cnode = (PurpleBlistNode*)chat;
============================================================
--- libpurple/blist.h	51498284711eabf924d7fbcb8062a2edd4e641b3
+++ libpurple/blist.h	d4900f6d8914905cd7414b5d3539085b017def4c
@@ -470,6 +470,32 @@ PurpleBuddyIcon *purple_buddy_get_icon(c
 PurpleBuddyIcon *purple_buddy_get_icon(const PurpleBuddy *buddy);
 
 /**
+ * Returns a buddy's protocol-specific data.
+ *
+ * This should only be called from the associated prpl.
+ *
+ * @param buddy The buddy.
+ * @return      The protocol data.
+ *
+ * @see purple_buddy_set_protocol_data()
+ * @since 2.6.0
+ */
+gpointer purple_buddy_get_protocol_data(const PurpleBuddy *buddy);
+
+/**
+ * Sets a buddy's protocol-specific data.
+ *
+ * This should only be called from the associated prpl.
+ *
+ * @param buddy The buddy.
+ * @param data  The data.
+ *
+ * @see purple_buddy_get_protocol_data()
+ * @since 2.6.0
+ */
+void purple_buddy_set_protocol_data(PurpleBuddy *buddy, gpointer data);
+
+/**
  * Returns a buddy's contact.
  *
  * @param buddy The buddy.


More information about the Commits mailing list