libpurple/purpleprivate.h

changeset 41830
5bc664b848a5
parent 41754
abf413211063
child 41869
7bd5bff547b4
--- a/libpurple/purpleprivate.h	Mon Oct 24 01:27:22 2022 -0500
+++ b/libpurple/purpleprivate.h	Tue Oct 25 23:08:13 2022 -0500
@@ -374,6 +374,21 @@
  */
 void purple_whiteboard_manager_shutdown(void);
 
+/**
+ * purple_account_set_enabled_plain:
+ * @account: The instance.
+ * @enabled: Whether or not the account is enabled.
+ *
+ * This is a temporary method until we overhaul serialization of accounts.
+ *
+ * This method sets the enabled state of an account without any side effects.
+ * Its primary usage is when loading accounts from disk, as without this, the
+ * account attempts to connect immediately.
+ *
+ * Since: 3.0.0
+ */
+G_GNUC_INTERNAL void purple_account_set_enabled_plain(PurpleAccount *account, gboolean enabled);
+
 G_END_DECLS
 
 #endif /* PURPLE_PRIVATE_H */

mercurial