[BACK]Return to lists.h CVS log [TXT][DIR] Up to [local] / ircnowd / src / ngircd

Annotation of ircnowd/src/ngircd/lists.h, Revision 1.1

1.1     ! tomglok     1: /*
        !             2:  * ngIRCd -- The Next Generation IRC Daemon
        !             3:  * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
        !             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:
        !            12: #ifndef __lists_h__
        !            13: #define __lists_h__
        !            14:
        !            15: /**
        !            16:  * @file
        !            17:  * Management of IRC lists (header)
        !            18:  */
        !            19:
        !            20: #include "portab.h"
        !            21: #include "client.h"
        !            22:
        !            23: struct list_elem;
        !            24:
        !            25: struct list_head {
        !            26:        struct list_elem *first;
        !            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_CheckReason PARAMS((struct list_head *head, CLIENT *client,
        !            34:                                      char *reason, size_t len));
        !            35: GLOBAL struct list_elem *Lists_CheckDupeMask PARAMS((const struct list_head *head,
        !            36:                                        const char *mask));
        !            37:
        !            38: GLOBAL bool Lists_Add PARAMS((struct list_head *h, const char *Mask,
        !            39:                              time_t ValidUntil, const char *Reason,
        !            40:                              bool OnlyOnce));
        !            41: GLOBAL void Lists_Del PARAMS((struct list_head *head, const char *Mask));
        !            42: GLOBAL unsigned long Lists_Count PARAMS((struct list_head *h));
        !            43:
        !            44: GLOBAL void Lists_Free PARAMS((struct list_head *head));
        !            45:
        !            46: GLOBAL void Lists_MakeMask PARAMS((const char *Pattern, char *mask, size_t len));
        !            47: GLOBAL const char *Lists_GetMask PARAMS((const struct list_elem *e));
        !            48: GLOBAL const char *Lists_GetReason PARAMS((const struct list_elem *e));
        !            49: GLOBAL time_t Lists_GetValidity PARAMS((const struct list_elem *e));
        !            50: GLOBAL bool Lists_GetOnlyOnce PARAMS((const struct list_elem *e));
        !            51:
        !            52: GLOBAL void Lists_Expire PARAMS((struct list_head *h, const char *ListName));
        !            53:
        !            54: #endif
        !            55:
        !            56: /* -eof- */

CVSweb