Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
18919:177552010f1d | 18920:2a9d60d7af82 |
---|---|
931 | 931 |
932 purple_connection_new(account, TRUE, purple_account_get_password(account)); | 932 purple_connection_new(account, TRUE, purple_account_get_password(account)); |
933 } | 933 } |
934 | 934 |
935 void | 935 void |
936 purple_account_unregister(PurpleAccount *account) | 936 purple_account_unregister(PurpleAccount *account, PurpleAccountUnregistrationCb cb, void *user_data) |
937 { | 937 { |
938 g_return_if_fail(account != NULL); | 938 g_return_if_fail(account != NULL); |
939 | 939 |
940 purple_debug_info("account", "Unregistering account %s\n", | 940 purple_debug_info("account", "Unregistering account %s\n", |
941 purple_account_get_username(account)); | 941 purple_account_get_username(account)); |
942 | 942 |
943 purple_connection_new_unregister(account, purple_account_get_password(account)); | 943 purple_connection_new_unregister(account, purple_account_get_password(account), cb, user_data); |
944 } | 944 } |
945 | 945 |
946 static void | 946 static void |
947 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) | 947 request_password_ok_cb(PurpleAccount *account, PurpleRequestFields *fields) |
948 { | 948 { |