changeset 29527:c855d321fc78

Add the buddy-caps-changed signal in order to tell when a buddy's media caps have changed.
author maiku@pidgin.im
date Tue, 20 Oct 2009 20:04:06 +0000
parents 44e949b676f0
children 4f14b03a9d50
files ChangeLog.API libpurple/blist.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog.API	Tue Oct 20 00:12:33 2009 +0000
+++ b/ChangeLog.API	Tue Oct 20 20:04:06 2009 +0000
@@ -6,6 +6,7 @@
 		* purple_account_get_name_for_display
 		* purple_network_get_all_local_system_ips
 		* purple_uuid_random
+		* buddy-caps-changed blist signal
 		* ui-caps-changed media manager signal
 	
 	Pidgin:
--- a/libpurple/blist.c	Tue Oct 20 00:12:33 2009 +0000
+++ b/libpurple/blist.c	Tue Oct 20 20:04:06 2009 +0000
@@ -3187,6 +3187,13 @@
 										PURPLE_SUBTYPE_BLIST_NODE),
 						 purple_value_new(PURPLE_TYPE_STRING));
 
+	purple_signal_register(handle, "buddy-caps-changed",
+			purple_marshal_VOID__POINTER_INT_INT, NULL,
+			3, purple_value_new(PURPLE_TYPE_SUBTYPE,
+				PURPLE_SUBTYPE_BLIST_BUDDY),
+			purple_value_new(PURPLE_TYPE_INT),
+			purple_value_new(PURPLE_TYPE_INT));
+
 	purple_signal_connect(purple_accounts_get_handle(), "account-created",
 			handle,
 			PURPLE_CALLBACK(purple_blist_buddies_cache_add_account),