From: Francesco Chemolli Date: Wed, 22 Aug 2012 11:31:33 +0000 (+0200) Subject: Moved whois.cc-related prototypes to new whois.h X-Git-Tag: sourceformat-review-1~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08066558fdb9d160840595217e4a26f5e897c171;p=thirdparty%2Fsquid.git Moved whois.cc-related prototypes to new whois.h --- diff --git a/src/Makefile.am b/src/Makefile.am index ee5c434f1b..7dd4f4f13f 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -518,6 +518,7 @@ squid_SOURCES = \ wccp.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ wordlist.h \ wordlist.cc \ @@ -1470,6 +1471,7 @@ tests_testCacheManager_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ FadingCounter.cc \ $(WIN32_SOURCE) \ @@ -1845,6 +1847,7 @@ tests_testEvent_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ $(WIN32_SOURCE) \ wordlist.h \ @@ -2059,6 +2062,7 @@ tests_testEventLoop_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ $(WIN32_SOURCE) \ wordlist.h \ @@ -2267,6 +2271,7 @@ tests_test_http_range_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ $(WIN32_SOURCE) \ wordlist.h \ @@ -2514,6 +2519,7 @@ tests_testHttpRequest_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ FadingCounter.cc \ $(WIN32_SOURCE) \ @@ -3520,6 +3526,7 @@ tests_testURL_SOURCES = \ urn.cc \ wccp2.h \ wccp2.cc \ + whois.h \ whois.cc \ FadingCounter.cc \ $(WIN32_SOURCE) \ diff --git a/src/forward.cc b/src/forward.cc index 1ae03abf41..f1e5a501e4 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -66,6 +66,7 @@ #include "protos.h" #include "SquidTime.h" #include "Store.h" +#include "whois.h" #if USE_SSL #include "ssl/support.h" #include "ssl/ErrorDetail.h" diff --git a/src/protos.h b/src/protos.h index e2518d0043..b4be86715e 100644 --- a/src/protos.h +++ b/src/protos.h @@ -59,17 +59,6 @@ class HttpRequest; class HttpReply; - - -/** - \defgroup ServerProtocolWhoisAPI Server-Side WHOIS API - \ingroup ServerProtocol - */ - -/// \ingroup ServerProtocolWhoisAPI -SQUIDCEXTERN void whoisStart(FwdState *); - - /* http.c */ /* for http_hdr_type field */ SQUIDCEXTERN int httpCachable(const HttpRequestMethod&); diff --git a/src/whois.h b/src/whois.h new file mode 100644 index 0000000000..6859e02151 --- /dev/null +++ b/src/whois.h @@ -0,0 +1,46 @@ +/* + * DEBUG: section 75 WHOIS protocol + * AUTHOR: Duane Wessels, Kostas Anagnostakis + * + * 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_WHOIS_H_ +#define SQUID_WHOIS_H_ + +/** + * \defgroup ServerProtocolWhoisAPI Server-Side WHOIS API + * \ingroup ServerProtocol + */ + +/// \ingroup ServerProtocolWhoisAPI +extern void whoisStart(FwdState *); + + +#endif /* SQUID_WHOIS_H_ */