diff src/protocols/msn/user.h @ 5518:bf2a7a7b739d

[gaim-migrate @ 5918] Reworked the group support. You should now be able to delete groups by dragging a user into them and then back out. I stress _should_. This will likely have bugs. I cleaned up the ones I found, I think, but I'm not 100% confident here :) Please test! Preferably on test accounts, but it won't kill things, just reorder stuff. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 25 May 2003 22:51:19 +0000
parents ad9887c91a59
children b7e113a59b51
line wrap: on
line diff
--- a/src/protocols/msn/user.h	Sun May 25 19:47:13 2003 +0000
+++ b/src/protocols/msn/user.h	Sun May 25 22:51:19 2003 +0000
@@ -59,9 +59,16 @@
  */
 struct _MsnUsers
 {
-	GList *users; /** The list of users. */
+	size_t count; /**< The number of users. */
+
+	GList *users; /**< The list of users.   */
 };
 
+/**************************************************************************/
+/** @name User API                                                        */
+/**************************************************************************/
+/*@{*/
+
 /**
  * Creates a new user structure.
  * 
@@ -220,6 +227,13 @@
  */
 GHashTable *msn_user_get_client_caps(const MsnUser *user);
 
+/*@}*/
+
+/**************************************************************************/
+/** @name User List API                                                   */
+/**************************************************************************/
+/*@{*/
+
 /**
  * Creates a new MsnUsers structure.
  *
@@ -251,6 +265,15 @@
 void msn_users_remove(MsnUsers *users, MsnUser *user);
 
 /**
+ * Returns the number of users in a users list.
+ *
+ * @param users The users list.
+ * 
+ * @return The number of users.
+ */
+size_t msn_users_get_count(const MsnUsers *users);
+
+/**
  * Finds a user with the specified passport.
  *
  * @param users    A list of users.
@@ -260,4 +283,6 @@
  */
 MsnUser *msn_users_find_with_passport(MsnUsers *users, const char *passport);
 
+/*@}*/
+
 #endif /* _MSN_USER_H_ */