]> jfr.im git - irc/rqf/shadowircd.git/blob - include/ircd.h
[svn] Remove invite_ops_only, forcing it to YES.
[irc/rqf/shadowircd.git] / include / ircd.h
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"
31 #include "tools.h"
32 #include "memory.h"
33
34 struct Client;
35 struct dlink_list;
36
37 struct SetOptions
38 {
39 int maxclients; /* max clients allowed */
40 int autoconn; /* autoconn enabled for all servers? */
41
42 int idletime;
43
44 int floodcount; /* Number of messages in 1 second */
45 int ident_timeout; /* timeout for identd lookups */
46
47 int spam_num;
48 int spam_time;
49
50 char operstring[REALLEN];
51 char adminstring[REALLEN];
52 };
53
54 struct Counter
55 {
56 int oper; /* Opers */
57 int total; /* total clients */
58 int invisi; /* invisible clients */
59 int max_loc; /* MAX local clients */
60 int max_tot; /* MAX global clients */
61 unsigned long totalrestartcount; /* Total client count ever */
62 };
63
64 extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
65
66 extern const char *creation;
67 extern const char *generation;
68 extern const char *platform;
69 extern const char *infotext[];
70 extern const char *serno;
71 extern const char *ircd_version;
72 extern const char *logFileName;
73 extern const char *pidFileName;
74 extern int cold_start;
75 extern int dorehash;
76 extern int dorehashbans;
77 extern int doremotd;
78 extern int kline_queued;
79 extern int server_state_foreground;
80 extern int opers_see_all_users; /* sno_farconnect.so loaded, operspy without
81 accountability, etc */
82
83 extern struct Client me;
84 extern dlink_list global_client_list;
85 extern struct Client *local[];
86 extern struct Counter Count;
87 #if 0
88 extern time_t CurrentTime;
89 #endif
90 extern struct timeval SystemTime;
91 #define CurrentTime SystemTime.tv_sec
92 extern int default_server_capabs;
93
94 extern time_t startup_time;
95
96 extern int splitmode;
97 extern int splitchecking;
98 extern int split_users;
99 extern int split_servers;
100 int eob_count;
101
102 extern dlink_list unknown_list;
103 extern dlink_list lclient_list;
104 extern dlink_list serv_list;
105 extern dlink_list global_serv_list;
106 extern dlink_list local_oper_list;
107 extern dlink_list oper_list;
108 extern dlink_list dead_list;
109
110 extern void get_current_bandwidth(struct Client *source_p, struct Client *target_p);
111
112 extern unsigned long get_maxrss(void);
113 extern void set_time(void);
114 extern void charybdis_io_loop(void);
115
116 extern int testing_conf;
117
118 #endif