ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/include/server_capab.h
Revision: 9101
Committed: Wed Jan 1 09:58:45 2020 UTC (5 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 2438 byte(s)
Log Message:
- Bump copyright years everywhere

File Contents

# User Rev Content
1 michael 8170 /*
2     * ircd-hybrid: an advanced, lightweight Internet Relay Chat Daemon (ircd)
3     *
4 michael 9101 * Copyright (c) 1997-2020 ircd-hybrid development team
5 michael 8170 *
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 server_capab.h
23     * \brief A header for the server CAPAB functions.
24 michael 8172 * \version $Id$
25 michael 8170 */
26    
27     #ifndef INCLUDED_server_capab_h
28     #define INCLUDED_server_capab_h
29    
30     /** Server capability flags */
31     enum
32     {
33 michael 8431 CAPAB_QS = 1 << 0, /**< Can handle quit storm removal */
34     CAPAB_EOB = 1 << 1, /**< Can do EOB message */
35     CAPAB_KLN = 1 << 2, /**< Can do KLINE message */
36     CAPAB_KNOCK = 1 << 3, /**< Supports KNOCK */
37     CAPAB_UNKLN = 1 << 4, /**< Can do UNKLINE message */
38     CAPAB_CLUSTER = 1 << 5, /**< Supports server clustering */
39     CAPAB_ENCAP = 1 << 6, /**< Supports ENCAP message */
40     CAPAB_TBURST = 1 << 7, /**< Supports TBURST */
41     CAPAB_SVS = 1 << 8, /**< Supports services */
42     CAPAB_DLN = 1 << 9, /**< Can do DLINE message */
43     CAPAB_UNDLN = 1 << 10, /**< Can do UNDLINE message */
44     CAPAB_RHOST = 1 << 11 /**< Can do extended realhost UID messages */
45 michael 8170 };
46    
47     /*
48     * Capability macros.
49     */
50     #define IsCapable(x, cap) ((x)->connection->caps & (cap))
51     #define SetCapable(x, cap) ((x)->connection->caps |= (cap))
52     #define ClearCap(x, cap) ((x)->connection->caps &= ~(cap))
53    
54     /* Capabilities */
55     struct Capability
56     {
57 michael 8437 dlink_node node; /**< List node; linked into capab_list */
58 michael 8170 char *name; /**< Name of capability */
59     unsigned int cap; /**< Mask value */
60     };
61    
62     extern void capab_init(void);
63     extern void capab_add(const char *, unsigned int);
64     extern void capab_del(const char *);
65     extern unsigned int capab_find(const char *);
66     extern const char *capab_get(const void *);
67     #endif /* INCLUDED_server_capab_h */

Properties

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