]> git.ipfire.org Git - thirdparty/squid.git/blame - src/globals.h
Author: wessels & Christos Tsantilas
[thirdparty/squid.git] / src / globals.h
CommitLineData
9fb13bb6 1
c5ddf51c 2/*
47f6e231 3 * $Id: globals.h,v 1.141 2007/08/13 17:20:51 hno Exp $
9cef6668 4 *
5 *
2b6662ba 6 * SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 7 * ----------------------------------------------------------
8 *
2b6662ba 9 * Squid is the result of efforts by numerous individuals from
10 * the Internet community; see the CONTRIBUTORS file for full
11 * details. Many organizations have provided support for Squid's
12 * development; see the SPONSORS file for full details. Squid is
13 * Copyrighted (C) 2001 by the Regents of the University of
14 * California; see the COPYRIGHT file for full details. Squid
15 * incorporates software developed and/or copyrighted by other
16 * sources; see the CREDITS file for full details.
9cef6668 17 *
18 * This program is free software; you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation; either version 2 of the License, or
21 * (at your option) any later version.
22 *
23 * This program is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with this program; if not, write to the Free Software
30 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
31 *
fc084a16 32 */
a8258824 33
b5638623 34#ifndef SQUID_GLOBALS_H
35#define SQUID_GLOBALS_H
36
42c674fd 37#ifdef __cplusplus
38extern "C"
39{
40#endif
41
42 extern FILE *debug_log; /* NULL */
43 extern SquidConfig Config;
44 extern SquidConfig2 Config2;
45 extern char *ConfigFile; /* NULL */
46 extern char *IcpOpcodeStr[];
47 extern const char *dns_error_message; /* NULL */
48 extern const char *log_tags[];
49 extern char tmp_error_buf[ERROR_BUF_SZ];
50 extern char *volatile debug_options; /* NULL */
51 extern char ThisCache[SQUIDHOSTNAMELEN << 1];
52 extern char ThisCache2[SQUIDHOSTNAMELEN << 1];
53 extern char config_input_line[BUFSIZ];
54 extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
55 extern const char *cfg_filename; /* NULL */
56 extern const char *const appname; /* "squid" */
57 extern const char *const dash_str; /* "-" */
58 extern const char *const localhost; /* "127.0.0.1" */
59 extern const char *const null_string; /* "" */
60 extern const char *const version_string; /* VERSION */
61 extern const char *const full_appname_string; /* PACKAGE "/" VERSION */
62 extern const char *const appname_string; /* PACKAGE */
63 extern char * visible_appname_string;
64 extern const char *const w_space; /* " \t\n\r" */
65 extern const char *fdTypeStr[];
66 extern const char *hier_strings[];
67 extern const char *memStatusStr[];
68 extern const char *pingStatusStr[];
69 extern const char *storeStatusStr[];
70 extern const char *swapStatusStr[];
71 extern fde *fd_table; /* NULL */
72 extern int Biggest_FD; /* -1 */
73 extern int Number_FD; /* 0 */
74 extern int Opening_FD; /* 0 */
75 extern int HttpSockets[MAXHTTPPORTS];
76 extern int NDnsServersAlloc; /* 0 */
77 extern int NHttpSockets; /* 0 */
78 extern int RESERVED_FD;
79 extern int Squid_MaxFD; /* SQUID_MAXFD */
80 extern int config_lineno; /* 0 */
81 extern int do_mallinfo; /* 0 */
82 extern int opt_reuseaddr; /* 1 */
83 extern int icmp_sock; /* -1 */
84 extern int neighbors_do_private_keys; /* 1 */
85 extern int opt_catch_signals; /* 1 */
86 extern int opt_debug_stderr; /* -1 */
87 extern int opt_dns_tests; /* 1 */
88 extern int opt_foreground_rebuild; /* 0 */
89 extern int opt_forwarded_for; /* 1 */
90 extern int opt_reload_hit_only; /* 0 */
c307aec3 91#if HAVE_SYSLOG
42c674fd 92
93 extern int opt_syslog_enable; /* 0 */
c307aec3 94#endif
42c674fd 95
96 extern int opt_udp_hit_obj; /* 0 */
97 extern int opt_create_swap_dirs; /* 0 */
98 extern int opt_store_doublecheck; /* 0 */
99 extern int syslog_enable; /* 0 */
100 extern int theInIcpConnection; /* -1 */
101 extern int theOutIcpConnection; /* -1 */
102 extern int DnsSocket; /* -1 */
2bbd722b 103#ifdef SQUID_SNMP
42c674fd 104
105 extern int theInSnmpConnection; /* -1 */
106 extern int theOutSnmpConnection; /* -1 */
107 extern char *snmp_agentinfo;
2bbd722b 108#endif
42c674fd 109
110 extern int n_disk_objects; /* 0 */
111 extern iostats IOStats;
112
113 extern struct _acl_deny_info_list *DenyInfoList; /* NULL */
114
115 extern struct IN_ADDR any_addr;
116
117 extern struct IN_ADDR local_addr;
118
119 extern struct IN_ADDR no_addr;
120
121 extern struct IN_ADDR theOutICPAddr;
122
123 extern struct IN_ADDR theOutSNMPAddr;
124
125 extern struct timeval current_time;
126
127 extern struct timeval squid_start;
128 extern int shutting_down; /* 0 */
129 extern int reconfiguring; /* 0 */
42c674fd 130 extern unsigned long store_swap_size; /* 0 */
131 extern time_t hit_only_mode_until; /* 0 */
132 extern StatCounters statCounter;
133 extern char *err_type_str[];
134 extern char *icp_opcode_str[];
135 extern char *swap_log_op_str[];
136 extern char *lookup_t_str[];
137 extern double request_failure_ratio; /* 0.0 */
138 extern double current_dtime;
139 extern int store_hash_buckets; /* 0 */
140 extern hash_table *store_table; /* NULL */
141 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" */
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 */
182
183 extern const char *external_acl_message; /* NULL */
184 extern int opt_send_signal; /* -1 */
185 extern int opt_no_daemon; /* 0 */
fc68f6b1 186#if LINUX_TPROXY
187 extern int need_linux_tproxy; /* 0 */
188#endif
189
42c674fd 190
191#ifdef __cplusplus
192}
193
194#endif
a7ad6e4e 195
b5638623 196#endif /* SQUID_GLOBALS_H */