Mercurial > pidgin
diff libpurple/protocols/jabber/buddy.h @ 27794:eb2d17945ce3
jabber: Store the "own JabberBuddy" in the JabberStream* struct.
This simplifies the roster code a little (don't need to recalculate our
own JID for string comparisons) and fixes a few FIXMEs in buddy.c.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 01 Aug 2009 22:12:30 +0000 |
parents | 2dfb639b4f26 |
children | c585572e80dd |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.h Sat Aug 01 21:45:24 2009 +0000 +++ b/libpurple/protocols/jabber/buddy.h Sat Aug 01 22:12:30 2009 +0000 @@ -33,10 +33,12 @@ JABBER_BUDDY_STATE_DND } JabberBuddyState; +typedef struct _JabberBuddy JabberBuddy; + #include "jabber.h" #include "caps.h" -typedef struct _JabberBuddy { +struct _JabberBuddy { GList *resources; char *error_msg; enum { @@ -52,7 +54,7 @@ JABBER_SUB_BOTH = (JABBER_SUB_TO | JABBER_SUB_FROM), JABBER_SUB_REMOVE = 1 << 4 } subscription; -} JabberBuddy; +}; typedef struct _JabberAdHocCommands { char *jid;