2002-05-27 13:22:39 +02:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
|
|
|
* Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
|
|
|
|
*
|
2002-12-12 13:23:43 +01:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
* Please read the file COPYING, README and AUTHORS for more information.
|
2002-05-27 13:22:39 +02:00
|
|
|
*
|
2002-12-12 13:23:43 +01:00
|
|
|
* Management of IRC lists: ban, invite, ... (header)
|
2002-05-27 13:22:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __lists_h__
|
|
|
|
#define __lists_h__
|
2006-12-07 18:57:20 +01:00
|
|
|
#include "portab.h"
|
|
|
|
#include "client.h"
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
struct list_elem;
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
struct list_head {
|
|
|
|
struct list_elem *first;
|
|
|
|
};
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2002-06-02 17:23:16 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *));
|
|
|
|
GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *));
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL bool Lists_Check PARAMS((struct list_head *head, CLIENT *client ));
|
|
|
|
GLOBAL bool Lists_CheckDupeMask PARAMS((const struct list_head *head, const char *mask ));
|
2002-06-09 15:18:40 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL bool Lists_Add PARAMS((struct list_head *header, const char *Mask, bool OnlyOnce ));
|
|
|
|
GLOBAL void Lists_Del PARAMS((struct list_head *head, const char *Mask ));
|
2002-09-08 02:56:14 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const char *Mask));
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL void Lists_Free PARAMS(( struct list_head *head ));
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2008-04-19 14:11:25 +02:00
|
|
|
GLOBAL const char *Lists_MakeMask PARAMS((const char *Pattern));
|
2006-12-07 18:57:20 +01:00
|
|
|
GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e ));
|
2002-05-27 13:22:39 +02:00
|
|
|
|
2006-12-07 18:57:20 +01:00
|
|
|
#endif
|
2002-05-27 13:22:39 +02:00
|
|
|
/* -eof- */
|