libpurple/protocols/jabber/buddy.h

branch
cpw.malu.xmpp.idle
changeset 26725
fbfc67bd9fd6
parent 24676
27ea4d447838
parent 26703
17f9a4bef2a3
child 26874
4949f079c2ad
equal deleted inserted replaced
26677:04c4a7a7865f 26725:fbfc67bd9fd6
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,
80 struct { 80 struct {
81 char *version; 81 char *version;
82 char *name; 82 char *name;
83 char *os; 83 char *os;
84 } client; 84 } client;
85 /* tz_off == PURPLE_NO_TZ_OFF when unset */
86 long tz_off;
85 JabberCapsClientInfo *caps; 87 JabberCapsClientInfo *caps;
86 GList *commands; 88 GList *commands;
87 } JabberBuddyResource; 89 } JabberBuddyResource;
88 90
89 void jabber_buddy_free(JabberBuddy *jb); 91 void jabber_buddy_free(JabberBuddy *jb);
120 122
121 gboolean jabber_resource_has_capability(const JabberBuddyResource *jbr, 123 gboolean jabber_resource_has_capability(const JabberBuddyResource *jbr,
122 const gchar *cap); 124 const gchar *cap);
123 gboolean jabber_buddy_has_capability(const JabberBuddy *jb, const gchar *cap); 125 gboolean jabber_buddy_has_capability(const JabberBuddy *jb, const gchar *cap);
124 126
125 #endif /* _PURPLE_JABBER_BUDDY_H_ */ 127 #endif /* PURPLE_JABBER_BUDDY_H_ */

mercurial