]>
Commit | Line | Data |
---|---|---|
c5ddf51c | 1 | /* |
262a0e14 | 2 | * $Id$ |
9cef6668 | 3 | * |
4 | * | |
2b6662ba | 5 | * SQUID Web Proxy Cache http://www.squid-cache.org/ |
9cef6668 | 6 | * ---------------------------------------------------------- |
7 | * | |
2b6662ba | 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. | |
9cef6668 | 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. | |
26ac0430 | 21 | * |
9cef6668 | 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. | |
26ac0430 | 26 | * |
9cef6668 | 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 | * | |
fc084a16 | 31 | */ |
b5638623 | 32 | #ifndef SQUID_GLOBALS_H |
33 | #define SQUID_GLOBALS_H | |
34 | ||
e1f7507e AJ |
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 | ||
42c674fd | 48 | #ifdef __cplusplus |
49 | extern "C" | |
50 | { | |
51 | #endif | |
52 | ||
663ff9aa | 53 | //MOVED:Debug.h extern FILE *debug_log; /* NULL */ |
e1f7507e AJ |
54 | //MOVED:structs.h extern SquidConfig Config; |
55 | //MOVED:structs.h extern SquidConfig2 Config2; | |
42c674fd | 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 */ | |
e1f7507e AJ |
62 | extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1]; |
63 | extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1]; | |
42c674fd | 64 | extern char config_input_line[BUFSIZ]; |
65 | extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */ | |
66 | extern const char *cfg_filename; /* NULL */ | |
7dbca7a4 | 67 | //MOVED:version.h:APP_SHORTNAME extern const char *const appname; /* "squid" */ |
42c674fd | 68 | extern const char *const dash_str; /* "-" */ |
42c674fd | 69 | extern const char *const null_string; /* "" */ |
70 | extern const char *const version_string; /* VERSION */ | |
7dbca7a4 | 71 | //MOVED:versions.h:APP_FULLNAME extern const char *const full_appname_string; /* PACKAGE "/" VERSION */ |
42c674fd | 72 | extern const char *const appname_string; /* PACKAGE */ |
42c674fd | 73 | extern const char *const w_space; /* " \t\n\r" */ |
7dbca7a4 | 74 | extern char const * visible_appname_string; /* NULL */ |
42c674fd | 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[]; | |
e1f7507e | 81 | class fde; |
42c674fd | 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 */ | |
e1f7507e | 94 | //DEAD extern int icmp_sock; /* -1 */ |
42c674fd | 95 | extern int neighbors_do_private_keys; /* 1 */ |
96 | extern int opt_catch_signals; /* 1 */ | |
97 | extern int opt_debug_stderr; /* -1 */ | |
42c674fd | 98 | extern int opt_foreground_rebuild; /* 0 */ |
67c06f0d | 99 | extern char *opt_forwarded_for; /* NULL */ |
42c674fd | 100 | extern int opt_reload_hit_only; /* 0 */ |
c307aec3 | 101 | #if HAVE_SYSLOG |
42c674fd | 102 | |
103 | extern int opt_syslog_enable; /* 0 */ | |
c307aec3 | 104 | #endif |
42c674fd | 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 */ | |
2bbd722b | 113 | #ifdef SQUID_SNMP |
42c674fd | 114 | |
115 | extern int theInSnmpConnection; /* -1 */ | |
116 | extern int theOutSnmpConnection; /* -1 */ | |
117 | extern char *snmp_agentinfo; | |
2bbd722b | 118 | #endif |
42c674fd | 119 | |
120 | extern int n_disk_objects; /* 0 */ | |
121 | extern iostats IOStats; | |
122 | ||
e1f7507e | 123 | extern struct acl_deny_info_list *DenyInfoList; /* NULL */ |
42c674fd | 124 | |
ad61a2b4 AJ |
125 | //MOVED:icp_v2.cc extern IpAddress theOutICPAddr; |
126 | //MOVED:snmp_core.cc extern IpAddress theOutSNMPAddr; | |
42c674fd | 127 | |
128 | extern struct timeval squid_start; | |
129 | extern int shutting_down; /* 0 */ | |
130 | extern int reconfiguring; /* 0 */ | |
42c674fd | 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 */ | |
42c674fd | 139 | extern int store_hash_buckets; /* 0 */ |
140 | extern hash_table *store_table; /* NULL */ | |
e1f7507e | 141 | //MOVED:dlink.h extern dlink_list ClientActiveRequests; |
42c674fd | 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" */ | |
42c674fd | 147 | |
148 | extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */ | |
9f60cfdf | 149 | #if HTTP_VIOLATIONS |
42c674fd | 150 | |
151 | extern int refresh_nocache_hack; /* 0 */ | |
9f60cfdf | 152 | #endif |
42c674fd | 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 */ | |
47f6e231 | 159 | extern int64_t store_maxobjsize; /* -1 */ |
42c674fd | 160 | extern hash_table *proxy_auth_username_cache; /* NULL */ |
161 | extern int incoming_sockets_accepted; | |
a50bfe93 | 162 | #ifdef _SQUID_MSWIN_ |
42c674fd | 163 | |
164 | extern unsigned int WIN32_Socks_initialized; /* 0 */ | |
a50bfe93 | 165 | #endif |
ec4daaa5 | 166 | #ifdef _SQUID_WIN32_ |
42c674fd | 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 */ | |
0e6d05ef | 174 | #endif |
a4ba1105 | 175 | #if HAVE_SBRK |
42c674fd | 176 | |
177 | extern void *sbrk_start; /* 0 */ | |
a4ba1105 | 178 | #endif |
b5638623 | 179 | |
42c674fd | 180 | extern int ssl_ex_index_server; /* -1 */ |
181 | extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */ | |
0bede394 | 182 | extern int ssl_ex_index_cert_error_check; /* -1 */ |
42c674fd | 183 | |
184 | extern const char *external_acl_message; /* NULL */ | |
185 | extern int opt_send_signal; /* -1 */ | |
186 | extern int opt_no_daemon; /* 0 */ | |
fc68f6b1 | 187 | |
42c674fd | 188 | |
189 | #ifdef __cplusplus | |
190 | } | |
191 | ||
192 | #endif | |
a7ad6e4e | 193 | |
b5638623 | 194 | #endif /* SQUID_GLOBALS_H */ |