ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/conf_cluster.h
Revision: 8279
Committed: Tue Feb 20 19:30:13 2018 UTC (7 years, 6 months ago) by michael
Content type: text/x-chdr
File size: 1751 byte(s)
Log Message:
- Update copyright years

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_cluster.h
23     * \brief Implements cluster {} block configuration management.
24 michael 7221 * \version $Id$
25 michael 7209 */
26    
27     #ifndef INCLUDED_conf_cluster_h
28     #define INCLUDED_conf_cluster_h
29    
30     enum
31     {
32     CLUSTER_KLINE = 0x00000001U,
33     CLUSTER_UNKLINE = 0x00000002U,
34     CLUSTER_XLINE = 0x00000004U,
35     CLUSTER_UNXLINE = 0x00000008U,
36     CLUSTER_RESV = 0x00000010U,
37     CLUSTER_UNRESV = 0x00000020U,
38     CLUSTER_LOCOPS = 0x00000040U,
39     CLUSTER_DLINE = 0x00000080U,
40     CLUSTER_UNDLINE = 0x00000100U,
41     CLUSTER_REHASH = 0x00000200U,
42     CLUSTER_ALL = 0xFFFFFFFFU
43     };
44    
45     struct ClusterItem
46     {
47     dlink_node node;
48     char *server;
49     unsigned int type;
50     };
51    
52     extern const dlink_list *cluster_get_list(void);
53     extern void cluster_clear(void);
54     extern struct ClusterItem *cluster_make(void);
55 michael 7322 extern void cluster_distribute(const void *, const char *, unsigned int, unsigned int, const char *, ...);
56 michael 7209 #endif

Properties

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