comparison libpurple/account.c @ 17880: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
comparison
equal deleted inserted replaced
17879:108f3b42976f 17880:ca0b86f3dbd2
911 PURPLE_DBUS_UNREGISTER_POINTER(account); 911 PURPLE_DBUS_UNREGISTER_POINTER(account);
912 g_free(account); 912 g_free(account);
913 } 913 }
914 914
915 void 915 void
916 purple_account_set_register_callback(PurpleAccount *account, PurpleAccountRegistrationCb cb, void *user_data)
917 {
918 g_return_if_fail(account != NULL);
919
920 account->registration_cb = cb;
921 account->registration_cb_user_data = user_data;
922 }
923
924 void
916 purple_account_register(PurpleAccount *account) 925 purple_account_register(PurpleAccount *account)
917 { 926 {
918 g_return_if_fail(account != NULL); 927 g_return_if_fail(account != NULL);
919 928
920 purple_debug_info("account", "Registering account %s\n", 929 purple_debug_info("account", "Registering account %s\n",