]>
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 | * | |
24 | * $Id: ircd.h 1851 2006-08-24 17:16:53Z jilles $ | |
25 | */ | |
26 | ||
27 | #ifndef INCLUDED_ircd_h | |
28 | #define INCLUDED_ircd_h | |
29 | ||
30 | #include "config.h" | |
212380e3 | 31 | |
32 | struct Client; | |
08d11e34 | 33 | struct rb_dlink_list; |
212380e3 | 34 | |
35 | struct SetOptions | |
36 | { | |
37 | int maxclients; /* max clients allowed */ | |
38 | int autoconn; /* autoconn enabled for all servers? */ | |
39 | ||
212380e3 | 40 | int floodcount; /* Number of messages in 1 second */ |
41 | int ident_timeout; /* timeout for identd lookups */ | |
42 | ||
43 | int spam_num; | |
44 | int spam_time; | |
45 | ||
46 | char operstring[REALLEN]; | |
47 | char adminstring[REALLEN]; | |
48 | }; | |
49 | ||
50 | struct Counter | |
51 | { | |
52 | int oper; /* Opers */ | |
53 | int total; /* total clients */ | |
54 | int invisi; /* invisible clients */ | |
55 | int max_loc; /* MAX local clients */ | |
56 | int max_tot; /* MAX global clients */ | |
57 | unsigned long totalrestartcount; /* Total client count ever */ | |
58 | }; | |
59 | ||
60 | extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */ | |
61 | ||
62 | extern const char *creation; | |
63 | extern const char *generation; | |
64 | extern const char *platform; | |
65 | extern const char *infotext[]; | |
66 | extern const char *serno; | |
67 | extern const char *ircd_version; | |
68 | extern const char *logFileName; | |
69 | extern const char *pidFileName; | |
70 | extern int cold_start; | |
71 | extern int dorehash; | |
72 | extern int dorehashbans; | |
73 | extern int doremotd; | |
74 | extern int kline_queued; | |
75 | extern int server_state_foreground; | |
76 | extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without | |
77 | accountability, etc */ | |
78 | ||
79 | extern struct Client me; | |
08d11e34 | 80 | extern rb_dlink_list global_client_list; |
212380e3 | 81 | extern struct Client *local[]; |
82 | extern struct Counter Count; | |
212380e3 | 83 | extern struct timeval SystemTime; |
212380e3 | 84 | extern int default_server_capabs; |
85 | ||
86 | extern time_t startup_time; | |
87 | ||
88 | extern int splitmode; | |
89 | extern int splitchecking; | |
90 | extern int split_users; | |
91 | extern int split_servers; | |
92 | int eob_count; | |
93 | ||
08d11e34 WP |
94 | extern rb_dlink_list unknown_list; |
95 | extern rb_dlink_list lclient_list; | |
96 | extern rb_dlink_list serv_list; | |
97 | extern rb_dlink_list global_serv_list; | |
98 | extern rb_dlink_list local_oper_list; | |
99 | extern rb_dlink_list oper_list; | |
100 | extern rb_dlink_list dead_list; | |
212380e3 | 101 | |
102 | extern void get_current_bandwidth(struct Client *source_p, struct Client *target_p); | |
103 | ||
104 | extern unsigned long get_maxrss(void); | |
105 | extern void set_time(void); | |
106 | extern void charybdis_io_loop(void); | |
107 | ||
108 | extern int testing_conf; | |
109 | ||
ccfe0e97 WP |
110 | extern struct ev_entry *check_splitmode_ev; |
111 | ||
58f3e387 | 112 | extern int maxconnections; |
c72690d8 | 113 | extern int ssl_ok; |
58f3e387 | 114 | |
212380e3 | 115 | #endif |