squid.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3  *
4  * Squid software is distributed under GPLv2+ license and includes
5  * contributions from numerous individuals and organizations.
6  * Please see the COPYING and CONTRIBUTORS files for details.
7  */
8 
9 #ifndef SQUID_CONFIG_H
10 #define SQUID_CONFIG_H
11 
12 #include "autoconf.h" /* For GNU autoconf variables */
13 #include "version.h"
14 
15 /* default values for listen ports. Usually specified in squid.conf really */
16 #define CACHE_HTTP_PORT 3128
17 #define CACHE_ICP_PORT 3130
18 
19 /* To keep API definitions clear */
20 #ifdef __cplusplus
21 #define SQUIDCEXTERN extern "C"
22 #else
23 #define SQUIDCEXTERN extern
24 #endif
25 
26 /****************************************************************************
27  *--------------------------------------------------------------------------*
28  * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
29  *--------------------------------------------------------------------------*
30  ****************************************************************************/
31 
32 #include "compat/compat.h"
33 
34 #ifdef USE_POSIX_REGEX
35 #ifndef USE_RE_SYNTAX
36 #define USE_RE_SYNTAX REG_EXTENDED /* default Syntax */
37 #endif
38 #endif
39 
40 #if !defined(CACHEMGR_HOSTNAME)
41 #define CACHEMGR_HOSTNAME ""
42 #else
43 #define CACHEMGR_HOSTNAME_DEFINED 1
44 #endif
45 
46 #if SQUID_DETECT_UDP_SO_SNDBUF > 16384
47 #define SQUID_UDP_SO_SNDBUF 16384
48 #else
49 #define SQUID_UDP_SO_SNDBUF SQUID_DETECT_UDP_SO_SNDBUF
50 #endif
51 
52 #if SQUID_DETECT_UDP_SO_RCVBUF > 16384
53 #define SQUID_UDP_SO_RCVBUF 16384
54 #else
55 #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF
56 #endif
57 
58 /*
59  * Determine if this is a leak check build or standard
60  */
61 #if PURIFY || WITH_VALGRIND
62 #define LEAK_CHECK_MODE 1
63 #endif
64 
65 /* temp hack: needs to be pre-defined for now. */
66 #define SQUID_MAXPATHLEN 256
67 
68 // TODO: determine if this is required. OR if compat/os/mswindows.h works
69 #if _SQUID_WINDOWS_ && defined(__cplusplus)
70 
71 using namespace Squid;
73 #endif
74 
75 #define LOCAL_ARRAY(type, name, size) static type name[size]
76 
77 #endif /* SQUID_CONFIG_H */
78 

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors