]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved refresh prototypes from protos.h to refresh.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 17 Aug 2012 15:29:58 +0000 (17:29 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 17 Aug 2012 15:29:58 +0000 (17:29 +0200)
src/Makefile.am
src/client_side_reply.cc
src/htcp.cc
src/http.cc
src/icp_v2.cc
src/main.cc
src/protos.h
src/refresh.h [new file with mode: 0644]
src/store_digest.cc
test-suite/buildtests/layer-02-maximus.opts

index fec01e85409414d1ef18e6ffb236d76f27cc2474..3236db25cf93579b7d9000e6d30d65a59e272e97 100644 (file)
@@ -424,6 +424,7 @@ squid_SOURCES = \
        PingData.h \
        protos.h \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        RemovalPolicy.h \
@@ -1384,6 +1385,7 @@ tests_testCacheManager_SOURCES = \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        Server.cc \
@@ -1517,6 +1519,7 @@ tests_testDiskIO_SOURCES = \
        mem.cc \
        Packer.cc \
        Parsing.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        StatCounters.h \
@@ -1725,6 +1728,7 @@ tests_testEvent_SOURCES = \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        Server.cc \
@@ -1925,6 +1929,7 @@ tests_testEventLoop_SOURCES = \
        peer_userhash.cc \
        RemovalPolicy.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        Server.cc \
        $(SNMP_SOURCE) \
@@ -2119,6 +2124,7 @@ tests_test_http_range_SOURCES = \
        peer_userhash.cc \
        pconn.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        Server.cc \
@@ -2354,6 +2360,7 @@ tests_testHttpRequest_SOURCES = \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        Server.cc \
@@ -2482,6 +2489,7 @@ tests_testStore_SOURCES= \
        Packer.cc \
        Parsing.cc \
        RemovalPolicy.cc \
+       refresh.h \
        refresh.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -2734,6 +2742,7 @@ tests_testUfs_SOURCES = \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
        tests/stub_access_log.cc \
+       refresh.h \
        refresh.cc \
        tests/stub_store_client.cc \
        tests/stub_tools.cc \
@@ -3005,6 +3014,7 @@ tests_testCoss_SOURCES = \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
        tests/stub_access_log.cc \
+       refresh.h \
        refresh.cc \
        tests/stub_MemStore.cc \
        tests/stub_Port.cc \
@@ -3142,6 +3152,7 @@ tests_testNull_SOURCES = \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
        tests/stub_access_log.cc \
+       refresh.h \
        refresh.cc \
        tests/stub_store_client.cc \
        tests/stub_store_stats.cc \
@@ -3284,6 +3295,7 @@ tests_testURL_SOURCES = \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
+       refresh.h \
        refresh.cc \
        RemovalPolicy.cc \
        Server.cc \
index 3fdedcc45ae28e92b0a2d9bfa3003a5fec20ec41..440492c3a59db41fd89175675f3959f181d94f7b 100644 (file)
@@ -52,6 +52,7 @@
 #include "MemObject.h"
 #include "neighbors.h"
 #include "protos.h"
+#include "refresh.h"
 #include "SquidTime.h"
 #include "Store.h"
 #include "StoreClient.h"
index 74c9639af04095f13de00d523536466933eecf1d..88de49e8c2787ae0461901cde35118f52ccb89e1 100644 (file)
@@ -51,6 +51,7 @@
 #include "md5.h"
 #include "MemBuf.h"
 #include "protos.h"
+#include "refresh.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
index d6046f6357abd0bc458057f12b7383efea662fcf..8c173319b2eb9f8a53493d4fef64c93dc91404df 100644 (file)
@@ -62,6 +62,7 @@
 #include "neighbors.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
+#include "refresh.h"
 #include "rfc1738.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index a4d1df6353eb545300088a796c75dd8d86900008..764732ebd44054af0cae89f12c084de25427d8a7 100644 (file)
@@ -53,6 +53,7 @@
 #include "md5.h"
 #include "neighbors.h"
 #include "protos.h"
+#include "refresh.h"
 #include "rfc1738.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index c17fda818d8998da64762b30a6b26da62f2418f7..109bc37fe856af8b6d8815f082606cdbd5f6583c 100644 (file)
@@ -70,6 +70,7 @@
 #include "PeerSelectState.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
+#include "refresh.h"
 #include "SquidDns.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
index 3404485fe7cfd0efbf48b528bfba1321c4cc7cb4..2d225a020008f18a313d46bb26381aa942f8f73e 100644 (file)
@@ -234,15 +234,6 @@ SQUIDCEXTERN void urnStart(HttpRequest *, StoreEntry *);
 SQUIDCEXTERN void redirectInit(void);
 SQUIDCEXTERN void redirectShutdown(void);
 
-extern void refreshAddToList(const char *, int, time_t, int, time_t);
-extern int refreshIsCachable(const StoreEntry *);
-extern int refreshCheckHTTP(const StoreEntry *, HttpRequest *);
-extern int refreshCheckICP(const StoreEntry *, HttpRequest *);
-extern int refreshCheckHTCP(const StoreEntry *, HttpRequest *);
-extern int refreshCheckDigest(const StoreEntry *, time_t delta);
-extern time_t getMaxAge(const char *url);
-extern void refreshInit(void);
-extern const refresh_t *refreshLimits(const char *url);
 
 extern void shut_down(int);
 extern void rotate_logs(int);
diff --git a/src/refresh.h b/src/refresh.h
new file mode 100644 (file)
index 0000000..804716f
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * DEBUG: section 
+ * AUTHOR: 
+ *
+ * SQUID Web Proxy Cache          http://www.squid-cache.org/
+ * ----------------------------------------------------------
+ *
+ *  Squid is the result of efforts by numerous individuals from
+ *  the Internet community; see the CONTRIBUTORS file for full
+ *  details.   Many organizations have provided support for Squid's
+ *  development; see the SPONSORS file for full details.  Squid is
+ *  Copyrighted (C) 2001 by the Regents of the University of
+ *  California; see the COPYRIGHT file for full details.  Squid
+ *  incorporates software developed and/or copyrighted by other
+ *  sources; see the CREDITS file for full details.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
+ *
+ */
+
+
+#ifndef SQUID_REFRESH_H_
+#define SQUID_REFRESH_H_
+
+extern void refreshAddToList(const char *, int, time_t, int, time_t);
+extern int refreshIsCachable(const StoreEntry *);
+extern int refreshCheckHTTP(const StoreEntry *, HttpRequest *);
+extern int refreshCheckICP(const StoreEntry *, HttpRequest *);
+extern int refreshCheckHTCP(const StoreEntry *, HttpRequest *);
+extern int refreshCheckDigest(const StoreEntry *, time_t delta);
+extern time_t getMaxAge(const char *url);
+extern void refreshInit(void);
+extern const refresh_t *refreshLimits(const char *url);
+
+
+
+#endif /* SQUID_REFRESH_H_ */
index 141e928adc3da0a212999a4f73164ace7c09774c..6f2efc0259857a42cea771b8c341f4e1b91712f7 100644 (file)
@@ -52,6 +52,7 @@
 #include "HttpRequest.h"
 #include "MemObject.h"
 #include "PeerDigest.h"
+#include "refresh.h"
 #include "SquidTime.h"
 #include "Store.h"
 #include "StoreSearch.h"
index c7360d6fbd8b5da3263162121e5dfba381d76156..8e564d05f6a6dcc6ccd5127af9300c82390d0e66 100644 (file)
@@ -108,6 +108,7 @@ DISTCHECK_CONFIGURE_FLAGS=" \
        --with-pic \
        --with-pthreads \
        --enable-build-info=squid\ test\ build \
+       --enable-ssl-crtd \
        "
 
 # Fix the distclean testing.