]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved peer sourcehash functions to peer_sourcehash.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 11:50:25 +0000 (13:50 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 11:50:25 +0000 (13:50 +0200)
src/Makefile.am
src/main.cc
src/peer_select.cc
src/peer_sourcehash.h [new file with mode: 0644]
src/protos.h

index d9b2f6bd2451a5e827440e59f39ea590d7de01fd..c66f76bd3f15cee1971f8edf6ded21d16ee11505 100644 (file)
@@ -420,6 +420,7 @@ squid_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        PeerSelectState.h \
@@ -1386,6 +1387,7 @@ tests_testCacheManager_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
@@ -1733,6 +1735,7 @@ tests_testEvent_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
@@ -1935,6 +1938,7 @@ tests_testEventLoop_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        RemovalPolicy.cc \
@@ -2132,6 +2136,7 @@ tests_test_http_range_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        pconn.cc \
@@ -2371,6 +2376,7 @@ tests_testHttpRequest_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
@@ -3316,6 +3322,7 @@ tests_testURL_SOURCES = \
        peer_digest.cc \
        peer_proxy_negotiate_auth.cc \
        peer_select.cc \
+       peer_sourcehash.h \
        peer_sourcehash.cc \
        peer_userhash.cc \
        redirect.cc \
index 109bc37fe856af8b6d8815f082606cdbd5f6583c..14226062e63c3cab9438841ff1b9dc8ccb37593d 100644 (file)
@@ -68,6 +68,7 @@
 #include "neighbors.h"
 #include "pconn.h"
 #include "PeerSelectState.h"
+#include "peer_sourcehash.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
 #include "refresh.h"
index 4d8b5b876517af9a43b7eb351ec9fcea125bc4ef..bb6f23118d3e368f84b32fe0d6cef223d745c74d 100644 (file)
@@ -46,6 +46,7 @@
 #include "ICP.h"
 #include "ipcache.h"
 #include "neighbors.h"
+#include "peer_sourcehash.h"
 #include "PeerSelectState.h"
 #include "protos.h"
 #include "SquidTime.h"
diff --git a/src/peer_sourcehash.h b/src/peer_sourcehash.h
new file mode 100644 (file)
index 0000000..bbfd872
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+ * 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_PEER_SOURCEHASH_H_
+#define SQUID_PEER_SOURCEHASH_H_
+
+class peer;
+class HttpRequest;
+
+extern void peerSourceHashInit(void);
+extern peer * peerSourceHashSelectParent(HttpRequest * request);
+
+
+
+#endif /* SQUID_PEER_SOURCEHASH_H_ */
index b196a9779daf9fca888641dc1baaa95c643028f4..7283e2bc07b3de710c4a55c8a6cd9045f244a134 100644 (file)
@@ -475,9 +475,6 @@ SQUIDCEXTERN peer *carpSelectParent(HttpRequest *);
 SQUIDCEXTERN void peerUserHashInit(void);
 SQUIDCEXTERN peer * peerUserHashSelectParent(HttpRequest * request);
 
-SQUIDCEXTERN void peerSourceHashInit(void);
-SQUIDCEXTERN peer * peerSourceHashSelectParent(HttpRequest * request);
-
 /*
  * prototypes for system functions missing from system includes
  */