Mercurial > pidgin
diff libpurple/connection.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 | 301f1597d41f |
line wrap: on
line diff
--- a/libpurple/connection.c Mon Jul 30 00:05:02 2007 +0000 +++ b/libpurple/connection.c Tue Jul 31 03:50:41 2007 +0000 @@ -158,7 +158,7 @@ } void -purple_connection_new_unregister(PurpleAccount *account, const char *password) +purple_connection_new_unregister(PurpleAccount *account, const char *password, PurpleAccountUnregistrationCb cb, void *user_data) { /* Lots of copy/pasted code to avoid API changes. You might want to integrate that into the previous function when posssible. */ PurpleConnection *gc; @@ -182,7 +182,7 @@ } if (!purple_account_is_disconnected(account)) { - prpl_info->unregister_user(account); + prpl_info->unregister_user(account, cb, user_data); return; } @@ -210,7 +210,7 @@ purple_debug_info("connection", "Unregistering. gc = %p\n", gc); - prpl_info->unregister_user(account); + prpl_info->unregister_user(account, cb, user_data); } void