comparison src/protocols/jabber/presence.h @ 9954:a9fb4493ae22

[gaim-migrate @ 10851] a combination of the hacking i've been doing on jabber, and the patch datallah just sent me committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 05 Sep 2004 17:10:39 +0000
parents e4a27c9aec4c
children 09876d57c520
comparison
equal deleted inserted replaced
9953:d908907d9441 9954:a9fb4493ae22
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 #ifndef _GAIM_JABBER_PRESENCE_H_ 22 #ifndef _GAIM_JABBER_PRESENCE_H_
23 #define _GAIM_JABBER_PRESENCE_H_ 23 #define _GAIM_JABBER_PRESENCE_H_
24 24
25 #include "buddy.h"
25 #include "jabber.h" 26 #include "jabber.h"
26 #include "xmlnode.h" 27 #include "xmlnode.h"
27 28
28 #define JABBER_STATE_AWAY (0x02 | UC_UNAVAILABLE) 29 void jabber_presence_send(GaimConnection *gc, GaimStatus *status);
29 #define JABBER_STATE_CHAT (0x04) 30 xmlnode *jabber_presence_create(JabberBuddyState state, const char *msg, int priority);
30 #define JABBER_STATE_XA (0x08 | UC_UNAVAILABLE)
31 #define JABBER_STATE_DND (0x10 | UC_UNAVAILABLE)
32 #define JABBER_STATE_ERROR (0x20 | UC_UNAVAILABLE)
33
34 void jabber_presence_send(GaimConnection *gc, const char *state,
35 const char *msg);
36 xmlnode *jabber_presence_create(GaimStatus *status);
37 void jabber_presence_parse(JabberStream *js, xmlnode *packet); 31 void jabber_presence_parse(JabberStream *js, xmlnode *packet);
38 void jabber_presence_subscription_set(JabberStream *js, const char *who, 32 void jabber_presence_subscription_set(JabberStream *js, const char *who,
39 const char *type); 33 const char *type);
40 void jabber_presence_fake_to_self(JabberStream *js, const char *away_state, const char *msg); 34 void jabber_presence_fake_to_self(JabberStream *js, const GaimStatus *status);
35 void gaim_status_to_jabber(const GaimStatus *status, JabberBuddyState *state, const char **msg, int *priority);
41 36
42 #endif /* _GAIM_JABBER_PRESENCE_H_ */ 37 #endif /* _GAIM_JABBER_PRESENCE_H_ */