diff libpurple/account.c @ 18920:2a9d60d7af82

Implemented a callback for unregistering, mirroring the registration callback. Since this is a new API, I can do it properly by passing it right in the unregister function call, instead of having a separate function for setting it.
author Andreas Monitzer <pidgin@monitzer.com>
date Tue, 31 Jul 2007 03:50:41 +0000
parents 033b128f7c21
children f821d4bffb0a
line wrap: on
line diff
--- a/libpurple/account.c	Mon Jul 30 00:05:02 2007 +0000
+++ b/libpurple/account.c	Tue Jul 31 03:50:41 2007 +0000
@@ -933,14 +933,14 @@
 }
 
 void
-purple_account_unregister(PurpleAccount *account)
+purple_account_unregister(PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data)
 {
 	g_return_if_fail(account != NULL);
 	
 	purple_debug_info("account", "Unregistering account %s\n",
 					  purple_account_get_username(account));
 	
-	purple_connection_new_unregister(account, purple_account_get_password(account));
+	purple_connection_new_unregister(account, purple_account_get_password(account), cb, user_data);
 }
 
 static void