Mercurial > hg
comparison mcabber/src/buddies.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 | e88b15cbf2de |
children | 85bbc6ed3796 |
comparison
equal
deleted
inserted
replaced
34:f78ffe7ce43d | 35:a8ceaa3005fd |
---|---|
1 #ifndef __BUDDIES_H__ | 1 #ifndef __BUDDIES_H__ |
2 #define __BUDDIES_H__ 1 | 2 #define __BUDDIES_H__ 1 |
3 | 3 |
4 #include <ncurses.h> | 4 #include <ncurses.h> |
5 #include "jabglue.h" | |
5 #include "list.h" | 6 #include "list.h" |
6 | 7 |
7 /* Definición de tipos */ | 8 /* Definición de tipos */ |
8 typedef struct _buddy_entry_t { | 9 typedef struct _buddy_entry_t { |
9 char *jid; | 10 char *jid; |
15 } buddy_entry_t; | 16 } buddy_entry_t; |
16 | 17 |
17 void bud_DrawRoster(WINDOW * win); | 18 void bud_DrawRoster(WINDOW * win); |
18 void bud_RosterDown(void); | 19 void bud_RosterDown(void); |
19 void bud_RosterUp(void); | 20 void bud_RosterUp(void); |
20 void bud_InitBuddies(int sock); | |
21 void bud_TerminateBuddies(void); | 21 void bud_TerminateBuddies(void); |
22 int bud_BuddyCount(void); | 22 int bud_BuddyCount(void); |
23 void bud_SetBuddyStatus(char *jidfrom, int status); | 23 void bud_SetBuddyStatus(char *jidfrom, enum imstatus status); |
24 void bud_ParseBuddies(char *roster); | |
25 void bud_AddBuddy(int sock); | |
26 void bud_DeleteBuddy(int sock); | |
27 buddy_entry_t *bud_SelectedInfo(void); | 24 buddy_entry_t *bud_SelectedInfo(void); |
28 | 25 |
26 buddy_entry_t *bud_AddBuddy(const char *bjid, const char *bname); | |
27 void bud_DeleteBuddy(buddy_entry_t *buddy); | |
28 | |
29 #endif | 29 #endif |