]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/lists.h
6458e7825377e2f55e9cedde0f423687d9d27081
[ngircd-alex.git] / src / ngircd / lists.h
1 /*
2  * ngIRCd -- The Next Generation IRC Daemon
3  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  * Please read the file COPYING, README and AUTHORS for more information.
10  *
11  * Management of IRC lists: ban, invite, ... (header)
12  */
13
14
15 #ifndef __lists_h__
16 #define __lists_h__
17 #include "portab.h"
18 #include "client.h"
19
20 struct list_elem;
21
22 struct list_head {
23         struct list_elem *first;
24 };
25
26
27 GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *));
28 GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *));
29
30 GLOBAL bool Lists_Check PARAMS((struct list_head *head, CLIENT *client ));
31 GLOBAL bool Lists_CheckDupeMask PARAMS((const struct list_head *head, const char *mask ));
32
33 GLOBAL bool Lists_Add PARAMS((struct list_head *header, const char *Mask, bool OnlyOnce ));
34 GLOBAL void Lists_Del PARAMS((struct list_head *head, const char *Mask ));
35
36 GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const char *Mask));
37
38 GLOBAL void Lists_Free PARAMS(( struct list_head *head ));
39
40 GLOBAL const char *Lists_MakeMask PARAMS((const char *Pattern));
41 GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
42
43 #endif
44 /* -eof- */