comparison libpurple/protocols/jabber/buddy.h @ 26569:bc7fac8e2f79

propagate from branch 'im.pidgin.pidgin' (head f144c6bda9daf701aa891c875fce7a4dedd611ae) to branch 'im.pidgin.cpw.darkrain42.xmpp.bosh' (head 8b60514f2b44295e87ee3587669aec5059556149)
author Paul Aurich <paul@darkrain42.org>
date Sun, 05 Apr 2009 21:13:10 +0000
parents 05693f6885a4 5767b7698c73
children 3912f55a1633
comparison
equal deleted inserted replaced
26545:b01e8e76c59d 26569:bc7fac8e2f79
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
21 */ 21 */
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 typedef enum { 25 typedef enum {
26 JABBER_BUDDY_STATE_UNKNOWN = -2, 26 JABBER_BUDDY_STATE_UNKNOWN = -2,
27 JABBER_BUDDY_STATE_ERROR = -1, 27 JABBER_BUDDY_STATE_ERROR = -1,
28 JABBER_BUDDY_STATE_UNAVAILABLE = 0, 28 JABBER_BUDDY_STATE_UNAVAILABLE = 0,
79 struct { 79 struct {
80 char *version; 80 char *version;
81 char *name; 81 char *name;
82 char *os; 82 char *os;
83 } client; 83 } client;
84 /* tz_off == PURPLE_NO_TZ_OFF when unset */
85 long tz_off;
84 struct { 86 struct {
85 JabberCapsClientInfo *info; 87 JabberCapsClientInfo *info;
86 GList *exts; 88 GList *exts;
87 } caps; 89 } caps;
88 GList *commands; 90 GList *commands;
122 124
123 gboolean jabber_resource_has_capability(const JabberBuddyResource *jbr, 125 gboolean jabber_resource_has_capability(const JabberBuddyResource *jbr,
124 const gchar *cap); 126 const gchar *cap);
125 gboolean jabber_buddy_has_capability(const JabberBuddy *jb, const gchar *cap); 127 gboolean jabber_buddy_has_capability(const JabberBuddy *jb, const gchar *cap);
126 128
127 #endif /* _PURPLE_JABBER_BUDDY_H_ */ 129 #endif /* PURPLE_JABBER_BUDDY_H_ */