Mercurial > pidgin.yaz
comparison libpurple/protocols/jabber/buddy.h @ 17581:5ab3c6bb95b4
Implemented receiving other people's avatars via XEP-0084. Note that this code now includes a workaround for a non-spec incompatibility for the current ejabberd PEP implementation, and doesn't use the correct namespace due to Psi using the wrong one (outdated?). Works fine though, and the vcard-based approach is retained.
author | Andreas Monitzer <pidgin@monitzer.com> |
---|---|
date | Sun, 17 Jun 2007 03:51:19 +0000 |
parents | 7754d39d70c5 |
children | beaeb7fb4dbd |
comparison
equal
deleted
inserted
replaced
17580:7754d39d70c5 | 17581:5ab3c6bb95b4 |
---|---|
22 #ifndef _PURPLE_JABBER_BUDDY_H_ | 22 #ifndef _PURPLE_JABBER_BUDDY_H_ |
23 #define _PURPLE_JABBER_BUDDY_H_ | 23 #define _PURPLE_JABBER_BUDDY_H_ |
24 | 24 |
25 #include "jabber.h" | 25 #include "jabber.h" |
26 #include "usermood.h" | 26 #include "usermood.h" |
27 | |
28 /* for some reason, Psi uses the first one instead of the second one as defined in the XEP */ | |
29 #ifndef USE_XEP_0084 | |
30 #define AVATARNAMESPACEDATA "http://jabber.org/protocol/avatar#data" | |
31 #define AVATARNAMESPACEMETA "http://jabber.org/protocol/avatar#metadata" | |
32 #else | |
33 #define AVATARNAMESPACEDATA "http://www.xmpp.org/extensions/xep-0084.html#ns-data" | |
34 #define AVATARNAMESPACEMETA "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata" | |
35 #endif | |
27 | 36 |
28 typedef enum { | 37 typedef enum { |
29 JABBER_BUDDY_STATE_UNKNOWN = -2, | 38 JABBER_BUDDY_STATE_UNKNOWN = -2, |
30 JABBER_BUDDY_STATE_ERROR = -1, | 39 JABBER_BUDDY_STATE_ERROR = -1, |
31 JABBER_BUDDY_STATE_UNAVAILABLE = 0, | 40 JABBER_BUDDY_STATE_UNAVAILABLE = 0, |