]> git.ipfire.org Git - thirdparty/squid.git/blame - src/globals.h
Major ACL handling update, including the following changes:
[thirdparty/squid.git] / src / globals.h
CommitLineData
c5ddf51c 1/*
9cef6668 2 *
2b6662ba 3 * SQUID Web Proxy Cache http://www.squid-cache.org/
9cef6668 4 * ----------------------------------------------------------
5 *
2b6662ba 6 * Squid is the result of efforts by numerous individuals from
7 * the Internet community; see the CONTRIBUTORS file for full
8 * details. Many organizations have provided support for Squid's
9 * development; see the SPONSORS file for full details. Squid is
10 * Copyrighted (C) 2001 by the Regents of the University of
11 * California; see the COPYRIGHT file for full details. Squid
12 * incorporates software developed and/or copyrighted by other
13 * sources; see the CREDITS file for full details.
9cef6668 14 *
15 * This program is free software; you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation; either version 2 of the License, or
18 * (at your option) any later version.
26ac0430 19 *
9cef6668 20 * This program is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
26ac0430 24 *
9cef6668 25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
28 *
fc084a16 29 */
b5638623 30#ifndef SQUID_GLOBALS_H
31#define SQUID_GLOBALS_H
32
9ce629cf
FC
33#include "acl/AclDenyInfoList.h"
34#include "CacheDigest.h"
35#include "defines.h"
36#include "hash.h"
37#include "IoStats.h"
38#include "rfc2181.h"
39
e1f7507e
AJ
40#if HAVE_STDIO_H
41#include <stdio.h>
42#endif
43
b0fb853f
A
44extern char *ConfigFile; /* NULL */
45extern char *IcpOpcodeStr[];
46extern char tmp_error_buf[ERROR_BUF_SZ];
47extern char ThisCache[RFC2181_MAXHOSTNAMELEN << 1];
48extern char ThisCache2[RFC2181_MAXHOSTNAMELEN << 1];
49extern char config_input_line[BUFSIZ];
6f58d7d7
AR
50/// During parsing, the name of the current squid.conf directive being parsed.
51extern const char *cfg_directive; /* NULL */
b0fb853f
A
52extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
53extern const char *cfg_filename; /* NULL */
54extern const char *dash_str; /* "-" */
55extern const char *null_string; /* "" */
56extern const char *version_string; /* VERSION */
57extern const char *appname_string; /* PACKAGE */
58extern char const *visible_appname_string; /* NULL */
59extern const char *fdTypeStr[];
60extern const char *hier_strings[];
61extern const char *memStatusStr[];
62extern const char *pingStatusStr[];
63extern const char *storeStatusStr[];
64extern const char *swapStatusStr[];
b0fb853f
A
65extern int Biggest_FD; /* -1 */
66extern int Number_FD; /* 0 */
67extern int Opening_FD; /* 0 */
68extern int NDnsServersAlloc; /* 0 */
69extern int RESERVED_FD;
70extern int Squid_MaxFD; /* SQUID_MAXFD */
71extern int config_lineno; /* 0 */
72extern int do_mallinfo; /* 0 */
73extern int opt_reuseaddr; /* 1 */
74extern int neighbors_do_private_keys; /* 1 */
75extern int opt_catch_signals; /* 1 */
76extern int opt_foreground_rebuild; /* 0 */
77extern char *opt_forwarded_for; /* NULL */
78extern int opt_reload_hit_only; /* 0 */
42c674fd 79
b0fb853f
A
80extern int opt_udp_hit_obj; /* 0 */
81extern int opt_create_swap_dirs; /* 0 */
82extern int opt_store_doublecheck; /* 0 */
83extern int syslog_enable; /* 0 */
84extern int DnsSocketA; /* -1 */
85extern int DnsSocketB; /* -1 */
86extern int n_disk_objects; /* 0 */
9ce629cf 87extern IoStats IOStats;
42c674fd 88
7f0b3324 89extern AclDenyInfoList *DenyInfoList; /* NULL */
42c674fd 90
b0fb853f
A
91extern struct timeval squid_start;
92extern int starting_up; /* 1 */
93extern int shutting_down; /* 0 */
94extern int reconfiguring; /* 0 */
95extern time_t hit_only_mode_until; /* 0 */
96extern double request_failure_ratio; /* 0.0 */
97extern int store_hash_buckets; /* 0 */
98extern hash_table *store_table; /* NULL */
99extern int hot_obj_count; /* 0 */
100extern int CacheDigestHashFuncCount; /* 4 */
101extern CacheDigest *store_digest; /* NULL */
102extern const char *StoreDigestFileName; /* "store_digest" */
103extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
42c674fd 104
b0fb853f 105extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
626096be 106#if USE_HTTP_VIOLATIONS
b0fb853f 107extern int refresh_nocache_hack; /* 0 */
9f60cfdf 108#endif
42c674fd 109
b0fb853f
A
110extern int store_open_disk_fd; /* 0 */
111extern const char *SwapDirType[];
112extern int store_swap_low; /* 0 */
113extern int store_swap_high; /* 0 */
114extern size_t store_pages_max; /* 0 */
115extern int64_t store_maxobjsize; /* -1 */
116extern hash_table *proxy_auth_username_cache; /* NULL */
117extern int incoming_sockets_accepted;
7aa9bb3e 118#if _SQUID_WINDOWS_
b0fb853f 119extern unsigned int WIN32_Socks_initialized; /* 0 */
a50bfe93 120#endif
be266cb2 121#if _SQUID_WINDOWS_
b0fb853f
A
122extern unsigned int WIN32_OS_version; /* 0 */
123extern char *WIN32_OS_string; /* NULL */
124extern char *WIN32_Service_name; /* NULL */
125extern char *WIN32_Command_Line; /* NULL */
126extern char *WIN32_Service_Command_Line; /* NULL */
127extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
0e6d05ef 128#endif
a4ba1105 129#if HAVE_SBRK
b0fb853f 130extern void *sbrk_start; /* 0 */
a4ba1105 131#endif
b5638623 132
b0fb853f
A
133extern int ssl_ex_index_server; /* -1 */
134extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
135extern int ssl_ex_index_cert_error_check; /* -1 */
136extern int ssl_ex_index_ssl_error_detail; /* -1 */
137extern int ssl_ex_index_ssl_peeked_cert; /* -1 */
138extern int ssl_ex_index_ssl_errors; /* -1 */
42c674fd 139
b0fb853f
A
140extern const char *external_acl_message; /* NULL */
141extern int opt_send_signal; /* -1 */
142extern int opt_no_daemon; /* 0 */
143extern int opt_parse_cfg_only; /* 0 */
fc68f6b1 144
710d3d1d
AR
145/// current Squid process number (e.g., 4).
146/// Zero for SMP-unaware code and in no-SMP mode.
b0fb853f 147extern int KidIdentifier; /* 0 */
42c674fd 148
b5638623 149#endif /* SQUID_GLOBALS_H */