Mercurial > hg
comparison mcabber/src/jabglue.h @ 35:a8ceaa3005fd
[/trunk] Changeset 51 by mikael
Work on libjabber integration. This is a big patch...
* Remove socket.[ch] server.[ch]
We have now fully switched to libjabber.
* Roster is fetched, and buddies are added to the buddylist
* Can send/receive messages using libjabber
* Presence messages are handled. I have added statuses, as there only were
online / offline statuses.
* Use halfdelay to have a non-blocking getch().
And use a timeout in jb_main().
* Use utf8_{encode,decode}
author | mikael |
---|---|
date | Mon, 04 Apr 2005 19:13:58 +0000 |
parents | 86837ff0554c |
children | 1441ba37a5c1 |
comparison
equal
deleted
inserted
replaced
34:f78ffe7ce43d | 35:a8ceaa3005fd |
---|---|
19 | 19 |
20 static char imstatus2char[imstatus_size] = { | 20 static char imstatus2char[imstatus_size] = { |
21 '_', 'o', 'i', 'f', 'd', 'c', 'n', 'a' | 21 '_', 'o', 'i', 'f', 'd', 'c', 'n', 'a' |
22 }; | 22 }; |
23 | 23 |
24 jconn jb_connect(const char *servername, unsigned int port, int ssl, | 24 jconn jb_connect(const char *jid, unsigned int port, int ssl, const char *pass); |
25 const char *jid, const char *pass, | |
26 const char *resource); | |
27 void jb_disconnect(void); | 25 void jb_disconnect(void); |
28 void jb_keepalive(); | 26 void jb_keepalive(); |
29 void jb_main(); | 27 void jb_main(); |
30 //int jb_status(); | 28 void jb_send_msg(const char *, const char *); |
31 | 29 |
32 #endif /* __JABGLUE_H__ */ | 30 #endif /* __JABGLUE_H__ */ |