Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/jabglue.h @ 29:86837ff0554c
[/trunk] Changeset 45 by mikael
* Switch to libjabber. (Does NOT work at all yet)
jabglue.c is a wrapper around the libjabber library.
author | mikael |
---|---|
date | Mon, 28 Mar 2005 20:12:48 +0000 |
parents | |
children | a8ceaa3005fd |
comparison
equal
deleted
inserted
replaced
28:0cd8025eebee | 29:86837ff0554c |
---|---|
1 #ifndef __JABGLUE_H__ | |
2 #define __JABGLUE_H__ 1 | |
3 | |
4 #include "../libjabber/jabber.h" | |
5 | |
6 extern jconn jc; | |
7 | |
8 enum imstatus { | |
9 offline = 0, | |
10 available, | |
11 invisible, | |
12 freeforchat, | |
13 dontdisturb, | |
14 occupied, | |
15 notavail, | |
16 away, | |
17 imstatus_size | |
18 }; | |
19 | |
20 static char imstatus2char[imstatus_size] = { | |
21 '_', 'o', 'i', 'f', 'd', 'c', 'n', 'a' | |
22 }; | |
23 | |
24 jconn jb_connect(const char *servername, unsigned int port, int ssl, | |
25 const char *jid, const char *pass, | |
26 const char *resource); | |
27 void jb_disconnect(void); | |
28 void jb_keepalive(); | |
29 void jb_main(); | |
30 //int jb_status(); | |
31 | |
32 #endif /* __JABGLUE_H__ */ |