]>
Commit | Line | Data |
---|---|---|
212380e3 | 1 | /* |
2 | * ircd-ratbox: A slightly useful ircd. | |
3 | * ircd.h: A header for the ircd startup routines. | |
4 | * | |
5 | * Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center | |
6 | * Copyright (C) 1996-2002 Hybrid Development Team | |
7 | * Copyright (C) 2002-2004 ircd-ratbox development team | |
8 | * | |
9 | * This program is free software; you can redistribute it and/or modify | |
10 | * it under the terms of the GNU General Public License as published by | |
11 | * the Free Software Foundation; either version 2 of the License, or | |
12 | * (at your option) any later version. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 | |
22 | * USA | |
23 | * | |
212380e3 | 24 | */ |
25 | ||
26 | #ifndef INCLUDED_ircd_h | |
27 | #define INCLUDED_ircd_h | |
28 | ||
29 | #include "config.h" | |
212380e3 | 30 | |
31 | struct Client; | |
08d11e34 | 32 | struct rb_dlink_list; |
212380e3 | 33 | |
34 | struct SetOptions | |
35 | { | |
36 | int maxclients; /* max clients allowed */ | |
37 | int autoconn; /* autoconn enabled for all servers? */ | |
38 | ||
212380e3 | 39 | int floodcount; /* Number of messages in 1 second */ |
40 | int ident_timeout; /* timeout for identd lookups */ | |
41 | ||
42 | int spam_num; | |
43 | int spam_time; | |
44 | ||
67537fef | 45 | char operhost[REALLEN]; |
212380e3 | 46 | char operstring[REALLEN]; |
47 | char adminstring[REALLEN]; | |
48 | }; | |
49 | ||
0b370fcc G |
50 | struct Metadata |
51 | { | |
52 | const char *name; | |
53 | const char *value; | |
54 | time_t timevalue; | |
55 | }; | |
56 | ||
212380e3 | 57 | struct Counter |
58 | { | |
59 | int oper; /* Opers */ | |
60 | int total; /* total clients */ | |
61 | int invisi; /* invisible clients */ | |
62 | int max_loc; /* MAX local clients */ | |
63 | int max_tot; /* MAX global clients */ | |
64 | unsigned long totalrestartcount; /* Total client count ever */ | |
65 | }; | |
66 | ||
67 | extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */ | |
68 | ||
69 | extern const char *creation; | |
70 | extern const char *generation; | |
71 | extern const char *platform; | |
72 | extern const char *infotext[]; | |
73 | extern const char *serno; | |
74 | extern const char *ircd_version; | |
75 | extern const char *logFileName; | |
76 | extern const char *pidFileName; | |
77 | extern int cold_start; | |
78 | extern int dorehash; | |
79 | extern int dorehashbans; | |
80 | extern int doremotd; | |
81 | extern int kline_queued; | |
82 | extern int server_state_foreground; | |
83 | extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without | |
84 | accountability, etc */ | |
85 | ||
86 | extern struct Client me; | |
08d11e34 | 87 | extern rb_dlink_list global_client_list; |
212380e3 | 88 | extern struct Client *local[]; |
89 | extern struct Counter Count; | |
212380e3 | 90 | extern int default_server_capabs; |
91 | ||
92 | extern time_t startup_time; | |
93 | ||
94 | extern int splitmode; | |
95 | extern int splitchecking; | |
96 | extern int split_users; | |
97 | extern int split_servers; | |
33dcd535 | 98 | extern int eob_count; |
212380e3 | 99 | |
08d11e34 WP |
100 | extern rb_dlink_list unknown_list; |
101 | extern rb_dlink_list lclient_list; | |
102 | extern rb_dlink_list serv_list; | |
103 | extern rb_dlink_list global_serv_list; | |
104 | extern rb_dlink_list local_oper_list; | |
105 | extern rb_dlink_list oper_list; | |
106 | extern rb_dlink_list dead_list; | |
212380e3 | 107 | |
212380e3 | 108 | extern int testing_conf; |
109 | ||
ccfe0e97 WP |
110 | extern struct ev_entry *check_splitmode_ev; |
111 | ||
8db00894 VY |
112 | extern int ssl_ok; |
113 | extern int zlib_ok; | |
fb968f05 VY |
114 | extern int maxconnections; |
115 | ||
6972e25a VY |
116 | void ircd_shutdown(const char *reason); |
117 | ||
212380e3 | 118 | #endif |