| 1 |
#ifndef __MUC_NICKLIST_H |
| 2 |
#define __MUC_NICKLIST_H |
| 3 |
|
| 4 |
#include "nicklist.h" |
| 5 |
#include "muc.h" |
| 6 |
|
| 7 |
|
| 8 |
#define XMPP_NICK(nick) \ |
| 9 |
PROTO_CHECK_CAST(NICK(nick), XMPP_NICK_REC, chat_type, "XMPP") |
| 10 |
|
| 11 |
#define IS_XMPP_NICK(nick) \ |
| 12 |
(XMPP_NICK(nick) ? TRUE : FALSE) |
| 13 |
|
| 14 |
#define xmpp_nicklist_find(channel, name) \ |
| 15 |
XMPP_NICK(nicklist_find(CHANNEL(channel), name)) |
| 16 |
|
| 17 |
|
| 18 |
struct _XMPP_NICK_REC { |
| 19 |
#include "nick-rec.h" |
| 20 |
|
| 21 |
int show; |
| 22 |
char *status; |
| 23 |
|
| 24 |
int affiliation; |
| 25 |
int role; |
| 26 |
}; |
| 27 |
|
| 28 |
__BEGIN_DECLS |
| 29 |
XMPP_NICK_REC *xmpp_nicklist_insert(MUC_REC *, const char *, const char *); |
| 30 |
void xmpp_nicklist_rename(MUC_REC *, XMPP_NICK_REC *, const char *, |
| 31 |
const char *); |
| 32 |
gboolean xmpp_nicklist_modes_changed(XMPP_NICK_REC *, int, int); |
| 33 |
void xmpp_nicklist_set_modes(XMPP_NICK_REC *, int, int); |
| 34 |
void xmpp_nicklist_set_presence(XMPP_NICK_REC *, int, |
| 35 |
const char *); |
| 36 |
|
| 37 |
void muc_nicklist_init(void); |
| 38 |
void muc_nicklist_deinit(void); |
| 39 |
__END_DECLS |
| 40 |
|
| 41 |
#endif |