Mercurial > pidgin
comparison libpurple/protocols/jabber/usermood.h @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | 3b1070cb4f29 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
28 | 28 |
29 /* Implementation of XEP-0107 */ | 29 /* Implementation of XEP-0107 */ |
30 | 30 |
31 void jabber_mood_init(void); | 31 void jabber_mood_init(void); |
32 | 32 |
33 void jabber_mood_set(JabberStream *js, | 33 /** |
34 const char *mood, /* must be one of the valid strings defined in the XEP */ | 34 * Sets / unsets the mood for the specified account. The mood passed in |
35 const char *text /* might be NULL */); | 35 * must either be NULL, "", or one of the moods returned by |
36 * jabber_get_moods(). | |
37 * | |
38 * @param js The JabberStream object. | |
39 * @param mood The mood to set, NULL, or "" | |
40 * @param text Optional text that goes along with a mood. Only used when | |
41 * setting a mood (not when unsetting a mood). | |
42 * | |
43 * @return FALSE if an invalid mood was specified, or TRUE otherwise. | |
44 */ | |
45 gboolean | |
46 jabber_mood_set(JabberStream *js, const char *mood, const char *text); | |
36 | 47 |
37 PurpleMood *jabber_get_moods(PurpleAccount *account); | 48 PurpleMood *jabber_get_moods(PurpleAccount *account); |
38 | 49 |
39 #endif /* PURPLE_JABBER_USERMOOD_H_ */ | 50 #endif /* PURPLE_JABBER_USERMOOD_H_ */ |