X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Flists.h;h=6458e7825377e2f55e9cedde0f423687d9d27081;hb=6e8cf51bb216f956e7a6fdb5c61b0f2799bf8d2d;hp=5d500a5a6d24c4815a84bdd6a8768ff46993d1d0;hpb=f3c0c7c0b3c12101675f09679785e6e603f555b0;p=ngircd-alex.git diff --git a/src/ngircd/lists.h b/src/ngircd/lists.h index 5d500a5a..6458e782 100644 --- a/src/ngircd/lists.h +++ b/src/ngircd/lists.h @@ -2,42 +2,43 @@ * 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. + * 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. * - * $Id: lists.h,v 1.8 2002/09/08 17:05:25 alex Exp $ - * - * lists.h: Verwaltung der "IRC-Listen": Ban, Invite, ... (Header) + * Management of IRC lists: ban, invite, ... (header) */ #ifndef __lists_h__ #define __lists_h__ +#include "portab.h" +#include "client.h" +struct list_elem; -GLOBAL VOID Lists_Init PARAMS(( VOID )); -GLOBAL VOID Lists_Exit PARAMS(( VOID )); +struct list_head { + struct list_elem *first; +}; -GLOBAL BOOLEAN Lists_CheckInvited PARAMS(( CLIENT *Client, CHANNEL *Chan )); -GLOBAL BOOLEAN Lists_AddInvited PARAMS(( CLIENT *From, CHAR *Mask, CHANNEL *Chan, BOOLEAN OnlyOnce )); -GLOBAL VOID Lists_DelInvited PARAMS(( CHAR *Mask, CHANNEL *Chan )); -GLOBAL BOOLEAN Lists_ShowInvites PARAMS(( CLIENT *Client, CHANNEL *Channel )); -GLOBAL BOOLEAN Lists_CheckBanned PARAMS(( CLIENT *Client, CHANNEL *Chan )); -GLOBAL BOOLEAN Lists_AddBanned PARAMS(( CLIENT *From, CHAR *Mask, CHANNEL *Chan )); -GLOBAL VOID Lists_DelBanned PARAMS(( CHAR *Mask, CHANNEL *Chan )); -GLOBAL BOOLEAN Lists_ShowBans PARAMS(( CLIENT *Client, CHANNEL *Channel )); +GLOBAL struct list_elem *Lists_GetFirst PARAMS((const struct list_head *)); +GLOBAL struct list_elem *Lists_GetNext PARAMS((const struct list_elem *)); -GLOBAL VOID Lists_DeleteChannel PARAMS(( CHANNEL *Chan )); +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 CHAR *Lists_MakeMask PARAMS(( CHAR *Pattern )); +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)); -#endif +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- */