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)
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.
11 c7f07523 2002-12-12 alex * Management of IRC lists: ban, invite, ... (header)
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"
20 fa7bb279 2006-12-07 fw struct list_elem;
22 fa7bb279 2006-12-07 fw struct list_head {
23 fa7bb279 2006-12-07 fw struct list_elem *first;
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 *));
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 ));
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 ));
36 fa7bb279 2006-12-07 fw GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const char *Mask));
38 fa7bb279 2006-12-07 fw GLOBAL void Lists_Free PARAMS(( struct list_head *head ));
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 ));