Mercurial > pidgin.yaz
diff libpurple/account.c @ 17607:ca0b86f3dbd2
Implemented a callback for a successful registration, supplying the username and password to the application when available, in the way explained by Sean.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Fri, 22 Jun 2007 00:05:35 +0000 |
parents | 759cd72bd2ff |
children | 5c1ed6296b56 |
line wrap: on
line diff
--- a/libpurple/account.c Wed Jun 20 10:18:52 2007 +0000 +++ b/libpurple/account.c Fri Jun 22 00:05:35 2007 +0000 @@ -913,6 +913,15 @@ } void +purple_account_set_register_callback(PurpleAccount *account, PurpleAccountRegistrationCb cb, void *user_data) +{ + g_return_if_fail(account != NULL); + + account->registration_cb = cb; + account->registration_cb_user_data = user_data; +} + +void purple_account_register(PurpleAccount *account) { g_return_if_fail(account != NULL);