Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/user.h @ 26991:2a95e8bd9b80
Parse the invite message out of the pending membership list so that it can
be presented to the user when someone adds us to their buddy list.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Tue, 19 May 2009 03:16:45 +0000 |
parents | f5188d4d84e3 |
children | 452043d200f0 88c48bcb5455 |
comparison
equal
deleted
inserted
replaced
26990:16255111b180 | 26991:2a95e8bd9b80 |
---|---|
103 | 103 |
104 int list_op; /**< Which lists the user is in */ | 104 int list_op; /**< Which lists the user is in */ |
105 | 105 |
106 guint membership_id[5]; /**< The membershipId sent by the contacts server, | 106 guint membership_id[5]; /**< The membershipId sent by the contacts server, |
107 indexed by the list it belongs to */ | 107 indexed by the list it belongs to */ |
108 | |
109 char *invite_message; /**< Invite message of user request */ | |
108 }; | 110 }; |
109 | 111 |
110 /************************************************************************** | 112 /************************************************************************** |
111 ** @name User API * | 113 ** @name User API * |
112 **************************************************************************/ | 114 **************************************************************************/ |
288 * @param user The user. | 290 * @param user The user. |
289 * @param info The client information. | 291 * @param info The client information. |
290 */ | 292 */ |
291 void msn_user_set_client_caps(MsnUser *user, GHashTable *info); | 293 void msn_user_set_client_caps(MsnUser *user, GHashTable *info); |
292 | 294 |
295 /** | |
296 * Sets the invite message for a user. | |
297 * | |
298 * @param user The user. | |
299 * @param message The invite message for a user. | |
300 */ | |
301 void msn_user_set_invite_message(MsnUser *user, const char *message); | |
302 | |
293 | 303 |
294 /** | 304 /** |
295 * Returns the passport account for a user. | 305 * Returns the passport account for a user. |
296 * | 306 * |
297 * @param user The user. | 307 * @param user The user. |
369 * @param user The user. | 379 * @param user The user. |
370 * | 380 * |
371 * @return The client information. | 381 * @return The client information. |
372 */ | 382 */ |
373 GHashTable *msn_user_get_client_caps(const MsnUser *user); | 383 GHashTable *msn_user_get_client_caps(const MsnUser *user); |
384 | |
385 /** | |
386 * Returns the invite message for a user. | |
387 * | |
388 * @param user The user. | |
389 * | |
390 * @return The user's invite message. | |
391 */ | |
392 const char *msn_user_get_invite_message(const MsnUser *user); | |
374 | 393 |
375 /** | 394 /** |
376 * check to see if user is online | 395 * check to see if user is online |
377 */ | 396 */ |
378 gboolean | 397 gboolean |