]>
Commit | Line | Data |
---|---|---|
4e0938ef | 1 | /* |
77b1029d | 2 | * Copyright (C) 1996-2020 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 AJ |
20 | #include "RemovalPolicy.h" |
21 | RemovalPolicy * createRemovalPolicy(RemovalPolicySettings * settings) STUB_RETVAL(NULL) | |
f5691f9c | 22 | |
7c8931a1 | 23 | #include "Store.h" |
7c8931a1 AJ |
24 | StoreIoStats store_io_stats; |
25 | bool StoreEntry::checkDeferRead(int fd) const STUB_RETVAL(false) | |
26 | const char *StoreEntry::getMD5Text() const STUB_RETVAL(NULL) | |
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) | |
66d51f4f AR |
34 | char const *StoreEntry::getSerialisedMetaData(size_t &length) const STUB_RETVAL(NULL) |
35 | void StoreEntry::replaceHttpReply(const HttpReplyPointer &, bool andStartWriting) STUB | |
5b55f1f1 CT |
36 | bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false) |
37 | void StoreEntry::trimMemory(const bool preserveSwappable) STUB | |
7c8931a1 | 38 | void StoreEntry::abort() STUB |
4310f8b0 | 39 | bool StoreEntry::makePublic(const KeyScope scope) STUB |
39fe14b2 | 40 | void StoreEntry::makePrivate(const bool shareable) STUB |
4310f8b0 EB |
41 | bool StoreEntry::setPublicKey(const KeyScope scope) STUB |
42 | void StoreEntry::setPrivateKey(const bool, const bool) STUB | |
7c8931a1 | 43 | void StoreEntry::expireNow() STUB |
39fe14b2 | 44 | void StoreEntry::releaseRequest(const bool shareable) STUB |
7c8931a1 | 45 | void StoreEntry::negativeCache() STUB |
4310f8b0 | 46 | bool StoreEntry::cacheNegatively() STUB |
7c8931a1 | 47 | void StoreEntry::swapOut() STUB |
9ced5b29 | 48 | void StoreEntry::swapOutFileClose(int how) STUB |
7c8931a1 | 49 | const char *StoreEntry::url() const STUB_RETVAL(NULL) |
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 |
c877c0bc | 55 | void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod &aMethod) STUB |
76d61119 | 56 | void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod &) STUB |
7c8931a1 AJ |
57 | void StoreEntry::dump(int debug_lvl) const STUB |
58 | void StoreEntry::hashDelete() STUB | |
59 | void StoreEntry::hashInsert(const cache_key *) STUB | |
60 | void StoreEntry::registerAbort(STABH * cb, void *) STUB | |
61 | void StoreEntry::reset() STUB | |
62 | void StoreEntry::setMemStatus(mem_status_t) STUB | |
1a210de4 | 63 | bool StoreEntry::timestampsSet() STUB_RETVAL(false) |
7c8931a1 AJ |
64 | void StoreEntry::unregisterAbort() STUB |
65 | void StoreEntry::destroyMemObject() STUB | |
66 | int StoreEntry::checkTooSmall() STUB_RETVAL(0) | |
1b76e6c1 | 67 | void StoreEntry::delayAwareRead(const Comm::ConnectionPointer&, char *buf, int len, AsyncCall::Pointer callback) STUB |
7c8931a1 | 68 | void StoreEntry::setNoDelay (bool const) STUB |
438b41ba | 69 | bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false) |
7c8931a1 AJ |
70 | bool StoreEntry::hasIfMatchEtag(const HttpRequest &request) const STUB_RETVAL(false) |
71 | bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &request) const STUB_RETVAL(false) | |
2745fea5 | 72 | Store::Disk &StoreEntry::disk() const STUB_RETREF(Store::Disk) |
7c8931a1 AJ |
73 | size_t StoreEntry::inUseCount() STUB_RETVAL(0) |
74 | void StoreEntry::getPublicByRequestMethod(StoreClient * aClient, HttpRequest * request, const HttpRequestMethod& method) STUB | |
75 | void StoreEntry::getPublicByRequest(StoreClient * aClient, HttpRequest * request) STUB | |
76 | void StoreEntry::getPublic(StoreClient * aClient, const char *uri, const HttpRequestMethod& method) STUB | |
0b934349 AJ |
77 | void *StoreEntry::operator new(size_t byteCount) |
78 | { | |
79 | STUB | |
80 | return new StoreEntry(); | |
81 | } | |
82 | void StoreEntry::operator delete(void *address) STUB | |
7c8931a1 AJ |
83 | //#if USE_SQUID_ESI |
84 | //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(NULL) | |
85 | //#endif | |
7c8931a1 AJ |
86 | void StoreEntry::buffer() STUB |
87 | void StoreEntry::flush() STUB | |
93278786 | 88 | int StoreEntry::unlock(const char *) STUB_RETVAL(0) |
93278786 AR |
89 | void StoreEntry::lock(const char *) STUB |
90 | void StoreEntry::touch() STUB | |
39fe14b2 | 91 | void StoreEntry::release(const bool shareable) STUB |
0f33a01d AJ |
92 | void StoreEntry::append(char const *, int) STUB |
93 | void StoreEntry::vappendf(const char *, va_list) STUB | |
d2a6dcba | 94 | void StoreEntry::setCollapsingRequirement(const bool required) STUB |
7c8931a1 | 95 | |
7c8931a1 | 96 | void Store::Maintain(void *unused) STUB |
7c8931a1 | 97 | |
d5d5493b DK |
98 | std::ostream &operator <<(std::ostream &os, const StoreEntry &) |
99 | { | |
100 | STUB | |
101 | return os; | |
102 | } | |
103 | ||
71b673d4 | 104 | size_t storeEntryInUse() STUB_RETVAL(0) |
7c8931a1 | 105 | void storeEntryReplaceObject(StoreEntry *, HttpReply *) STUB |
71b673d4 | 106 | StoreEntry *storeGetPublic(const char *uri, const HttpRequestMethod& method) STUB_RETVAL(NULL) |
1a210de4 EB |
107 | StoreEntry *storeGetPublicByRequest(HttpRequest * request, const KeyScope scope) STUB_RETVAL(NULL) |
108 | StoreEntry *storeGetPublicByRequestMethod(HttpRequest * request, const HttpRequestMethod& method, const KeyScope scope) STUB_RETVAL(NULL) | |
82afb125 | 109 | StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(NULL) |
4310f8b0 | 110 | StoreEntry *storeCreatePureEntry(const char *storeId, const char *logUrl, const HttpRequestMethod&) STUB_RETVAL(nullptr) |
71b673d4 | 111 | void storeConfigure(void) STUB |
71b673d4 FC |
112 | int expiresMoreThan(time_t, time_t) STUB_RETVAL(0) |
113 | void storeAppendPrintf(StoreEntry *, const char *,...) STUB | |
7c8931a1 | 114 | void storeAppendVPrintf(StoreEntry *, const char *, va_list ap) STUB |
71b673d4 FC |
115 | int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0) |
116 | void storeHeapPositionUpdate(StoreEntry *, SwapDir *) STUB | |
117 | void storeSwapFileNumberSet(StoreEntry * e, sfileno filn) STUB | |
118 | void storeFsInit(void) STUB | |
119 | void storeFsDone(void) STUB | |
120 | void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB | |
7c8931a1 | 121 | void destroyStoreEntry(void *) STUB |
71b673d4 | 122 | void storeGetMemSpace(int size) STUB |
f53969cc | 123 |