squid.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_INCLUDE_SQUID_H
10 #define SQUID_INCLUDE_SQUID_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 SQUID_DETECT_UDP_SO_SNDBUF > 16384
41 #define SQUID_UDP_SO_SNDBUF 16384
42 #else
43 #define SQUID_UDP_SO_SNDBUF SQUID_DETECT_UDP_SO_SNDBUF
44 #endif
45 
46 #if SQUID_DETECT_UDP_SO_RCVBUF > 16384
47 #define SQUID_UDP_SO_RCVBUF 16384
48 #else
49 #define SQUID_UDP_SO_RCVBUF SQUID_DETECT_UDP_SO_RCVBUF
50 #endif
51 
52 /* temp hack: needs to be pre-defined for now. */
53 #define SQUID_MAXPATHLEN 256
54 
55 // TODO: determine if this is required. OR if compat/os/mswindows.h works
56 #if _SQUID_WINDOWS_ && defined(__cplusplus)
57 
58 using namespace Squid;
60 #endif
61 
62 #define LOCAL_ARRAY(type, name, size) static type name[size]
63 
64 #endif /* SQUID_INCLUDE_SQUID_H */
65 

 

Introduction

Documentation

Support

Miscellaneous