squid.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
14 #if !defined(HAVE_SQUID)
15 /* sub-packages define their own version details */
16 #include "version.h"
17 
18 #endif
19 
20 /* default values for listen ports. Usually specified in squid.conf really */
21 #define CACHE_HTTP_PORT 3128
22 #define CACHE_ICP_PORT 3130
23 
24 /* To keep API definitions clear */
25 #ifdef __cplusplus
26 #define SQUIDCEXTERN extern "C"
27 #else
28 #define SQUIDCEXTERN extern
29 #endif
30 
31 /****************************************************************************
32  *--------------------------------------------------------------------------*
33  * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
34  *--------------------------------------------------------------------------*
35  ****************************************************************************/
36 
37 #include "compat/compat.h"
38 
39 #ifdef USE_POSIX_REGEX
40 #ifndef USE_RE_SYNTAX
41 #define USE_RE_SYNTAX REG_EXTENDED /* default Syntax */
42 #endif
43 #endif
44 
45 #if !defined(CACHEMGR_HOSTNAME)
46 #define CACHEMGR_HOSTNAME ""
47 #else
48 #define CACHEMGR_HOSTNAME_DEFINED 1
49 #endif
50 
51 #if SQUID_DETECT_UDP_SO_SNDBUF > 16384
52 #define SQUID_UDP_SO_SNDBUF 16384
53 #else
54 #define SQUID_UDP_SO_SNDBUF SQUID_DETECT_UDP_SO_SNDBUF
55 #endif
56 
57 #if SQUID_DETECT_UDP_SO_RCVBUF > 16384
58 #define SQUID_UDP_SO_RCVBUF 16384
59 #else
60 #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF
61 #endif
62 
63 /*
64  * Determine if this is a leak check build or standard
65  */
66 #if PURIFY || WITH_VALGRIND
67 #define LEAK_CHECK_MODE 1
68 #endif
69 
70 /* temp hack: needs to be pre-defined for now. */
71 #define SQUID_MAXPATHLEN 256
72 
73 // TODO: determine if this is required. OR if compat/os/mswindows.h works
74 #if _SQUID_WINDOWS_ && defined(__cplusplus)
75 
76 using namespace Squid;
78 #endif
79 
80 // temporary for the definition of LOCAL_ARRAY
81 #include "leakcheck.h"
82 
83 #endif /* SQUID_CONFIG_H */
84 

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors