]> git.ipfire.org Git - thirdparty/squid.git/blame - src/store/forward.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / store / forward.h
CommitLineData
2745fea5 1/*
4ac4a490 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
2745fea5
AR
3 *
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.
7 */
8
9#ifndef SQUID_STORE_FORWARD_H
10#define SQUID_STORE_FORWARD_H
11
12typedef int32_t sfileno;
13typedef signed int sdirno;
14
15/// maximum number of entries per cache_dir
16enum { SwapFilenMax = 0xFFFFFF }; // keep in sync with StoreEntry::swap_filen
17
18/// Store key.
19typedef unsigned char cache_key;
20
21class StoreSearch;
22class StoreClient;
23class StoreEntry;
24class MemStore;
25class Transients;
26
27namespace Store
28{
7d84d4ca
SM
29class Storage;
30class Controller;
31class Controlled;
32class Disks;
33class Disk;
34class DiskConfig;
35
36typedef ::StoreEntry Entry;
37typedef ::MemStore Memory;
38typedef ::Transients Transients;
2745fea5
AR
39} // namespace Store
40
41// TODO: Remove these once all code has been transitioned to Store namespace.
42typedef Store::Controller StoreController;
43typedef Store::Disks StoreHashIndex;
44typedef Store::Disk SwapDir;
45template <class C> class RefCount;
46typedef RefCount<Store::Disk> SwapDirPointer;
47
48#endif /* SQUID_STORE_FORWARD_H */
49