]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved gopher prototypes from protos.h to gopher.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 17 Aug 2012 11:36:25 +0000 (13:36 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 17 Aug 2012 11:36:25 +0000 (13:36 +0200)
src/HttpRequest.cc
src/client_side_request.cc
src/forward.cc
src/gopher.h [new file with mode: 0644]
src/protos.h

index 38a67382c7a6b6d8023c0b8b8dd9fb28f682012a..5d656606aaa677998a5c246482124dcb5e90b82d 100644 (file)
@@ -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"
index ffbc2e48f467ae175bd27b31e9c4d2cad69a4863..beea2b2ccf040a268df775139f1ccaa2ed25ef0b 100644 (file)
@@ -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"
index fd264285ceb9e5e542810c566db9bae693e6dd7a..96b8f5938f0e5753de3065bff39b50d8687190a6 100644 (file)
@@ -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 (file)
index 0000000..7d8dd1b
--- /dev/null
@@ -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_ */
index 2512eb57c5afcc04f523b467c12d90df01cde376..f000720c37a1240da1b161765f2d31ba6c93eb9c 100644 (file)
@@ -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 *);
 
 
 /**