]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Moved store_key_md5.cc prototypes to store_key_md5.h
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 17:07:54 +0000 (19:07 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 20 Aug 2012 17:07:54 +0000 (19:07 +0200)
18 files changed:
src/CacheDigest.cc
src/Makefile.am
src/fs/coss/store_dir_coss.cc
src/fs/ufs/RebuildState.cc
src/fs/ufs/UFSSwapDir.cc
src/htcp.cc
src/icp_v2.cc
src/ipc/StoreMap.cc
src/neighbors.cc
src/peer_digest.cc
src/protos.h
src/store.cc
src/store_dir.cc
src/store_key_md5.cc
src/store_key_md5.h [new file with mode: 0644]
src/store_rebuild.cc
src/test_cache_digest.cc
src/ufsdump.cc

index 5059ccffb03d2b540ed0dd26df00e65a383c84b8..7f401b01bed1292d7ace47984f855f6f1fb8c787 100644 (file)
@@ -39,6 +39,7 @@
 #include "protos.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "store_key_md5.h"
 
 #if USE_CACHE_DIGESTS
 
index 36740cd918fa3e84b8d8fc562f8996ac27bbb6a1..ae82d0d9102155973f735d9e58ef7c48ce7986f6 100644 (file)
@@ -462,6 +462,7 @@ squid_SOURCES = \
        StoreClient.h \
        store_digest.cc \
        store_dir.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
@@ -690,6 +691,7 @@ ufsdump_SOURCES = \
        MemBuf.cci \
        MemBuf.h \
        Parsing.h \
+       store_key_md5.h \
        store_key_md5.cc \
        StoreMeta.cc \
        StoreMetaMD5.cc \
@@ -1203,6 +1205,7 @@ tests_testACLMaxUserIP_SOURCES= \
        StoreMetaURL.cc \
        StoreMetaVary.cc \
        StoreSwapLogData.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        swap_log_op.cc \
        swap_log_op.h \
@@ -1423,6 +1426,7 @@ tests_testCacheManager_SOURCES = \
        store_digest.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
@@ -1562,6 +1566,7 @@ tests_testDiskIO_SOURCES = \
        StoreSwapLogData.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_swapout.cc \
        store_swapmeta.cc \
@@ -1778,6 +1783,7 @@ tests_testEvent_SOURCES = \
        store_digest.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
@@ -1987,6 +1993,7 @@ tests_testEventLoop_SOURCES = \
        store_digest.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
@@ -2190,6 +2197,7 @@ tests_test_http_range_SOURCES = \
        store_client.cc \
        store_digest.cc \
        store_dir.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_io.cc \
        store_log.cc \
@@ -2437,6 +2445,7 @@ tests_testHttpRequest_SOURCES = \
        store_digest.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
@@ -2571,6 +2580,7 @@ tests_testStore_SOURCES= \
        StoreMetaURL.cc \
        StoreMetaVary.cc \
        StoreSwapLogData.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        String.cc \
        SwapDir.cc \
@@ -2771,6 +2781,7 @@ tests_testUfs_SOURCES = \
        store_dir.cc \
        store.cc \
        HttpRequestMethod.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        Parsing.cc \
        ConfigOption.cc \
@@ -2921,6 +2932,7 @@ tests_testRock_SOURCES = \
        StoreSwapLogData.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_swapmeta.cc \
        store_swapout.cc \
@@ -3053,6 +3065,7 @@ tests_testCoss_SOURCES = \
        store_dir.cc \
        store.cc \
        HttpRequestMethod.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        Parsing.cc \
        ConfigOption.cc \
@@ -3193,6 +3206,7 @@ tests_testNull_SOURCES = \
        store_dir.cc \
        store.cc \
        HttpRequestMethod.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        Parsing.cc \
        ConfigOption.cc \
@@ -3400,6 +3414,7 @@ tests_testURL_SOURCES = \
        store_digest.cc \
        store_dir.cc \
        store_io.cc \
+       store_key_md5.h \
        store_key_md5.cc \
        store_log.cc \
        store_rebuild.cc \
index 5a83b4449f92ae67e7e20180491df35e246715c6..36ad8a18fcf70a535bcb7cde8a39a3382c7744da 100644 (file)
@@ -47,6 +47,7 @@
 #include "ConfigOption.h"
 #include "StoreFScoss.h"
 #include "Parsing.h"
+#include "store_key_md5.h"
 #include "swap_log_op.h"
 #include "SquidMath.h"
 
index 976b276ad8e3f38ccaba5c672c4e98bdc07c2fa7..f0c5767e2696c2d8442c4b776fa78b7ebf072606 100644 (file)
@@ -35,6 +35,7 @@
 #include "protos.h"
 #include "RebuildState.h"
 #include "SquidTime.h"
+#include "store_key_md5.h"
 #include "StoreSwapLogData.h"
 #include "UFSSwapLogParser.h"
 
index a1c2fff98d92740de9b8044466452cee62864168..84d6629f733c27fd39909ed7539407643b61ee3c 100644 (file)
@@ -42,6 +42,7 @@
 #include "RebuildState.h"
 #include "SquidMath.h"
 #include "DiskIO/DiskIOStrategy.h"
+#include "store_key_md5.h"
 #include "StoreSearchUFS.h"
 #include "StoreSwapLogData.h"
 #include "SquidTime.h"
index 97752167739c7a54d353e41daa90e296912fc081..3c7d8ffc9f7f8d9f192f70b7ac9d693b6d46aa32 100644 (file)
@@ -54,6 +54,7 @@
 #include "refresh.h"
 #include "SquidTime.h"
 #include "StatCounters.h"
+#include "store_key_md5.h"
 #include "Store.h"
 #include "StoreClient.h"
 #include "URL.h"
index 9ffb8ff2c03c1dd169fcea982db1924023dda113..07feaf38773fede41b0b90fdd8bbc41ec26fdd2b 100644 (file)
@@ -58,6 +58,7 @@
 #include "SquidTime.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "SwapDir.h"
 #include "tools.h"
 #include "wordlist.h"
index 22185ed0f9cea200b1bc41c2fb4c8f04e89987a8..8f5c116e7e0ac25096c20263d9e12724679b682f 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "protos.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "ipc/StoreMap.h"
 
 Ipc::StoreMap::Owner *
index 10a2dc7224fc9e4349e8b149b5ee52add229ec6d..c3b64b784acd79ca48d9aebd159d0a5eb295cf04 100644 (file)
@@ -55,6 +55,7 @@
 #include "SquidTime.h"
 #include "stat.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "URL.h"
 
 /* count mcast group peers every 15 minutes */
index 74238503c99e577cf16fde3eb4c64850086d475a..0214114a8fee8452a84e06fcc0d3eb3375a674de 100644 (file)
@@ -47,6 +47,7 @@
 #include "protos.h"
 #include "SquidTime.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "StoreClient.h"
 #include "tools.h"
 
index 9f5691d05b87d1fc722266ee47cbda928f3e1298..d2306504028ed8958196d446b993ae69bffbb82f 100644 (file)
@@ -255,24 +255,6 @@ extern void storeLogClose(void);
 extern void storeLogOpen(void);
 
 
-/*
- * store_key_*.c
- */
-SQUIDCEXTERN cache_key *storeKeyDup(const cache_key *);
-SQUIDCEXTERN cache_key *storeKeyCopy(cache_key *, const cache_key *);
-SQUIDCEXTERN void storeKeyFree(const cache_key *);
-SQUIDCEXTERN const cache_key *storeKeyScan(const char *);
-SQUIDCEXTERN const char *storeKeyText(const cache_key *);
-SQUIDCEXTERN const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&);
-SQUIDCEXTERN const cache_key *storeKeyPublicByRequest(HttpRequest *);
-SQUIDCEXTERN const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&);
-SQUIDCEXTERN const cache_key *storeKeyPrivate(const char *, const HttpRequestMethod&, int);
-SQUIDCEXTERN int storeKeyHashBuckets(int);
-SQUIDCEXTERN int storeKeyNull(const cache_key *);
-SQUIDCEXTERN void storeKeyInit(void);
-SQUIDCEXTERN HASHHASH storeKeyHashHash;
-SQUIDCEXTERN HASHCMP storeKeyHashCmp;
-
 /*
  * store_digest.c
  */
