Check-in Lasker-2.2.3 tar ball from samba.org
[capablanca.git] / lasker-2.2.3 / src / lists.h
1
2 #ifndef _LISTS_H
3 #define _LISTS_H
4
5 /* yes, it's all cheesy..  there is no significance to the order, but make
6    sure it matches the order in lists.c */
7
8 GENSTRUCT enum ListWhich {L_ADMIN = 0, L_REMOVEDCOM, L_FILTER, L_BAN, L_ABUSER,
9                           L_MUZZLE, L_CMUZZLE, L_C1MUZZLE, L_C24MUZZLE, L_C46MUZZLE, L_C49MUZZLE,
10                           L_C50MUZZLE, L_C51MUZZLE, L_FM, L_IM, L_GM, L_WGM, L_BLIND, L_TEAMS,
11                           L_COMPUTER, L_TD, 
12                           L_CENSOR, L_GNOTIFY, L_NOPLAY, L_NOTIFY, L_CHANNEL, L_FOLLOW,
13                           L_REMOTE,
14                           L_LASTLIST /* this MUST be the last list, add all lists before it */
15 };
16
17 GENSTRUCT enum ListPerm {P_HEAD = 0, P_GOD, P_ADMIN, P_PUBLIC, P_PERSONAL};
18
19 typedef struct {enum ListPerm rights; char *name;} ListTable;
20
21 GENSTRUCT struct List {
22         enum ListWhich which;
23         int numMembers;
24         char **m_member; _LEN(numMembers)
25         struct List *next;
26 };
27
28
29 #endif   /* _LISTS_H */