]> git.ipfire.org Git - thirdparty/squid.git/blame - src/store_key_md5.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / store_key_md5.h
CommitLineData
fb548aaf 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
fb548aaf 3 *
bbc27441
AJ
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
fb548aaf
FC
7 */
8
bbc27441
AJ
9/* DEBUG: section 20 Storage Manager MD5 Cache Keys */
10
fb548aaf
FC
11#ifndef SQUID_STORE_KEY_MD5_H_
12#define SQUID_STORE_KEY_MD5_H_
13
14#include "hash.h"
c43405e7 15#include "http/forward.h"
2745fea5 16#include "store/forward.h"
fb548aaf 17
1a210de4
EB
18typedef enum {
19 ksDefault = 0,
20 ksRevalidation
21} KeyScope;
22
8a648e8d
FC
23cache_key *storeKeyDup(const cache_key *);
24cache_key *storeKeyCopy(cache_key *, const cache_key *);
25void storeKeyFree(const cache_key *);
26const cache_key *storeKeyScan(const char *);
27const char *storeKeyText(const cache_key *);
1a210de4
EB
28const cache_key *storeKeyPublic(const char *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault);
29const cache_key *storeKeyPublicByRequest(HttpRequest *, const KeyScope keyScope = ksDefault);
30const cache_key *storeKeyPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope keyScope = ksDefault);
0a132302 31const cache_key *storeKeyPrivate();
8a648e8d
FC
32int storeKeyHashBuckets(int);
33int storeKeyNull(const cache_key *);
34void storeKeyInit(void);
fb548aaf
FC
35
36extern HASHHASH storeKeyHashHash;
37extern HASHCMP storeKeyHashCmp;
38
39#endif /* SQUID_STORE_KEY_MD5_H_ */
f53969cc 40