Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
5517:e9b9fbf89c42 | 5518:bf2a7a7b739d |
---|---|
57 /** | 57 /** |
58 * A collection of users. | 58 * A collection of users. |
59 */ | 59 */ |
60 struct _MsnUsers | 60 struct _MsnUsers |
61 { | 61 { |
62 GList *users; /** The list of users. */ | 62 size_t count; /**< The number of users. */ |
63 | |
64 GList *users; /**< The list of users. */ | |
63 }; | 65 }; |
66 | |
67 /**************************************************************************/ | |
68 /** @name User API */ | |
69 /**************************************************************************/ | |
70 /*@{*/ | |
64 | 71 |
65 /** | 72 /** |
66 * Creates a new user structure. | 73 * Creates a new user structure. |
67 * | 74 * |
68 * @param session The MSN session. | 75 * @param session The MSN session. |
218 * | 225 * |
219 * @return The client information. | 226 * @return The client information. |
220 */ | 227 */ |
221 GHashTable *msn_user_get_client_caps(const MsnUser *user); | 228 GHashTable *msn_user_get_client_caps(const MsnUser *user); |
222 | 229 |
230 /*@}*/ | |
231 | |
232 /**************************************************************************/ | |
233 /** @name User List API */ | |
234 /**************************************************************************/ | |
235 /*@{*/ | |
236 | |
223 /** | 237 /** |
224 * Creates a new MsnUsers structure. | 238 * Creates a new MsnUsers structure. |
225 * | 239 * |
226 * @return A new MsnUsers structure. | 240 * @return A new MsnUsers structure. |
227 */ | 241 */ |
247 * | 261 * |
248 * @param users The users list. | 262 * @param users The users list. |
249 * @param user The user. | 263 * @param user The user. |
250 */ | 264 */ |
251 void msn_users_remove(MsnUsers *users, MsnUser *user); | 265 void msn_users_remove(MsnUsers *users, MsnUser *user); |
266 | |
267 /** | |
268 * Returns the number of users in a users list. | |
269 * | |
270 * @param users The users list. | |
271 * | |
272 * @return The number of users. | |
273 */ | |
274 size_t msn_users_get_count(const MsnUsers *users); | |
252 | 275 |
253 /** | 276 /** |
254 * Finds a user with the specified passport. | 277 * Finds a user with the specified passport. |
255 * | 278 * |
256 * @param users A list of users. | 279 * @param users A list of users. |
258 * | 281 * |
259 * @return The user if found, or @c NULL otherwise. | 282 * @return The user if found, or @c NULL otherwise. |
260 */ | 283 */ |
261 MsnUser *msn_users_find_with_passport(MsnUsers *users, const char *passport); | 284 MsnUser *msn_users_find_with_passport(MsnUsers *users, const char *passport); |
262 | 285 |
286 /*@}*/ | |
287 | |
263 #endif /* _MSN_USER_H_ */ | 288 #endif /* _MSN_USER_H_ */ |