diff src/account.h @ 11739:a25be0e70a67

[gaim-migrate @ 14030] I changed the GtkStatusBox list stores to use an enum instead of a string to identify the items in the GtkStatusBox. This feels a lot cleaner to me committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 23 Oct 2005 06:46:07 +0000
parents 03c813a42c76
children 4baf0aa3158e
line wrap: on
line diff
--- a/src/account.h	Sun Oct 23 04:48:01 2005 +0000
+++ b/src/account.h	Sun Oct 23 06:46:07 2005 +0000
@@ -551,7 +551,7 @@
  * Returns the account status type with the specified ID.
  *
  * @param account The account.
- * @param id      The ID of the status type.
+ * @param id      The ID of the status type to find.
  *
  * @return The status type if found, or NULL.
  */
@@ -559,6 +559,21 @@
 											 const char *id);
 
 /**
+ * Returns the account status type with the specified primitive.
+ * Note: It is possible for an account to have more than one
+ * GaimStatusType with the same primitive.  In this case, the
+ * first GaimStatusType is returned.
+ *
+ * @param account   The account.
+ * @param primitive The type of the status type to find.
+ *
+ * @return The status if found, or NULL.
+ */
+GaimStatusType *gaim_account_get_status_type_with_primitive(
+							const GaimAccount *account,
+							GaimStatusPrimitive primitive);
+
+/**
  * Returns the account's presence.
  *
  * @param account The account.