comparison mcabber/src/roster.h @ 78:d001d8fb876d

[/trunk] Changeset 92 by mikael * Improve roster. Next step is to switch to it, from "buddies".
author mikael
date Sat, 16 Apr 2005 20:34:00 +0000
parents 9b7f0d313e33
children ff8046b6de02
comparison
equal deleted inserted replaced
77:32f54ad6d729 78:d001d8fb876d
24 #define ROSTER_FLAG_HIDE 2 // Group hidden (or buddy window closed) 24 #define ROSTER_FLAG_HIDE 2 // Group hidden (or buddy window closed)
25 #define ROSTER_FLAG_LOCK 4 // Node should not be removed from buddylist 25 #define ROSTER_FLAG_LOCK 4 // Node should not be removed from buddylist
26 // ROSTER_FLAG_LOCAL 8 // Buddy not on server's roster (??) 26 // ROSTER_FLAG_LOCAL 8 // Buddy not on server's roster (??)
27 27
28 extern GList *buddylist; 28 extern GList *buddylist;
29 extern GList *current_buddy;
29 30
30 // prototypes... 31 // Macros...
31 GSList *roster_add_group(char *name); 32
32 GSList *roster_add_user(char *jid, char *name, char *group, guint type); 33 #define CURRENT_JID buddy_getjid(current_buddy->data)
33 void roster_del_user(char *jid); 34
34 void roster_setstatus(char *jid, enum imstatus bstat); 35 // Prototypes...
36 GSList *roster_add_group(const char *name);
37 GSList *roster_add_user(const char *jid, const char *name, const char *group,
38 guint type);
39 void roster_del_user(const char *jid);
40 void roster_setstatus(const char *jid, enum imstatus bstat);
35 41
36 void buddylist_hide_offline_buddies(int hide); 42 void buddylist_hide_offline_buddies(int hide);
37 void buddy_hide_group(gpointer rosterdata, int hide); 43 void buddy_hide_group(gpointer rosterdata, int hide);
38 void buddylist_build(void); 44 void buddylist_build(void);
39 const char *buddy_getjid(gpointer rosterdata); 45 const char *buddy_getjid(gpointer rosterdata);