Alphabetize HIS_STATS_? features, but remove HIS_STATS_h.
[ircu2.10.12-pk.git] / include / ircd_features.h
1 #ifndef INCLUDED_features_h
2 #define INCLUDED_features_h
3 /*
4  * IRC - Internet Relay Chat, include/features.h
5  * Copyright (C) 2000 Kevin L. Mitchell <klmitch@mit.edu>
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20  */
21 /** @file
22  * @brief Public interfaces and declarations for dealing with configurable features.
23  * @version $Id$
24  */
25
26 struct Client;
27 struct StatDesc;
28
29 /** Contains all feature settings for ircu.
30  * For documentation of each, see doc/readme.features.
31  */
32 enum Feature {
33   /* Misc. features */
34   FEAT_LOG,
35   FEAT_DOMAINNAME,
36   FEAT_RELIABLE_CLOCK,
37   FEAT_BUFFERPOOL,
38   FEAT_HAS_FERGUSON_FLUSHER,
39   FEAT_CLIENT_FLOOD,
40   FEAT_SERVER_PORT,
41   FEAT_NODEFAULTMOTD,
42   FEAT_MOTD_BANNER,
43   FEAT_PROVIDER,
44   FEAT_KILL_IPMISMATCH,
45   FEAT_IDLE_FROM_MSG,
46   FEAT_HUB,
47   FEAT_WALLOPS_OPER_ONLY,
48   FEAT_NODNS,
49   FEAT_RANDOM_SEED,
50   FEAT_DEFAULT_LIST_PARAM,
51   FEAT_NICKNAMEHISTORYLENGTH,
52   FEAT_HOST_HIDING,
53   FEAT_HIDDEN_HOST,
54   FEAT_HIDDEN_IP,
55   FEAT_CONNEXIT_NOTICES,
56   FEAT_OPLEVELS,
57   FEAT_LOCAL_CHANNELS,
58   FEAT_TOPIC_BURST,
59
60   /* features that probably should not be touched */
61   FEAT_KILLCHASETIMELIMIT,
62   FEAT_MAXCHANNELSPERUSER,
63   FEAT_NICKLEN,
64   FEAT_AVBANLEN,
65   FEAT_MAXBANS,
66   FEAT_MAXSILES,
67   FEAT_HANGONGOODLINK,
68   FEAT_HANGONRETRYDELAY,
69   FEAT_CONNECTTIMEOUT,
70   FEAT_MAXIMUM_LINKS,
71   FEAT_PINGFREQUENCY,
72   FEAT_CONNECTFREQUENCY,
73   FEAT_DEFAULTMAXSENDQLENGTH,
74   FEAT_GLINEMAXUSERCOUNT,
75   FEAT_SOCKSENDBUF,
76   FEAT_SOCKRECVBUF,
77   FEAT_IPCHECK_CLONE_LIMIT,
78   FEAT_IPCHECK_CLONE_PERIOD,
79   FEAT_IPCHECK_CLONE_DELAY,
80
81   /* Some misc. default paths */
82   FEAT_MPATH,
83   FEAT_RPATH,
84   FEAT_PPATH,
85
86   /* Networking features */
87   FEAT_TOS_SERVER,
88   FEAT_TOS_CLIENT,
89   FEAT_POLLS_PER_LOOP,
90   FEAT_IRCD_RES_RETRIES,
91   FEAT_IRCD_RES_TIMEOUT,
92   FEAT_AUTH_TIMEOUT,
93   FEAT_ANNOUNCE_INVITES,
94
95   /* features that affect all operators */
96   FEAT_CONFIG_OPERCMDS,
97
98   /* HEAD_IN_SAND Features */
99   FEAT_HIS_SNOTICES,
100   FEAT_HIS_SNOTICES_OPER_ONLY,
101   FEAT_HIS_DEBUG_OPER_ONLY,
102   FEAT_HIS_WALLOPS,
103   FEAT_HIS_MAP,
104   FEAT_HIS_LINKS,
105   FEAT_HIS_TRACE,
106   FEAT_HIS_STATS_a,
107   FEAT_HIS_STATS_c,
108   FEAT_HIS_STATS_d,
109   FEAT_HIS_STATS_e,
110   FEAT_HIS_STATS_f,
111   FEAT_HIS_STATS_g,
112   FEAT_HIS_STATS_i,
113   FEAT_HIS_STATS_j,
114   FEAT_HIS_STATS_J,
115   FEAT_HIS_STATS_k,
116   FEAT_HIS_STATS_l,
117   FEAT_HIS_STATS_L,
118   FEAT_HIS_STATS_M,
119   FEAT_HIS_STATS_m,
120   FEAT_HIS_STATS_o,
121   FEAT_HIS_STATS_p,
122   FEAT_HIS_STATS_q,
123   FEAT_HIS_STATS_R,
124   FEAT_HIS_STATS_r,
125   FEAT_HIS_STATS_t,
126   FEAT_HIS_STATS_T,
127   FEAT_HIS_STATS_u,
128   FEAT_HIS_STATS_U,
129   FEAT_HIS_STATS_v,
130   FEAT_HIS_STATS_w,
131   FEAT_HIS_STATS_x,
132   FEAT_HIS_STATS_y,
133   FEAT_HIS_STATS_z,
134   FEAT_HIS_WHOIS_SERVERNAME,
135   FEAT_HIS_WHOIS_IDLETIME,
136   FEAT_HIS_WHOIS_LOCALCHAN,
137   FEAT_HIS_WHO_SERVERNAME,
138   FEAT_HIS_WHO_HOPCOUNT,
139   FEAT_HIS_BANWHO,
140   FEAT_HIS_KILLWHO,
141   FEAT_HIS_REWRITE,
142   FEAT_HIS_REMOTE,
143   FEAT_HIS_NETSPLIT,
144   FEAT_HIS_SERVERNAME,
145   FEAT_HIS_SERVERINFO,
146   FEAT_HIS_URLSERVERS,
147
148   /* Misc. random stuff */
149   FEAT_NETWORK,
150   FEAT_URL_CLIENTS,
151
152   FEAT_LAST_F
153 };
154
155 extern void feature_init(void);
156
157 extern int feature_set(struct Client* from, const char* const* fields,
158                        int count);
159 extern int feature_reset(struct Client* from, const char* const* fields,
160                          int count);
161 extern int feature_get(struct Client* from, const char* const* fields,
162                        int count);
163
164 extern void feature_unmark(void);
165 extern void feature_mark(void);
166
167 extern void feature_report(struct Client* to, const struct StatDesc* sd,
168                            char* param);
169
170 extern int feature_int(enum Feature feat);
171 extern int feature_bool(enum Feature feat);
172 extern const char *feature_str(enum Feature feat);
173
174 #endif /* INCLUDED_features_h */