]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add ip/forward.h for forward declaration of Ip:: classes (Ip::Address)
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 2 May 2010 18:52:45 +0000 (20:52 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sun, 2 May 2010 18:52:45 +0000 (20:52 +0200)
src/client_side_reply.h
src/htcp.h
src/ident/Ident.h
src/ip/forward.h [new file with mode: 0644]
src/pconn.h

index 760c86255ea200c5de31c26cd9abef33c47f8fa5..60ca4d84945e738d730fc61d1bd652de2b6a2859 100644 (file)
@@ -38,7 +38,7 @@
 #include "client_side_request.h"
 
 class ErrorState;
-class Ip::Address;
+#include "ip/forward.h"
 
 /* XXX make static method */
 
index f8856a563c641efe0987a412b1ef642f964b02ab..1e2e70ce4e943f80a5bc8c766e8a0c96614e5f6e 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "HttpHeader.h"
 
-class Ip::Address;
+#include "ip/forward.h"
 
 /// \ingroup ServerProtocolHTCP
 class HtcpReplyData
index 697908af5c9a33113efe35f8a4e151326107c106..7253a4736d262e4d95fbf3d34e5e07ccc5c8abaa 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "cbdata.h"
 
-class Ip::Address;
+#include "ip/forward.h"
 
 namespace Ident
 {
diff --git a/src/ip/forward.h b/src/ip/forward.h
new file mode 100644 (file)
index 0000000..d771e14
--- /dev/null
@@ -0,0 +1,44 @@
+/*
+ * DEBUG: section 14    IP Storage and Handling
+ * AUTHOR: Henrik Nordstrom
+ *
+ * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
+ * ----------------------------------------------------------
+ *
+ *  Squid is the result of efforts by numerous individuals from the
+ *  Internet community.  Development is led by Duane Wessels of the
+ *  National Laboratory for Applied Network Research and funded by the
+ *  National Science Foundation.  Squid is Copyrighted (C) 1998 by
+ *  the Regents of the University of California.  Please see the
+ *  COPYRIGHT file for full details.  Squid incorporates software
+ *  developed and/or copyrighted by other sources.  Please see the
+ *  CREDITS file for full details.
+ *
+ *  This wrapper code is copyright (C) 2010 by Henrik Nordstrom
+ *  It is published and Lisenced as an extension of squid under the
+ *  same conditions as the main squid application.
+ *
+ *  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_IP_FORWARD_H
+#define _SQUID_IP_FORWARD_H
+
+// Forward-declare Ip classes needed by reference in other parts of the code
+// for passing objects around without actually touching them
+namespace Ip {
+class Address;
+}
+#endif /* _SQUID_IP_FORWARD_H */
index c540e76ae35ed45a6408ad94a52456832ac51dc1..34e979a08467c97eff773a58326654c7b63f1888 100644 (file)
@@ -57,7 +57,8 @@ private:
 };
 
 
-class Ip::Address;
+#include "ip/forward.h"
+
 class StoreEntry;
 class IdleConnLimit;