]> git.ipfire.org Git - thirdparty/squid.git/blame - src/globals.h
HttpRequest::helperNotes to NotePairs
[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];
50extern const char *DefaultConfigFile; /* DEFAULT_CONFIG_FILE */
51extern const char *cfg_filename; /* NULL */
52extern const char *dash_str; /* "-" */
53extern const char *null_string; /* "" */
54extern const char *version_string; /* VERSION */
55extern const char *appname_string; /* PACKAGE */
56extern char const *visible_appname_string; /* NULL */
57extern const char *fdTypeStr[];
58extern const char *hier_strings[];
59extern const char *memStatusStr[];
60extern const char *pingStatusStr[];
61extern const char *storeStatusStr[];
62extern const char *swapStatusStr[];
b0fb853f
A
63extern int Biggest_FD; /* -1 */
64extern int Number_FD; /* 0 */
65extern int Opening_FD; /* 0 */
66extern int NDnsServersAlloc; /* 0 */
67extern int RESERVED_FD;
68extern int Squid_MaxFD; /* SQUID_MAXFD */
69extern int config_lineno; /* 0 */
70extern int do_mallinfo; /* 0 */
71extern int opt_reuseaddr; /* 1 */
72extern int neighbors_do_private_keys; /* 1 */
73extern int opt_catch_signals; /* 1 */
74extern int opt_foreground_rebuild; /* 0 */
75extern char *opt_forwarded_for; /* NULL */
76extern int opt_reload_hit_only; /* 0 */
42c674fd 77
b0fb853f
A
78extern int opt_udp_hit_obj; /* 0 */
79extern int opt_create_swap_dirs; /* 0 */
80extern int opt_store_doublecheck; /* 0 */
81extern int syslog_enable; /* 0 */
82extern int DnsSocketA; /* -1 */
83extern int DnsSocketB; /* -1 */
84extern int n_disk_objects; /* 0 */
9ce629cf 85extern IoStats IOStats;
42c674fd 86
7f0b3324 87extern AclDenyInfoList *DenyInfoList; /* NULL */
42c674fd 88
b0fb853f
A
89extern struct timeval squid_start;
90extern int starting_up; /* 1 */
91extern int shutting_down; /* 0 */
92extern int reconfiguring; /* 0 */
93extern time_t hit_only_mode_until; /* 0 */
94extern double request_failure_ratio; /* 0.0 */
95extern int store_hash_buckets; /* 0 */
96extern hash_table *store_table; /* NULL */
97extern int hot_obj_count; /* 0 */
98extern int CacheDigestHashFuncCount; /* 4 */
99extern CacheDigest *store_digest; /* NULL */
100extern const char *StoreDigestFileName; /* "store_digest" */
101extern const char *StoreDigestMimeStr; /* "application/cache-digest" */
42c674fd 102
b0fb853f 103extern const char *MultipartMsgBoundaryStr; /* "Unique-Squid-Separator" */
626096be 104#if USE_HTTP_VIOLATIONS
b0fb853f 105extern int refresh_nocache_hack; /* 0 */
9f60cfdf 106#endif
42c674fd 107
b0fb853f
A
108extern int store_open_disk_fd; /* 0 */
109extern const char *SwapDirType[];
110extern int store_swap_low; /* 0 */
111extern int store_swap_high; /* 0 */
112extern size_t store_pages_max; /* 0 */
113extern int64_t store_maxobjsize; /* -1 */
114extern hash_table *proxy_auth_username_cache; /* NULL */
115extern int incoming_sockets_accepted;
7aa9bb3e 116#if _SQUID_WINDOWS_
b0fb853f 117extern unsigned int WIN32_Socks_initialized; /* 0 */
a50bfe93 118#endif
be266cb2 119#if _SQUID_WINDOWS_
b0fb853f
A
120extern unsigned int WIN32_OS_version; /* 0 */
121extern char *WIN32_OS_string; /* NULL */
122extern char *WIN32_Service_name; /* NULL */
123extern char *WIN32_Command_Line; /* NULL */
124extern char *WIN32_Service_Command_Line; /* NULL */
125extern unsigned int WIN32_run_mode; /* _WIN_SQUID_RUN_MODE_INTERACTIVE */
0e6d05ef 126#endif
a4ba1105 127#if HAVE_SBRK
b0fb853f 128extern void *sbrk_start; /* 0 */
a4ba1105 129#endif
b5638623 130
b0fb853f
A
131extern int ssl_ex_index_server; /* -1 */
132extern int ssl_ctx_ex_index_dont_verify_domain; /* -1 */
133extern int ssl_ex_index_cert_error_check; /* -1 */
134extern int ssl_ex_index_ssl_error_detail; /* -1 */
135extern int ssl_ex_index_ssl_peeked_cert; /* -1 */
136extern int ssl_ex_index_ssl_errors; /* -1 */
42c674fd 137
b0fb853f
A
138extern const char *external_acl_message; /* NULL */
139extern int opt_send_signal; /* -1 */
140extern int opt_no_daemon; /* 0 */
141extern int opt_parse_cfg_only; /* 0 */
fc68f6b1 142
710d3d1d
AR
143/// current Squid process number (e.g., 4).
144/// Zero for SMP-unaware code and in no-SMP mode.
b0fb853f 145extern int KidIdentifier; /* 0 */
42c674fd 146
b5638623 147#endif /* SQUID_GLOBALS_H */