Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.h @ 584:414fbf558f1e
jb_room_setattrib()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 09 Dec 2005 19:49:58 +0100 |
parents | fed6d1e4d7a9 |
children | 7eff2c1481fa |
comparison
equal
deleted
inserted
replaced
583:32ae027a3238 | 584:414fbf558f1e |
---|---|
19 role_moderator, | 19 role_moderator, |
20 role_participant, | 20 role_participant, |
21 role_visitor | 21 role_visitor |
22 }; | 22 }; |
23 | 23 |
24 extern char *strrole[]; // Should match enum above | |
25 | |
24 enum imaffiliation { | 26 enum imaffiliation { |
25 affil_none, | 27 affil_none, |
26 affil_owner, | 28 affil_owner, |
27 affil_admin, | 29 affil_admin, |
28 affil_member, | 30 affil_member, |
29 affil_outcast | 31 affil_outcast |
30 }; | 32 }; |
33 | |
34 extern char *straffil[]; // Should match enum above | |
31 | 35 |
32 enum subscr { | 36 enum subscr { |
33 sub_none, | 37 sub_none, |
34 sub_to, | 38 sub_to, |
35 sub_from, | 39 sub_from, |
37 }; | 41 }; |
38 | 42 |
39 enum findwhat { | 43 enum findwhat { |
40 jidsearch, | 44 jidsearch, |
41 namesearch | 45 namesearch |
46 }; | |
47 | |
48 struct role_affil { | |
49 enum { type_role, type_affil } type; | |
50 union { | |
51 enum imrole role; | |
52 enum imaffiliation affil; | |
53 } val; | |
42 }; | 54 }; |
43 | 55 |
44 // Roster_type is a set of flags, so values should be 2^n | 56 // Roster_type is a set of flags, so values should be 2^n |
45 #define ROSTER_TYPE_USER 1 | 57 #define ROSTER_TYPE_USER 1 |
46 #define ROSTER_TYPE_GROUP 2 | 58 #define ROSTER_TYPE_GROUP 2 |