]>
Commit | Line | Data |
---|---|---|
4e0938ef | 1 | /* |
bf95c10a | 2 | * Copyright (C) 1996-2022 The Squid Software Foundation and contributors |
4e0938ef AJ |
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 | ||
582c2af2 | 9 | #include "squid.h" |
f206b652 | 10 | #include "RequestFlags.h" |
b1b15292 | 11 | |
7c8931a1 AJ |
12 | #define STUB_API "store.cc" |
13 | #include "tests/STUB.h" | |
14 | ||
e478bcea FC |
15 | const char *storeStatusStr[] = { }; |
16 | const char *pingStatusStr[] = { }; | |
17 | const char *memStatusStr[] = { }; | |
18 | const char *swapStatusStr[] = { }; | |
19 | ||
7c8931a1 | 20 | #include "RemovalPolicy.h" |
8b082ed9 | 21 | RemovalPolicy * createRemovalPolicy(RemovalPolicySettings *) STUB_RETVAL(nullptr) |
f5691f9c | 22 | |
7c8931a1 | 23 | #include "Store.h" |
7c8931a1 | 24 | StoreIoStats store_io_stats; |
8b082ed9 FC |
25 | bool StoreEntry::checkDeferRead(int) const STUB_RETVAL(false) |
26 | const char *StoreEntry::getMD5Text() const STUB_RETVAL(nullptr) | |
7c8931a1 | 27 | StoreEntry::StoreEntry() STUB |
d5d5493b | 28 | StoreEntry::~StoreEntry() STUB |
7c8931a1 AJ |
29 | void StoreEntry::write(StoreIOBuffer) STUB |
30 | bool StoreEntry::isAccepting() const STUB_RETVAL(false) | |
384a7590 | 31 | size_t StoreEntry::bytesWanted(Range<size_t> const, bool) const STUB_RETVAL(0) |
7c8931a1 AJ |
32 | void StoreEntry::complete() STUB |
33 | store_client_t StoreEntry::storeClientType() const STUB_RETVAL(STORE_NON_CLIENT) | |
8b082ed9 FC |
34 | char const *StoreEntry::getSerialisedMetaData(size_t &) const STUB_RETVAL(nullptr) |
35 | void StoreEntry::replaceHttpReply(const HttpReplyPointer &, bool) STUB | |
5b55f1f1 | 36 | bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false) |
8b082ed9 | 37 | void StoreEntry::trimMemory(const bool) STUB |
7c8931a1 | 38 | void StoreEntry::abort() STUB |
8b082ed9 FC |
39 | bool StoreEntry::makePublic(const KeyScope) STUB |
40 | void StoreEntry::makePrivate(const bool) STUB | |
41 | bool StoreEntry::setPublicKey(const KeyScope) STUB | |
4310f8b0 | 42 | void StoreEntry::setPrivateKey(const bool, const bool) STUB |
7c8931a1 | 43 | void StoreEntry::expireNow() STUB |
8b082ed9 | 44 | void StoreEntry::releaseRequest(const bool) STUB |
7c8931a1 | 45 | void StoreEntry::negativeCache() STUB |
4310f8b0 | 46 | bool StoreEntry::cacheNegatively() STUB |
7c8931a1 | 47 | void StoreEntry::swapOut() STUB |
8b082ed9 FC |
48 | void StoreEntry::swapOutFileClose(int) STUB |
49 | const char *StoreEntry::url() const STUB_RETVAL(nullptr) | |
579b60e6 | 50 | bool StoreEntry::checkCachable() STUB_RETVAL(false) |
7c8931a1 | 51 | int StoreEntry::checkNegativeHit() const STUB_RETVAL(0) |
7c8931a1 | 52 | int StoreEntry::validToSend() const STUB_RETVAL(0) |
97754f5a | 53 | bool StoreEntry::memoryCachable() STUB_RETVAL(false) |
76d61119 | 54 | void StoreEntry::createMemObject() STUB |
8b082ed9 | 55 | void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod &) STUB |
76d61119 | 56 | void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod &) STUB |
8b082ed9 | 57 | void StoreEntry::dump(int) const STUB |
7c8931a1 AJ |
58 | void StoreEntry::hashDelete() STUB |
59 | void StoreEntry::hashInsert(const cache_key *) STUB | |
7e9f330d | 60 | void StoreEntry::registerAbortCallback(const AsyncCall::Pointer &) STUB |
7c8931a1 AJ |
61 | void StoreEntry::reset() STUB |
62 | void StoreEntry::setMemStatus(mem_status_t) STUB | |
1a210de4 | 63 | bool StoreEntry::timestampsSet() STUB_RETVAL(false) |
7e9f330d | 64 | void StoreEntry::unregisterAbortCallback(const char *) STUB |
7c8931a1 AJ |
65 | void StoreEntry::destroyMemObject() STUB |
66 | int StoreEntry::checkTooSmall() STUB_RETVAL(0) | |
7c8931a1 | 67 | void StoreEntry::setNoDelay (bool const) STUB |
438b41ba | 68 | bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false) |
8b082ed9 FC |
69 | bool StoreEntry::hasIfMatchEtag(const HttpRequest &) const STUB_RETVAL(false) |
70 | bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &) const STUB_RETVAL(false) | |
2745fea5 | 71 | Store::Disk &StoreEntry::disk() const STUB_RETREF(Store::Disk) |
7c8931a1 | 72 | size_t StoreEntry::inUseCount() STUB_RETVAL(0) |
8b082ed9 | 73 | void *StoreEntry::operator new(size_t) |
0b934349 AJ |
74 | { |
75 | STUB | |
76 | return new StoreEntry(); | |
77 | } | |
8b082ed9 | 78 | void StoreEntry::operator delete(void *) STUB |
7c8931a1 | 79 | //#if USE_SQUID_ESI |
8b082ed9 | 80 | //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(nullptr) |
7c8931a1 | 81 | //#endif |
7c8931a1 AJ |
82 | void StoreEntry::buffer() STUB |
83 | void StoreEntry::flush() STUB | |
93278786 | 84 | int StoreEntry::unlock(const char *) STUB_RETVAL(0) |
93278786 AR |
85 | void StoreEntry::lock(const char *) STUB |
86 | void StoreEntry::touch() STUB | |
8b082ed9 | 87 | void StoreEntry::release(const bool) STUB |
0f33a01d AJ |
88 | void StoreEntry::append(char const *, int) STUB |
89 | void StoreEntry::vappendf(const char *, va_list) STUB | |
8b082ed9 | 90 | void StoreEntry::setCollapsingRequirement(const bool) STUB |
7c8931a1 | 91 | |
8b082ed9 | 92 | void Store::Maintain(void *) STUB |
7c8931a1 | 93 | |
d5d5493b DK |
94 | std::ostream &operator <<(std::ostream &os, const StoreEntry &) |
95 | { | |
96 | STUB | |
97 | return os; | |
98 | } | |
99 | ||
71b673d4 | 100 | size_t storeEntryInUse() STUB_RETVAL(0) |
7c8931a1 | 101 | void storeEntryReplaceObject(StoreEntry *, HttpReply *) STUB |
8b082ed9 FC |
102 | StoreEntry *storeGetPublic(const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr) |
103 | StoreEntry *storeGetPublicByRequest(HttpRequest *, const KeyScope) STUB_RETVAL(nullptr) | |
104 | StoreEntry *storeGetPublicByRequestMethod(HttpRequest *, const HttpRequestMethod&, const KeyScope) STUB_RETVAL(nullptr) | |
105 | StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(nullptr) | |
106 | StoreEntry *storeCreatePureEntry(const char *, const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr) | |
71b673d4 | 107 | void storeConfigure(void) STUB |
71b673d4 FC |
108 | int expiresMoreThan(time_t, time_t) STUB_RETVAL(0) |
109 | void storeAppendPrintf(StoreEntry *, const char *,...) STUB | |
8b082ed9 | 110 | void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB |
71b673d4 FC |
111 | int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0) |
112 | void storeHeapPositionUpdate(StoreEntry *, SwapDir *) STUB | |
8b082ed9 | 113 | void storeSwapFileNumberSet(StoreEntry *, sfileno) STUB |
71b673d4 FC |
114 | void storeFsInit(void) STUB |
115 | void storeFsDone(void) STUB | |
116 | void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB | |
7c8931a1 | 117 | void destroyStoreEntry(void *) STUB |
8b082ed9 | 118 | void storeGetMemSpace(int) STUB |
f53969cc | 119 |