]> git.ipfire.org Git - thirdparty/squid.git/blob - src/globals.h
Merged from trunk
[thirdparty/squid.git] / src / globals.h
1 /*
2 * $Id: globals.h,v 1.143 2008/02/11 22:36:52 rousskov Exp $
3 *
4 *
5 * SQUID Web Proxy Cache http://www.squid-cache.org/
6 * ----------------------------------------------------------
7 *
8 * Squid is the result of efforts by numerous individuals from
9 * the Internet community; see the CONTRIBUTORS file for full
10 * details. Many organizations have provided support for Squid's
11 * development; see the SPONSORS file for full details. Squid is
12 * Copyrighted (C) 2001 by the Regents of the University of
13 * California; see the COPYRIGHT file for full details. Squid
14 * incorporates software developed and/or copyrighted by other
15 * sources; see the CREDITS file for full details.
16 *
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
21 *
22 * This program is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
26 *
27 * You should have received a copy of the GNU General Public License
28 * along with this program; if not, write to the Free Software
29 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
30 *
31 */
32 #ifndef SQUID_GLOBALS_H
33 #define SQUID_GLOBALS_H
34
35 #if HAVE_STDIO_H
36 #include <stdio.h>
37 #endif
38
39 #include "rfc2181.h"
40
41 /* for ERROR_BUF_SZ, BUFSIZ, MAXHTTPPORTS */
42 #include "defines.h"
43
44 /* for iostats, StatCounters */
45 #include "structs.h"
46
47
48 #ifdef __cplusplus
49 extern "C"
50 {
51 #endif
52
53 //MOVED:Debug.h extern FILE *debug_log; /* NULL */
54 //MOVED:structs.h extern SquidConfig Config;
55 //MOVED:structs.h extern SquidConfig2 Config2;
56 extern char *ConfigFile; /* NULL */
57 extern char *IcpOpcodeStr[];
58 extern const char *dns_error_message; /* NULL */
59 extern const char *log_tags[];
60 extern char tmp_error_buf[ERROR_BUF_SZ];
61 extern char *volatile debug_options; /* NULL */
62 extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
63 extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
64 extern char config_input_line[BUFSIZ];
65 extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
66 extern const char *cfg_filename; /* NULL */
67 //MOVED:version.h:APP_SHORTNAME extern const char *const appname; /* "squid" */
68 extern const char *const dash_str; /* "-" */
69 extern const char *const null_string; /* "" */
70 extern const char *const version_string; /* VERSION */
71 //MOVED:versions.h:APP_FULLNAME extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
72 extern const char *const appname_string; /* PACKAGE */
73 extern const char *const w_space; /* " \t\n\r" */
74 extern char const * visible_appname_string; /* NULL */
75 extern const char *fdTypeStr[];
76 extern const char *hier_strings[];
77 extern const char *memStatusStr[];
78 extern const char *pingStatusStr[];
79 extern const char *storeStatusStr[];
80 extern const char *swapStatusStr[];
81 class fde;
82 extern fde *fd_table; /* NULL */
83 extern int Biggest_FD; /* -1 */
84 extern int Number_FD; /* 0 */
85 extern int Opening_FD; /* 0 */
86 extern int HttpSockets[MAXHTTPPORTS];
87 extern int NDnsServersAlloc; /* 0 */
88 extern int NHttpSockets; /* 0 */
89 extern int RESERVED_FD;
90 extern int Squid_MaxFD; /* SQUID_MAXFD */
91 extern int config_lineno; /* 0 */
92 extern int do_mallinfo; /* 0 */
93 extern int opt_reuseaddr; /* 1 */
94 //DEAD extern int icmp_sock; /* -1 */
95 extern int neighbors_do_private_keys; /* 1 */
96 extern int opt_catch_signals; /* 1 */
97 extern int opt_debug_stderr; /* -1 */
98 extern int opt_foreground_rebuild; /* 0 */
99 extern char *opt_forwarded_for; /* NULL */
100 extern int opt_reload_hit_only; /* 0 */
101 #if HAVE_SYSLOG
102
103 extern int opt_syslog_enable; /* 0 */
104 #endif
105
106 extern int opt_udp_hit_obj; /* 0 */
107 extern int opt_create_swap_dirs; /* 0 */
108 extern int opt_store_doublecheck; /* 0 */
109 extern int syslog_enable; /* 0 */
110 extern int theInIcpConnection; /* -1 */
111 extern int theOutIcpConnection; /* -1 */
112 extern int DnsSocket; /* -1 */
113 #ifdef SQUID_SNMP
114
115 extern int theInSnmpConnection; /* -1 */
116 extern int theOutSnmpConnection; /* -1 */
117 extern char *snmp_agentinfo;
118 #endif
119
120 extern int n_disk_objects; /* 0 */
121 extern iostats IOStats;
122
123 extern struct acl_deny_info_list *DenyInfoList; /* NULL */
124
125 //MOVED:icp_v2.cc extern IPAddress theOutICPAddr;
126 //MOVED:snmp_core.cc extern IPAddress theOutSNMPAddr;
127
128 extern struct timeval squid_start;
129 extern int shutting_down; /* 0 */
130 extern int reconfiguring; /* 0 */
131 extern unsigned long store_swap_size; /* 0 */
132 extern time_t hit_only_mode_until; /* 0 */
133 extern StatCounters statCounter;
134 extern char *err_type_str[];
135 extern char *icp_opcode_str[];
136 extern char *swap_log_op_str[];
137 extern char *lookup_t_str[];
138 extern double request_failure_ratio; /* 0.0 */
139 extern int store_hash_buckets; /* 0 */
140 extern hash_table *store_table; /* NULL */
141 //MOVED:dlink.h extern dlink_list ClientActiveRequests;
142 extern int hot_obj_count; /* 0 */
143 extern const int CacheDigestHashFuncCount; /* 4 */
144 extern CacheDigest *store_digest; /* NULL */
145 extern const char *StoreDigestFileName; /* "store_digest" */
146 extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
147
148 extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
149 #if HTTP_VIOLATIONS
150
151 extern int refresh_nocache_hack; /* 0 */
152 #endif
153
154 extern int store_open_disk_fd; /* 0 */
155 extern const char *SwapDirType[];
156 extern int store_swap_low; /* 0 */
157 extern int store_swap_high; /* 0 */
158 extern size_t store_pages_max; /* 0 */
159 extern int64_t store_maxobjsize; /* -1 */
160 extern hash_table *proxy_auth_username_cache; /* NULL */
161 extern int incoming_sockets_accepted;
162 #ifdef _SQUID_MSWIN_
163
164 extern unsigned int WIN32_Socks_initialized; /* 0 */
165 #endif
166 #ifdef _SQUID_WIN32_
167
168 extern unsigned int WIN32_OS_version; /* 0 */
169 extern char *WIN32_OS_string; /* NULL */
170 extern char *WIN32_Service_name; /* NULL */
171 extern char *WIN32_Command_Line; /* NULL */
172 extern char *WIN32_Service_Command_Line; /* NULL */
173 extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
174 #endif
175 #if HAVE_SBRK
176
177 extern void *sbrk_start; /* 0 */
178 #endif
179
180 extern int ssl_ex_index_server; /* -1 */
181 extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
182 extern int ssl_ex_index_cert_error_check; /* -1 */
183
184 extern const char *external_acl_message; /* NULL */
185 extern int opt_send_signal; /* -1 */
186 extern int opt_no_daemon; /* 0 */
187
188
189 #ifdef __cplusplus
190 }
191
192 #endif
193
194 #endif /* SQUID_GLOBALS_H */