]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceLayout: Add anyp/forward.h predefinition
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 13 Jun 2013 11:08:58 +0000 (05:08 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 13 Jun 2013 11:08:58 +0000 (05:08 -0600)
Provide the AnyP:: namespace predefines to reduce dependencies.

src/anyp/Makefile.am
src/anyp/PortCfg.h
src/anyp/forward.h [new file with mode: 0644]

index 680f09affb805df1605e0ccebd4f4e9dcbfe412c..2724a482ceae1b9398df14a06e7e44743f7ad2f7 100644 (file)
@@ -4,6 +4,7 @@ include $(top_srcdir)/src/TestHeaders.am
 noinst_LTLIBRARIES = libanyp.la
 
 libanyp_la_SOURCES = \
+       forward.h \
        PortCfg.cc \
        PortCfg.h \
        ProtocolType.cc \
index 0898e45cdda6ac7c5472f721d6dfae0c01420c77..9553caeeb2ebb0b84a0d7908b8b877145d1cdf2e 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef SQUID_ANYP_PORTCFG_H
 #define SQUID_ANYP_PORTCFG_H
 
+#include "anyp/forward.h"
 #include "anyp/TrafficMode.h"
-#include "cbdata.h"
 #include "comm/Connection.h"
 
 #if USE_SSL
diff --git a/src/anyp/forward.h b/src/anyp/forward.h
new file mode 100644 (file)
index 0000000..b01b4c0
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _SQUID_SRC_ANYP_FORWARD_H
+#define _SQUID_SRC_ANYP_FORWARD_H
+
+#include "base/CbcPointer.h"
+
+namespace AnyP
+{
+
+class PortCfg;
+typedef CbcPointer<PortCfg> PortCfgPointer;
+
+} // namespace AnyP
+
+#endif /* _SQUID_SRC_ANYP_FORWARD_H */
+