X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Flists.h;h=c39325ea0ea869bf646e5495eeb812fe6066335d;hp=98a2d82ebd1047cb88c286420fd2795efe9f6d68;hb=03628dbeaf40a9de34b3eb6d5bf6dd34eed8248c;hpb=9dc44d9babf9fe57f6123190369ceea27fdd7921 diff --git a/src/ngircd/lists.h b/src/ngircd/lists.h index 98a2d82e..c39325ea 100644 --- a/src/ngircd/lists.h +++ b/src/ngircd/lists.h @@ -2,31 +2,47 @@ * ngIRCd -- The Next Generation IRC Daemon * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de) * - * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen - * der GNU General Public License (GPL), wie von der Free Software Foundation - * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2 - * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version. - * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste - * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. - * - * $Id: lists.h,v 1.1 2002/05/27 11:22:39 alex Exp $ - * - * lists.h: Verwaltung der "IRC-Listen": Ban, Invite, ... (Header) + * 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. */ #ifndef __lists_h__ #define __lists_h__ +/** + * @file + * Management of IRC lists (header) + */ -GLOBAL VOID Lists_Init PARAMS(( VOID )); -GLOBAL VOID Lists_Exit PARAMS(( VOID )); +#include "portab.h" +#include "client.h" -GLOBAL BOOLEAN Lists_CheckInvited PARAMS(( CLIENT *Client, CHANNEL *Chan )); -GLOBAL BOOLEAN Lists_CheckBanned PARAMS(( CLIENT *Client, CHANNEL *Chan )); +struct list_elem; +struct list_head { + struct list_elem *first; +}; -#endif +GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *)); +GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *)); + +GLOBAL bool Lists_Check PARAMS((struct list_head *head, CLIENT *client )); +GLOBAL bool Lists_CheckDupeMask PARAMS((const struct list_head *head, const char *mask )); +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 )); + +GLOBAL bool Lists_AlreadyRegistered PARAMS(( const struct list_head *head, const char *Mask)); + +GLOBAL void Lists_Free PARAMS(( struct list_head *head )); + +GLOBAL const char *Lists_MakeMask PARAMS((const char *Pattern)); +GLOBAL const char *Lists_GetMask PARAMS(( const struct list_elem *e )); + +#endif /* -eof- */