ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/conf_shared.h
Revision: 8431
Committed: Tue Mar 27 18:49:15 2018 UTC (7 years, 5 months ago) by michael
Content type: text/x-chdr
File size: 1700 byte(s)
Log Message:
- Stylistic changes

File Contents

# User Rev Content
1 michael 7209 /*
2     * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3     *
4 michael 8279 * Copyright (c) 1997-2018 ircd-hybrid development team
5 michael 7209 *
6     * This program is free software; you can redistribute it and/or modify
7     * it under the terms of the GNU General Public License as published by
8     * the Free Software Foundation; either version 2 of the License, or
9     * (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
19     * USA
20     */
21    
22     /*! \file conf_shared.h
23     * \brief Implements shared {} block configuration management.
24 michael 7221 * \version $Id$
25 michael 7209 */
26    
27     #ifndef INCLUDED_conf_shared_h
28     #define INCLUDED_conf_shared_h
29    
30     enum
31     {
32 michael 8431 SHARED_KLINE = 1 << 0,
33     SHARED_UNKLINE = 1 << 1,
34     SHARED_XLINE = 1 << 2,
35     SHARED_UNXLINE = 1 << 3,
36     SHARED_RESV = 1 << 4,
37     SHARED_UNRESV = 1 << 5,
38     SHARED_LOCOPS = 1 << 6,
39     SHARED_DLINE = 1 << 7,
40     SHARED_UNDLINE = 1 << 8,
41     SHARED_REHASH = 1 << 9,
42     SHARED_ALL = UINT_MAX
43 michael 7209 };
44    
45     struct SharedItem
46     {
47     dlink_node node;
48     char *server;
49     char *user;
50     char *host;
51     unsigned int type;
52     };
53    
54     extern const dlink_list *shared_get_list(void);
55     extern void shared_clear(void);
56     extern struct SharedItem *shared_make(void);
57     extern const struct SharedItem *shared_find(unsigned int, const char *, const char *, const char *);
58     #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id