libpurple/purpleaccount.h

changeset 43091
f77300d83505
parent 43063
45e4e7e39d7f
child 43160
a9cc7d8325ba
--- a/libpurple/purpleaccount.h	Sun Nov 24 04:19:04 2024 -0600
+++ b/libpurple/purpleaccount.h	Mon Nov 25 21:08:01 2024 -0600
@@ -665,6 +665,35 @@
 PURPLE_AVAILABLE_IN_3_0
 void purple_account_thaw_notify_settings(PurpleAccount *account);
 
+/**
+ * purple_account_compare:
+ * @a: (nullable): the first instance
+ * @b: (nullable): the second instance
+ *
+ * Compares accounts @a and @b.
+ *
+ * Returns: less than 0 if @a should be sorted before @b, 0 if they should be
+ *          sorted equally, and greater than 0 if @a should be sorted after @b.
+ *
+ * Since: 3.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+int purple_account_compare(PurpleAccount *a, PurpleAccount *b);
+
+/**
+ * purple_account_equal:
+ * @a: (nullable): the first instance
+ * @b: (nullable): the second instance
+ *
+ * Checks two [class@Account] objects for equality.
+ *
+ * Returns: true if @a and @b are equal; false otherwise.
+ *
+ * Since: 3.0
+ */
+PURPLE_AVAILABLE_IN_3_0
+gboolean purple_account_equal(PurpleAccount *a, PurpleAccount *b);
+
 G_END_DECLS
 
 #endif /* PURPLE_ACCOUNT_H */

mercurial