index 77d4e3f2c6b9e5c27c6e583f31476cf309c73c07..5ee1828d94d2757bff063cd3dc43a03e374325c9 100644 (file)
 #include "stmem.h"
 #include "StoreClient.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "StoreIOState.h"
 #include "StoreMeta.h"
+#include "store_key_md5.h"
 #include "SwapDir.h"
 #include "swap_log_op.h"
 #if USE_DELAY_POOLS
index 46919af47e23ce0d7f611467153c58e5b4c43402..11e3b86e4e541cbe0d1f74eebd01a15fdd4df3d3 100644 (file)
@@ -43,6 +43,7 @@
 #include "SquidMath.h"
 #include "SquidTime.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "StoreHashIndex.h"
 #include "SwapDir.h"
 #include "swap_log_op.h"
index ac62eb89d87f489df38f2a49c450a593de0863f7..2bd7a9d534d25807ed42acdea63cf75c9e5d5832 100644 (file)
@@ -37,7 +37,7 @@
 #include "HttpRequest.h"
 #include "md5.h"
 #include "Mem.h"
-#include "protos.h"
+#include "store_key_md5.h"
 #include "URL.h"
 
 static cache_key null_key[SQUID_MD5_DIGEST_LENGTH];
diff --git a/src/store_key_md5.h b/src/store_key_md5.h
new file mode 100644 (file)
index 0000000..54b35d4
--- /dev/null
@@ -0,0 +1,58 @@
+/*
+ * DEBUG: section 20    Storage Manager MD5 Cache Keys
+ * AUTHOR: Duane Wessels
+ *
+ * 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_STORE_KEY_MD5_H_
+#define SQUID_STORE_KEY_MD5_H_
+
+#include "hash.h"
+#include "typedefs.h"
+
+class HttpRequestMethod;
+class HttpRequest;
+
+extern cache_key *storeKeyDup(const cache_key *);
+extern cache_key *storeKeyCopy(cache_key *, const cache_key *);
+extern void storeKeyFree(const cache_key *);
+extern const cache_key *storeKeyScan(const char *);
+extern const char *storeKeyText(const cache_key *);
+extern const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&);
+extern const cache_key *storeKeyPublicByRequest(HttpRequest *);
+extern const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&);
+extern const cache_key *storeKeyPrivate(const char *, const HttpRequestMethod&, int);
+extern int storeKeyHashBuckets(int);
+extern int storeKeyNull(const cache_key *);
+extern void storeKeyInit(void);
+
+extern HASHHASH storeKeyHashHash;
+extern HASHCMP storeKeyHashCmp;
+
+#endif /* SQUID_STORE_KEY_MD5_H_ */
index b85269d87972f6c6439ba2f280daf91ea278738b..f7d9bdd9fbbe77b674eedd76567626efd8776ba2 100644 (file)
@@ -40,6 +40,7 @@
 #include "protos.h"
 #include "StatCounters.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "SwapDir.h"
 #include "StoreSearch.h"
 #include "SquidTime.h"
index 31109e3dc4e217a9ca4a74bc599766c20cfadb63..7fcdf5914258600fb52caa3598e785c433e52dc7 100644 (file)
@@ -38,6 +38,7 @@
 
 #include "squid.h"
 #include "CacheDigest.h"
+#include "store_key_md5.h"
 
 #if HAVE_ERRNO_H
 #include <errno.h>
index 46c416e3a89361e7cf29d70877509ddee9e2bdb4..7c5da5de898f05e557045b84e57747c352cd608f 100644 (file)
@@ -36,6 +36,7 @@
 #include "StoreMeta.h"
 #include "StoreMetaUnpacker.h"
 #include "Store.h"
+#include "store_key_md5.h"
 #include "Generic.h"
 #include "mgr/Registration.h"