Mercurial > pidgin
comparison libpurple/account.c @ 19695:1d2002a5735e
propagate from branch 'im.pidgin.pidgin' (head 996cf0c57149ba6e1c714ebb1f11d5d4bac8fb68)
to branch 'im.pidgin.soc.2007.xmpp' (head cdf63b6603891b8cd3e7f629ef5a9a927a153550)
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Wed, 05 Sep 2007 22:32:14 +0000 |
parents | e6364b0679b0 f821d4bffb0a |
children | 481749fc0b6b |
comparison
equal
deleted
inserted
replaced
19653:e21002d106ab | 19695:1d2002a5735e |
---|---|
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", |
921 purple_account_get_username(account)); | 930 purple_account_get_username(account)); |
922 | 931 |
923 purple_connection_new(account, TRUE, purple_account_get_password(account)); | 932 purple_connection_new(account, TRUE, purple_account_get_password(account)); |
933 } | |
934 | |
935 void | |
936 purple_account_unregister(PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data) | |
937 { | |
938 g_return_if_fail(account != NULL); | |
939 | |
940 purple_debug_info("account", "Unregistering account %s\n", | |
941 purple_account_get_username(account)); | |
942 | |
943 purple_connection_new_unregister(account, purple_account_get_password(account), cb, user_data); | |
924 } | 944 } |
925 | 945 |
926 static void | 946 static void |
927 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) | 947 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) |
928 { | 948 { |