]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
moved stat.cc prototypes to stat.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 15:08:33 +0000 (17:08 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 15:08:33 +0000 (17:08 +0200)
src/Makefile.am
src/main.cc
src/neighbors.cc
src/protos.h
src/snmp_agent.cc
src/stat.cc
src/stat.h [new file with mode: 0644]
src/tests/testEvent.cc
src/tests/testEventLoop.cc

index 5917c5f6eadce85c5c1245cf9d647f2cdfa44153..5ed8d4c94de93f82722b9b81e8465f662da4691d 100644 (file)
@@ -439,6 +439,7 @@ squid_SOURCES = \
        SquidMath.h \
        SquidMath.cc \
        SquidNew.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -1405,6 +1406,7 @@ tests_testCacheManager_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.h \
        SquidMath.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -1757,6 +1759,7 @@ tests_testEvent_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.cc \
        SquidMath.h \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -1963,6 +1966,7 @@ tests_testEventLoop_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.h \
        SquidMath.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -2165,6 +2169,7 @@ tests_test_http_range_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.h \
        SquidMath.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -2408,6 +2413,7 @@ tests_testHttpRequest_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.h \
        SquidMath.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
@@ -3363,6 +3369,7 @@ tests_testURL_SOURCES = \
        $(SNMP_SOURCE) \
        SquidMath.h \
        SquidMath.cc \
+       stat.h \
        stat.cc \
        StatCounters.h \
        StatCounters.cc \
index ebb80621c278d55ddf1c365a7063d951fcb5f105..ea33381da87a89e8b3c73fe2c82588a46f45c1cb 100644 (file)
@@ -77,6 +77,7 @@
 #include "tools.h"
 #include "SquidDns.h"
 #include "SquidTime.h"
+#include "stat.h"
 #include "StatCounters.h"
 #include "StoreFileSystem.h"
 #include "Store.h"
index 0522537c4bdbc41dc4a943e174f36b89d2a06a05..10a2dc7224fc9e4349e8b149b5ee52add229ec6d 100644 (file)
@@ -53,6 +53,7 @@
 #include "protos.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
+#include "stat.h"
 #include "Store.h"
 #include "URL.h"
 
index 08f4682adae353f15b6b473e6b200d605db56ff6..acc54a5684c6d9024898861e1aae3af5d81a8da5 100644 (file)
@@ -241,17 +241,6 @@ extern void reconfigure(int);
 extern void start_announce(void *unused);
 extern void waisStart(FwdState *);
 
-SQUIDCEXTERN void statInit(void);
-SQUIDCEXTERN void statFreeMemory(void);
-SQUIDCEXTERN double median_svc_get(int, int);
-SQUIDCEXTERN void pconnHistCount(int, int);
-SQUIDCEXTERN int stat5minClientRequests(void);
-SQUIDCEXTERN double stat5minCPUUsage(void);
-SQUIDCEXTERN double statRequestHitRatio(int minutes);
-SQUIDCEXTERN double statRequestHitMemoryRatio(int minutes);
-SQUIDCEXTERN double statRequestHitDiskRatio(int minutes);
-SQUIDCEXTERN double statByteHitRatio(int minutes);
-
 /* mem */
 SQUIDCEXTERN void memClean(void);
 SQUIDCEXTERN void memInitModule(void);
index eeff365aff389beccd3fd0bbfeb36c62df44ddfa..dcf42b3b5f7bba570d3e9f6f25e88968382c1c01 100644 (file)
@@ -42,6 +42,7 @@
 #include "StatHist.h"
 #include "SquidMath.h"
 #include "SquidTime.h"
+#include "stat.h"
 #include "Store.h"
 
 /************************************************************************
index 1ce9875b904b31aa1fb439a768cf38c24a0c38e1..2dd0fe8a1908c2399238f008567b85aeded48bb8 100644 (file)
@@ -59,6 +59,7 @@
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
+#include "stat.h"
 #include "StoreClient.h"
 #include "Store.h"
 #if USE_AUTH
diff --git a/src/stat.h b/src/stat.h
new file mode 100644 (file)
index 0000000..2db0594
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * 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_STAT_H_
+#define SQUID_STAT_H_
+
+extern void statInit(void);
+extern void statFreeMemory(void);
+extern double median_svc_get(int, int);
+extern void pconnHistCount(int, int);
+extern int stat5minClientRequests(void);
+extern double stat5minCPUUsage(void);
+extern double statRequestHitRatio(int minutes);
+extern double statRequestHitMemoryRatio(int minutes);
+extern double statRequestHitDiskRatio(int minutes);
+extern double statByteHitRatio(int minutes);
+
+#endif /* SQUID_STAT_H_ */
index ad0fdb9fb67a0c16d2ad96184a3ab917932bae16..2ab9f2fb4b302f7f18425706f82ae6d270bf8611 100644 (file)
@@ -8,9 +8,9 @@
 #include "event.h"
 #include "Mem.h"
 #include "protos.h"
+#include "stat.h"
 #include "testEvent.h"
 
-
 CPPUNIT_TEST_SUITE_REGISTRATION( testEvent );
 
 /* init legacy static-initialized modules */
index bd4fb74ef1d883ee67ed0335ff6f6aeb08e762dc..693988f7e8f691ac50244b084ccbbd94a757ee69 100644 (file)
@@ -7,6 +7,7 @@
 #include "EventLoop.h"
 #include "Mem.h"
 #include "protos.h"
+#include "stat.h"
 
 CPPUNIT_TEST_SUITE_REGISTRATION( testEventLoop );