]> arthur.barton.de Git - ngircd-alex.git/blob - src/ngircd/lists.h
420f7751431996823bc119bcd8179afd76f4070d
[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  * $Id: lists.h,v 1.13 2006/12/07 17:57:20 fw Exp $
12  *
13  * Management of IRC lists: ban, invite, ... (header)
14  */
15
16
17 #ifndef __lists_h__
18 #define __lists_h__
19 #include "portab.h"
20 #include "client.h"
21
22 struct list_elem;
23
24 struct list_head {
25         struct list_elem *first;
26 };
27
28
29 GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *));
30 GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *));
31
32 GLOBAL bool Lists_Check PARAMS((struct list_head *head, CLIENT *client ));
33 GLOBAL bool Lists_CheckDupeMask PARAMS((const struct list_head *head, const char *mask ));
34
35 GLOBAL bool Lists_Add PARAMS((struct list_head *header, const char *Mask, bool OnlyOnce ));
36 GLOBAL void Lists_Del PARAMS((struct list_head *head, const char *Mask ));
37
38 GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const char *Mask));
39
40 GLOBAL void Lists_Free PARAMS(( struct list_head *head ));
41
42 GLOBAL char *Lists_MakeMask PARAMS(( char *Pattern ));
43 GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
44
45 #endif
46 /* -eof- */