]> git.ipfire.org Git - thirdparty/squid.git/blob - src/globals.h
Merged from autoconf-refactor.
[thirdparty/squid.git] / src / globals.h
1 /*
2 * $Id$
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 #endif
51
52 //MOVED:Debug.h extern FILE *debug_log; /* NULL */
53 //MOVED:structs.h extern SquidConfig Config;
54 //MOVED:structs.h extern SquidConfig2 Config2;
55 extern char *ConfigFile; /* NULL */
56 extern char *IcpOpcodeStr[];
57 extern const char *log_tags[];
58 extern char tmp_error_buf[ERROR_BUF_SZ];
59 extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
60 extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
61 extern char config_input_line[BUFSIZ];
62 extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
63 extern const char *cfg_filename; /* NULL */
64 //MOVED:version.h:APP_SHORTNAME extern const char *const appname; /* "squid" */
65 extern const char *const dash_str; /* "-" */
66 extern const char *const null_string; /* "" */
67 extern const char *const version_string; /* VERSION */
68 //MOVED:versions.h:APP_FULLNAME extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
69 extern const char *const appname_string; /* PACKAGE */
70 extern char const * visible_appname_string; /* NULL */
71 extern const char *fdTypeStr[];
72 extern const char *hier_strings[];
73 extern const char *memStatusStr[];
74 extern const char *pingStatusStr[];
75 extern const char *storeStatusStr[];
76 extern const char *swapStatusStr[];
77 class fde;
78 extern fde *fd_table; /* NULL */
79 extern int Biggest_FD; /* -1 */
80 extern int Number_FD; /* 0 */
81 extern int Opening_FD; /* 0 */
82 extern int HttpSockets[MAXHTTPPORTS];
83 extern int NDnsServersAlloc; /* 0 */
84 extern int NHttpSockets; /* 0 */
85 extern int RESERVED_FD;
86 extern int Squid_MaxFD; /* SQUID_MAXFD */
87 extern int config_lineno; /* 0 */
88 extern int do_mallinfo; /* 0 */
89 extern int opt_reuseaddr; /* 1 */
90 //DEAD extern int icmp_sock; /* -1 */
91 extern int neighbors_do_private_keys; /* 1 */
92 extern int opt_catch_signals; /* 1 */
93 extern int opt_foreground_rebuild; /* 0 */
94 extern char *opt_forwarded_for; /* NULL */
95 extern int opt_reload_hit_only; /* 0 */
96
97 extern int opt_udp_hit_obj; /* 0 */
98 extern int opt_create_swap_dirs; /* 0 */
99 extern int opt_store_doublecheck; /* 0 */
100 extern int syslog_enable; /* 0 */
101 extern int theInIcpConnection; /* -1 */
102 extern int theOutIcpConnection; /* -1 */
103 extern int DnsSocketA; /* -1 */
104 extern int DnsSocketB; /* -1 */
105 #if SQUID_SNMP
106
107 extern int theInSnmpConnection; /* -1 */
108 extern int theOutSnmpConnection; /* -1 */
109 extern char *snmp_agentinfo;
110 #endif
111
112 extern int n_disk_objects; /* 0 */
113 extern iostats IOStats;
114
115 extern struct acl_deny_info_list *DenyInfoList; /* NULL */
116
117 //MOVED:icp_v2.cc extern IpAddress theOutICPAddr;
118 //MOVED:snmp_core.cc extern IpAddress theOutSNMPAddr;
119
120 extern struct timeval squid_start;
121 extern int starting_up; /* 1 */
122 extern int shutting_down; /* 0 */
123 extern int reconfiguring; /* 0 */
124 extern unsigned long store_swap_size; /* 0 */
125 extern time_t hit_only_mode_until; /* 0 */
126 extern StatCounters statCounter;
127 extern double request_failure_ratio; /* 0.0 */
128 extern int store_hash_buckets; /* 0 */
129 extern hash_table *store_table; /* NULL */
130 //MOVED:dlink.h extern dlink_list ClientActiveRequests;
131 extern int hot_obj_count; /* 0 */
132 extern const int CacheDigestHashFuncCount; /* 4 */
133 extern CacheDigest *store_digest; /* NULL */
134 extern const char *StoreDigestFileName; /* "store_digest" */
135 extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
136
137 extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
138 #if HTTP_VIOLATIONS
139
140 extern int refresh_nocache_hack; /* 0 */
141 #endif
142
143 extern int store_open_disk_fd; /* 0 */
144 extern const char *SwapDirType[];
145 extern int store_swap_low; /* 0 */
146 extern int store_swap_high; /* 0 */
147 extern size_t store_pages_max; /* 0 */
148 extern int64_t store_maxobjsize; /* -1 */
149 extern hash_table *proxy_auth_username_cache; /* NULL */
150 extern int incoming_sockets_accepted;
151 #ifdef _SQUID_MSWIN_
152
153 extern unsigned int WIN32_Socks_initialized; /* 0 */
154 #endif
155 #ifdef _SQUID_WIN32_
156
157 extern unsigned int WIN32_OS_version; /* 0 */
158 extern char *WIN32_OS_string; /* NULL */
159 extern char *WIN32_Service_name; /* NULL */
160 extern char *WIN32_Command_Line; /* NULL */
161 extern char *WIN32_Service_Command_Line; /* NULL */
162 extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
163 #endif
164 #if HAVE_SBRK
165
166 extern void *sbrk_start; /* 0 */
167 #endif
168
169 extern int ssl_ex_index_server; /* -1 */
170 extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
171 extern int ssl_ex_index_cert_error_check; /* -1 */
172
173 extern const char *external_acl_message; /* NULL */
174 extern int opt_send_signal; /* -1 */
175 extern int opt_no_daemon; /* 0 */
176
177
178 #ifdef __cplusplus
179 }
180
181 #endif
182
183 #endif /* SQUID_GLOBALS_H */