Blame


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