]> git.ipfire.org Git - thirdparty/squid.git/blob - include/squid.h
344715f345f71b0ed3eb3e60a305e3beff442f0f
[thirdparty/squid.git] / include / squid.h
1 /*
2 * Copyright (C) 1996-2015 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 #if _USE_INLINE_
32 #define _SQUID_INLINE_ inline
33 #else
34 #define _SQUID_INLINE_
35 #endif
36
37 /****************************************************************************
38 *--------------------------------------------------------------------------*
39 * DO *NOT* MAKE ANY CHANGES below here unless you know what you're doing...*
40 *--------------------------------------------------------------------------*
41 ****************************************************************************/
42
43 #include "compat/compat.h"
44
45 #ifdef USE_POSIX_REGEX
46 #ifndef USE_RE_SYNTAX
47 #define USE_RE_SYNTAX REG_EXTENDED /* default Syntax */
48 #endif
49 #endif
50
51 #if !defined(CACHEMGR_HOSTNAME)
52 #define CACHEMGR_HOSTNAME ""
53 #else
54 #define CACHEMGR_HOSTNAME_DEFINED 1
55 #endif
56
57 #if SQUID_DETECT_UDP_SO_SNDBUF > 16384
58 #define SQUID_UDP_SO_SNDBUF 16384
59 #else
60 #define SQUID_UDP_SO_SNDBUF SQUID_DETECT_UDP_SO_SNDBUF
61 #endif
62
63 #if SQUID_DETECT_UDP_SO_RCVBUF > 16384
64 #define SQUID_UDP_SO_RCVBUF 16384
65 #else
66 #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF
67 #endif
68
69 /*
70 * Determine if this is a leak check build or standard
71 */
72 #if PURIFY || WITH_VALGRIND
73 #define LEAK_CHECK_MODE 1
74 #endif
75
76 /* temp hack: needs to be pre-defined for now. */
77 #define SQUID_MAXPATHLEN 256
78
79 // TODO: determine if this is required. OR if compat/os/mswindows.h works
80 #if _SQUID_WINDOWS_ && defined(__cplusplus)
81 /** \cond AUTODOCS-IGNORE */
82 using namespace Squid;
83 /** \endcond */
84 #endif
85
86 // temporary for the definition of LOCAL_ARRAY
87 #include "leakcheck.h"
88
89 #endif /* SQUID_CONFIG_H */
90