]>
Commit | Line | Data |
---|---|---|
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 | ||
12 | typedef int32_t sfileno; | |
13 | typedef signed int sdirno; | |
14 | ||
15 | /// maximum number of entries per cache_dir | |
16 | enum { SwapFilenMax = 0xFFFFFF }; // keep in sync with StoreEntry::swap_filen | |
17 | ||
18 | /// Store key. | |
19 | typedef unsigned char cache_key; | |
20 | ||
21 | class StoreSearch; | |
22 | class StoreClient; | |
23 | class StoreEntry; | |
24 | class MemStore; | |
25 | class Transients; | |
26 | ||
27 | namespace Store | |
28 | { | |
7d84d4ca SM |
29 | class Storage; |
30 | class Controller; | |
31 | class Controlled; | |
32 | class Disks; | |
33 | class Disk; | |
34 | class DiskConfig; | |
35 | ||
36 | typedef ::StoreEntry Entry; | |
37 | typedef ::MemStore Memory; | |
38 | typedef ::Transients Transients; | |
2745fea5 AR |
39 | } // namespace Store |
40 | ||
41 | // TODO: Remove these once all code has been transitioned to Store namespace. | |
42 | typedef Store::Controller StoreController; | |
43 | typedef Store::Disks StoreHashIndex; | |
44 | typedef Store::Disk SwapDir; | |
45 | template <class C> class RefCount; | |
46 | typedef RefCount<Store::Disk> SwapDirPointer; | |
47 | ||
48 | #endif /* SQUID_STORE_FORWARD_H */ | |
49 |