forward.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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// bug 4610 see comments 22-38
13// Nasty hack, but it turns out C++ allows int32_t to be
14// unsigned when used as a bitmask (as sfile* are later)
15#if INT_MAX == INT32_MAX
16typedef signed int signed_int32_t;
17#elif SHORT_MAX == INT32_MAX
18typedef signed short int signed_int32_t;
19#else
20#error I do not know how to typedef a signed 32bit integer.
21#endif
23typedef signed int sdirno;
24
26enum { SwapFilenMax = 0xFFFFFF }; // keep in sync with StoreEntry::swap_filen
27
29typedef unsigned char cache_key;
30
31class StoreSearch;
32class StoreClient;
33class StoreEntry;
34class MemStore;
35class Transients;
36
37namespace Store
38{
41
42class Storage;
43class Controller;
44class Controlled;
45class Disks;
46class Disk;
47class DiskConfig;
48class EntryGuard;
49class ParsingBuffer;
50
54} // namespace Store
55
56// TODO: Remove these once all code has been transitioned to Store namespace.
60template <class C> class RefCount;
62
63#endif /* SQUID_STORE_FORWARD_H */
64
a storeGetPublic*() caller
Definition: StoreClient.h:40
manages a single cache_dir
Definition: Disk.h:22
summary view of all disk caches (cache_dirs) combined
Definition: Disks.h:19
IoStatus
cache "I/O" direction and status
Definition: forward.h:40
@ ioReading
Definition: forward.h:40
@ ioWriting
Definition: forward.h:40
@ ioUndecided
Definition: forward.h:40
@ ioDone
Definition: forward.h:40
::StoreEntry Entry
Definition: forward.h:51
::MemStore Memory
Definition: forward.h:52
::Transients Transients
Definition: forward.h:53
Store::Controller StoreController
Definition: forward.h:57
@ SwapFilenMax
Definition: forward.h:26
signed int signed_int32_t
Definition: forward.h:16
signed int sdirno
Definition: forward.h:23
Store::Disk SwapDir
Definition: forward.h:59
RefCount< Store::Disk > SwapDirPointer
Definition: forward.h:61
Store::Disks StoreHashIndex
Definition: forward.h:58
unsigned char cache_key
Store key.
Definition: forward.h:29
signed_int32_t sfileno
Definition: forward.h:22

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors