]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved log/access_log.cc prototypes to log/access_log.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 21 Aug 2012 06:17:36 +0000 (08:17 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 21 Aug 2012 06:17:36 +0000 (08:17 +0200)
src/Makefile.am
src/client_db.cc
src/client_side.cc
src/client_side_reply.cc
src/client_side_request.cc
src/esi/Include.cc
src/http.cc
src/log/Makefile.am
src/log/access_log.cc
src/log/access_log.h [new file with mode: 0644]
src/protos.h

index ae82d0d9102155973f735d9e58ef7c48ce7986f6..3df15313fbacfe87555e971f7f1f849137874680 100644 (file)
@@ -1110,6 +1110,7 @@ tests_testHttpReply_SOURCES=\
        SquidString.h \
        SquidTime.h \
        String.cc \
+       log/access_log.h \
        tests/stub_access_log.cc \
        tests/stub_cache_cf.cc \
        tests/stub_cache_manager.cc \
@@ -1211,6 +1212,7 @@ tests_testACLMaxUserIP_SOURCES= \
        swap_log_op.h \
        SwapDir.cc \
        SwapDir.h \
+       log/access_log.h \
        tests/stub_access_log.cc \
        tests/stub_cache_cf.cc \
        tests/stub_debug.cc \
@@ -1573,6 +1575,7 @@ tests_testDiskIO_SOURCES = \
        store.cc \
        String.cc \
        SwapDir.cc \
+       log/access_log.h \
        tests/stub_access_log.cc \
        tests/stub_acl.cc \
        tests/stub_cache_cf.cc \
@@ -2585,6 +2588,7 @@ tests_testStore_SOURCES= \
        String.cc \
        SwapDir.cc \
        tests/CapturingStoreEntry.h \
+       log/access_log.h \
        tests/stub_access_log.cc \
        tests/stub_acl.cc \
        tests/stub_cache_cf.cc \
@@ -2820,6 +2824,7 @@ tests_testUfs_SOURCES = \
        ETag.cc \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
+       log/access_log.h \
        tests/stub_access_log.cc \
        refresh.h \
        refresh.cc \
@@ -2943,6 +2948,7 @@ tests_testRock_SOURCES = \
        tests/testRock.h \
        tests/testStoreSupport.cc \
        tests/testStoreSupport.h \
+       log/access_log.h \
        tests/stub_access_log.cc \
        tests/stub_cache_cf.cc \
        tests/stub_cache_manager.cc \
@@ -3101,6 +3107,7 @@ tests_testCoss_SOURCES = \
        tests/stub_StatHist.cc \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
+       log/access_log.h \
        tests/stub_access_log.cc \
        refresh.h \
        refresh.cc \
@@ -3244,6 +3251,7 @@ tests_testNull_SOURCES = \
        tests/stub_StatHist.cc \
        tests/stub_errorpage.cc \
        tests/stub_HttpRequest.cc \
+       log/access_log.h \
        tests/stub_access_log.cc \
        refresh.h \
        refresh.cc \
index 38d76cb1224e89b819eada0b421140df1556ce01..d3eb6e6ab43523effba53752afce2d30f4c46314 100644 (file)
@@ -39,6 +39,7 @@
 #include "ClientInfo.h"
 #include "fqdncache.h"
 #include "ip/Address.h"
+#include "log/access_log.h"
 #include "Mem.h"
 #include "mgr/Registration.h"
 #include "protos.h"
index 5c358896f4592d0e0d49f52eef9b801336bf430e..a607cb357c535ef1082a57559effda35191697c3 100644 (file)
 #include "internal.h"
 #include "ipc/FdNotes.h"
 #include "ipc/StartListening.h"
+#include "log/access_log.h"
 #include "Mem.h"
 #include "MemBuf.h"
 #include "MemObject.h"
index 68faaae426ce8c5128d25bee4d8a41d17a5bf33d..75eff7c1ba938e306fa73bd0969d17b90696e364 100644 (file)
@@ -49,6 +49,7 @@
 #include "HttpRequest.h"
 #include "ip/QosConfig.h"
 #include "ipcache.h"
+#include "log/access_log.h"
 #include "MemObject.h"
 #include "neighbors.h"
 #include "protos.h"
index b80142a503009e2147402adc495c51142e2b08b0..8f8cff7dac024766620e8cb41cd3a904d7856004 100644 (file)
@@ -64,6 +64,7 @@
 #include "HttpRequest.h"
 #include "ipcache.h"
 #include "ip/QosConfig.h"
+#include "log/access_log.h"
 #include "MemObject.h"
 #include "profiler/Profiler.h"
 #include "protos.h"
index 523b5420bd78475f143669766a84eb85aad95e57..1b65dc049381e408db151a0c2792a1d7f6bef7bb 100644 (file)
@@ -45,6 +45,7 @@
 #include "esi/Include.h"
 #include "esi/VarState.h"
 #include "HttpReply.h"
+#include "log/access_log.h"
 #include "protos.h"
 
 CBDATA_CLASS_INIT (ESIStreamContext);
index c3974b2205c8e3f15d2cdc83b9df2c87a577c70a..a679c71c06a5ef146f0b51a3691b51520c2729a1 100644 (file)
@@ -57,6 +57,7 @@
 #include "HttpHdrScTarget.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "log/access_log.h"
 #include "MemBuf.h"
 #include "MemObject.h"
 #include "neighbors.h"
index 48a083b603704ab2a29f5fafcafd69b664b6f146..5018962d7484c445e993645244e9b502be4dd87f 100644 (file)
@@ -4,6 +4,7 @@ include $(top_srcdir)/src/TestHeaders.am
 noinst_LTLIBRARIES = liblog.la
 
 liblog_la_SOURCES = \
+       access_log.h \
        access_log.cc \
        Config.cc \
        Config.h \
index b30d9eefd4cc02710a696deba80af6a04ee2f119..8956988e404aa2b078a6269d1011c4b92bd8ce86 100644 (file)
@@ -52,6 +52,7 @@
 #include "hier_code.h"
 #include "HttpReply.h"
 #include "HttpRequest.h"
+#include "log/access_log.h"
 #include "log/Config.h"
 #include "log/File.h"
 #include "log/Formats.h"
diff --git a/src/log/access_log.h b/src/log/access_log.h
new file mode 100644 (file)
index 0000000..1c39737
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * access_log.h
+ *
+ * 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_LOG_ACCESS_LOG_H_
+#define SQUID_LOG_ACCESS_LOG_H_
+
+
+extern int logTypeIsATcpHit(log_type);
+extern void fvdbCountVia(const char *key);
+extern void fvdbCountForw(const char *key);
+
+#if HEADERS_LOG
+class HttpRequestMethod;
+extern void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
+#endif
+
+
+#endif /* SQUID_LOG_ACCESS_LOG_H_ */
index d2306504028ed8958196d446b993ae69bffbb82f..287ebe0785ab7150f5f3417af83ea783c730f7b1 100644 (file)
@@ -52,15 +52,6 @@ class ClientInfo;
 #endif
 
 
-#if USE_FORW_VIA_DB
-extern void fvdbCountVia(const char *key);
-extern void fvdbCountForw(const char *key);
-#endif
-#if HEADERS_LOG
-SQUIDCEXTERN void headersLog(int cs, int pq, const HttpRequestMethod& m, void *data);
-#endif
-extern int logTypeIsATcpHit(log_type);
-
 /*
  * cache_cf.c
  */