comparison mcabber/src/roster.h @ 848:a9161d2dc414

Introduce special buffer stuff Update roster and commands: add support for a new "special" kind of buffer. A special buffer "[status]" is automatically created at startup.
author Mikael Berthe <mikael@lilotux.net>
date Mon, 08 May 2006 23:45:58 +0200
parents c2d7d9dd4193
children 4f1a93faffea
comparison
equal deleted inserted replaced
847:e1b7f71b0b1c 848:a9161d2dc414
61 // Roster_type is a set of flags, so values should be 2^n 61 // Roster_type is a set of flags, so values should be 2^n
62 #define ROSTER_TYPE_USER 1 62 #define ROSTER_TYPE_USER 1
63 #define ROSTER_TYPE_GROUP 2 63 #define ROSTER_TYPE_GROUP 2
64 #define ROSTER_TYPE_AGENT 4 64 #define ROSTER_TYPE_AGENT 4
65 #define ROSTER_TYPE_ROOM 8 65 #define ROSTER_TYPE_ROOM 8
66 #define ROSTER_TYPE_SPECIAL 16
66 67
67 // Flags: 68 // Flags:
68 #define ROSTER_FLAG_MSG 1 // Message not read 69 #define ROSTER_FLAG_MSG 1 // Message not read
69 #define ROSTER_FLAG_HIDE 2 // Group hidden (or buddy window closed) 70 #define ROSTER_FLAG_HIDE 2 // Group hidden (or buddy window closed)
70 #define ROSTER_FLAG_LOCK 4 // Node should not be removed from buddylist 71 #define ROSTER_FLAG_LOCK 4 // Node should not be removed from buddylist
78 79
79 #define BUDDATA(glist_node) ((glist_node)->data) 80 #define BUDDATA(glist_node) ((glist_node)->data)
80 #define CURRENT_JID buddy_getjid(BUDDATA(current_buddy)) 81 #define CURRENT_JID buddy_getjid(BUDDATA(current_buddy))
81 82
82 // Prototypes... 83 // Prototypes...
84 void roster_init(void);
83 GSList *roster_add_group(const char *name); 85 GSList *roster_add_group(const char *name);
84 GSList *roster_add_user(const char *jid, const char *name, const char *group, 86 GSList *roster_add_user(const char *jid, const char *name, const char *group,
85 guint type, enum subscr esub); 87 guint type, enum subscr esub);
86 GSList *roster_find(const char *jidname, enum findwhat type, guint roster_type); 88 GSList *roster_find(const char *jidname, enum findwhat type, guint roster_type);
87 void roster_del_user(const char *jid); 89 void roster_del_user(const char *jid);