summaryrefslogtreecommitdiff
path: root/libpurple/accounts.h
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2021-12-03 01:56:48 -0600
committerGary Kramlich <grim@reaperworld.com>2021-12-03 01:56:48 -0600
commit50feb6aada8f7848a7db4090e3af338348e982fc (patch)
treea7bcc2a71b8983d0d21b813d79c00f3eb8805cbe /libpurple/accounts.h
parent1589ac4e36c82a44f635f12c7bf9eae1d25a91d8 (diff)
downloadpidgin-50feb6aada8f7848a7db4090e3af338348e982fc.tar.gz
Create the PurpleAccountManager API
This replaces most of the purple_accounts_ API, but not quite everything. The functions that have been replaced have been marked as deprecated and libpurple has been updated to use the new API. Testing Done: * Connected an XMPP account * Verified chat and ims worked * Verified that the saved statuses window didn't crash * Ran the new unit tests. Reviewed at https://reviews.imfreedom.org/r/1137/
Diffstat (limited to 'libpurple/accounts.h')
-rw-r--r--libpurple/accounts.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpurple/accounts.h b/libpurple/accounts.h
index 06497f3d3d..e93dd52344 100644
--- a/libpurple/accounts.h
+++ b/libpurple/accounts.h
@@ -119,6 +119,7 @@ G_BEGIN_DECLS
*
* Adds an account to the list of accounts.
*/
+G_DEPRECATED_FOR(purple_account_manager_add)
void purple_accounts_add(PurpleAccount *account);
/**
@@ -127,6 +128,7 @@ void purple_accounts_add(PurpleAccount *account);
*
* Removes an account from the list of accounts.
*/
+G_DEPRECATED_FOR(purple_account_manager_remove)
void purple_accounts_remove(PurpleAccount *account);
/**
@@ -148,6 +150,7 @@ void purple_accounts_delete(PurpleAccount *account);
*
* Reorders an account.
*/
+G_DEPRECATED_FOR(purple_account_manager_reorder)
void purple_accounts_reorder(PurpleAccount *account, guint new_index);
/**
@@ -157,6 +160,7 @@ void purple_accounts_reorder(PurpleAccount *account, guint new_index);
*
* Returns: (element-type PurpleAccount) (transfer none): A list of all accounts.
*/
+G_DEPRECATED_FOR(purple_account_manager_get_all)
GList *purple_accounts_get_all(void);
/**
@@ -167,6 +171,7 @@ GList *purple_accounts_get_all(void);
* Returns: (element-type PurpleAccount) (transfer container): A list of all
* enabled accounts.
*/
+G_DEPRECATED_FOR(purple_account_manager_get_active)
GList *purple_accounts_get_all_active(void);
/**
@@ -178,6 +183,7 @@ GList *purple_accounts_get_all_active(void);
*
* Returns: (transfer none): The account, if found, or %NULL otherwise.
*/
+G_DEPRECATED_FOR(purple_account_manager_find)
PurpleAccount *purple_accounts_find(const char *name, const char *protocol);
/**