From: Francesco Chemolli Date: Fri, 17 Aug 2012 11:36:25 +0000 (+0200) Subject: Moved gopher prototypes from protos.h to gopher.h X-Git-Tag: sourceformat-review-1~104 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d05c079c09cb4eebcd6895cec2d9fa1495df483a;p=thirdparty%2Fsquid.git Moved gopher prototypes from protos.h to gopher.h --- diff --git a/src/HttpRequest.cc b/src/HttpRequest.cc index 38a67382c7..5d656606aa 100644 --- a/src/HttpRequest.cc +++ b/src/HttpRequest.cc @@ -40,6 +40,7 @@ #include "client_side.h" #include "DnsLookupDetails.h" #include "err_detail_type.h" +#include "gopher.h" #include "HttpHdrCc.h" #include "HttpHeaderRange.h" #include "HttpRequest.h" diff --git a/src/client_side_request.cc b/src/client_side_request.cc index ffbc2e48f4..beea2b2ccf 100644 --- a/src/client_side_request.cc +++ b/src/client_side_request.cc @@ -58,6 +58,7 @@ #include "errorpage.h" #include "fde.h" #include "format/Token.h" +#include "gopher.h" #include "HttpHdrCc.h" #include "HttpReply.h" #include "HttpRequest.h" diff --git a/src/forward.cc b/src/forward.cc index fd264285ce..96b8f5938f 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -47,6 +47,7 @@ #include "fde.h" #include "forward.h" #include "globals.h" +#include "gopher.h" #include "hier_code.h" #include "HttpReply.h" #include "HttpRequest.h" diff --git a/src/gopher.h b/src/gopher.h new file mode 100644 index 0000000000..7d8dd1b3bd --- /dev/null +++ b/src/gopher.h @@ -0,0 +1,52 @@ +/* + * 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_GOPHER_H_ +#define SQUID_GOPHER_H_ + +class FwdState; +class HttpRequest; + +/** + \defgroup ServerProtocolGopherAPI Server-Side Gopher API + \ingroup ServerProtocol + */ + +/// \ingroup ServerProtocolGopherAPI +extern void gopherStart(FwdState *); + +/// \ingroup ServerProtocolGopherAPI +extern int gopherCachable(const HttpRequest *); + + +#endif /* SQUID_GOPHER_H_ */ diff --git a/src/protos.h b/src/protos.h index 2512eb57c5..f000720c37 100644 --- a/src/protos.h +++ b/src/protos.h @@ -136,16 +136,6 @@ class HttpReply; SQUIDCEXTERN const char *ftpUrlWith2f(HttpRequest *); -/** - \defgroup ServerProtocolGopherAPI Server-Side Gopher API - \ingroup ServerProtocol - */ - -/// \ingroup ServerProtocolGopherAPI -SQUIDCEXTERN void gopherStart(FwdState *); - -/// \ingroup ServerProtocolGopherAPI -SQUIDCEXTERN int gopherCachable(const HttpRequest *); /**