Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.h Sun Jun 17 01:16:55 2007 +0000 +++ b/libpurple/protocols/jabber/buddy.h Sun Jun 17 03:51:19 2007 +0000 @@ -25,6 +25,15 @@ #include "jabber.h" #include "usermood.h" +/* for some reason, Psi uses the first one instead of the second one as defined in the XEP */ +#ifndef USE_XEP_0084 +#define AVATARNAMESPACEDATA "http://jabber.org/protocol/avatar#data" +#define AVATARNAMESPACEMETA "http://jabber.org/protocol/avatar#metadata" +#else +#define AVATARNAMESPACEDATA "http://www.xmpp.org/extensions/xep-0084.html#ns-data" +#define AVATARNAMESPACEMETA "http://www.xmpp.org/extensions/xep-0084.html#ns-metadata" +#endif + typedef enum { JABBER_BUDDY_STATE_UNKNOWN = -2, JABBER_BUDDY_STATE_ERROR = -1,