Mercurial > hg
view mcabber/src/jabglue.h @ 192:62bc2992216b
[/trunk] Changeset 204 by mikael
* Correctly set "agent" type...
* Free all jidtodisp results with g_free()
* Bugfix: Make sure to strip resource part when adding a buddy
* Bugfix: do not treat users and agents separately (it can leads to 2 entries
with the same jid).
author | mikael |
---|---|
date | Fri, 06 May 2005 17:05:53 +0000 |
parents | ba51d1737086 |
children | e01bf6d9b4b8 |
line wrap: on
line source
#ifndef __JABGLUE_H__ #define __JABGLUE_H__ 1 #include <glib.h> #include "../libjabber/jabber.h" extern jconn jc; extern char imstatus2char[]; // Status chars: '_', 'o', 'i', 'f', 'd', 'c', 'n', 'a' enum imstatus { offline, available, invisible, freeforchat, dontdisturb, occupied, notavail, away, imstatus_size }; enum agtype { unknown, groupchat, transport, search }; jconn jb_connect(const char *jid, unsigned int port, int ssl, const char *pass); void jb_disconnect(void); void jb_main(); void jb_addbuddy(const char *jid, const char *group); inline enum imstatus jb_getstatus(); void jb_setstatus(enum imstatus st, char *msg); void jb_send_msg(const char *, const char *); void jb_keepalive(); inline void jb_reset_keepalive(); void jb_set_keepalive_delay(unsigned int delay); #endif /* __JABGLUE_H__ */