]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved carp prototypes to carp.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 12:28:41 +0000 (14:28 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 12:28:41 +0000 (14:28 +0200)
src/Makefile.am
src/carp.h [new file with mode: 0644]
src/main.cc
src/peer_select.cc
src/protos.h

index a0f2f8304891c23b157a07614b265b51edf72d81..b4f54fe018ec7bc83cf86a7c8a7d2bf333169f97 100644 (file)
@@ -268,6 +268,7 @@ squid_SOURCES = \
        CacheDigest.cc \
        cache_manager.cc \
        CacheManager.h \
+       carp.h \
        carp.cc \
        cbdata.cc \
        cbdata.h \
@@ -1308,6 +1309,7 @@ tests_testCacheManager_SOURCES = \
        cache_cf.cc \
        CacheDigest.h \
        CacheDigest.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
@@ -1648,6 +1650,7 @@ tests_testEvent_SOURCES = \
        CacheDigest.cc \
        cache_cf.cc \
        cache_manager.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
@@ -1852,6 +1855,7 @@ tests_testEventLoop_SOURCES = \
        CacheDigest.cc \
        cache_manager.cc \
        cache_cf.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
@@ -2054,6 +2058,7 @@ tests_test_http_range_SOURCES = \
        cache_manager.cc \
        CacheDigest.h \
        CacheDigest.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
@@ -2305,6 +2310,7 @@ tests_testHttpRequest_SOURCES = \
        debug.cc \
        CacheDigest.h \
        CacheDigest.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
@@ -3242,6 +3248,7 @@ tests_testURL_SOURCES = \
        cache_manager.cc \
        CacheDigest.h \
        CacheDigest.cc \
+       carp.h \
        carp.cc \
        cbdata.cc \
        ChunkedCodingParser.cc \
diff --git a/src/carp.h b/src/carp.h
new file mode 100644 (file)
index 0000000..c3799cd
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * DEBUG: section 39    Cache Array Routing Protocol
+ * AUTHOR: Henrik Nordstrom
+ *
+ * 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_CARP_H_
+#define SQUID_CARP_H_
+
+class peer;
+class HttpRequest;
+
+extern void carpInit(void);
+extern peer *carpSelectParent(HttpRequest *);
+
+#endif /* SQUID_CARP_H_ */
index 460de93ef3e1af07dc6da4678d50d62bbe698c45..5a8c0c9ea40dd2154251b7c5daabc5176cde6785 100644 (file)
@@ -39,6 +39,7 @@
 #include "base/RunnersRegistry.h"
 #include "base/Subscription.h"
 #include "base/TextException.h"
+#include "carp.h"
 #include "client_db.h"
 #include "comm.h"
 #include "ConfigParser.h"
index f454c4d4f491c9a6a620f4b6f02dfb686902ba55..dd17008920f1dd503684c3346589e5df9b672e21 100644 (file)
@@ -34,6 +34,7 @@
 
 #include "squid.h"
 #include "acl/FilledChecklist.h"
+#include "carp.h"
 #include "client_side.h"
 #include "DnsLookupDetails.h"
 #include "errorpage.h"
index 19edeaa218342f96105cb8b1b1c5c4fb65976acb..0d2422472cd82ef3ca27e3f6293680fd64553e8f 100644 (file)
@@ -469,9 +469,6 @@ SQUIDCEXTERN pid_t ipcCreate(int type,
                              void **hIpc);
 
 
-SQUIDCEXTERN void carpInit(void);
-SQUIDCEXTERN peer *carpSelectParent(HttpRequest *);
-
 /*
  * prototypes for system functions missing from system includes
  */