2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
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.
10 #include "RequestFlags.h"
12 #define STUB_API "store.cc"
13 #include "tests/STUB.h"
15 const char *storeStatusStr
[] = { };
16 const char *pingStatusStr
[] = { };
17 const char *memStatusStr
[] = { };
18 const char *swapStatusStr
[] = { };
20 #include "RemovalPolicy.h"
21 RemovalPolicy
* createRemovalPolicy(RemovalPolicySettings
* settings
) STUB_RETVAL(NULL
)
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
28 StoreEntry::~StoreEntry() STUB
29 void StoreEntry::write(StoreIOBuffer
) STUB
30 bool StoreEntry::isAccepting() const STUB_RETVAL(false)
31 size_t StoreEntry::bytesWanted(Range
<size_t> const, bool) const STUB_RETVAL(0)
32 void StoreEntry::complete() STUB
33 store_client_t
StoreEntry::storeClientType() const STUB_RETVAL(STORE_NON_CLIENT
)
34 char const *StoreEntry::getSerialisedMetaData(size_t &length
) const STUB_RETVAL(NULL
)
35 void StoreEntry::replaceHttpReply(const HttpReplyPointer
&, bool andStartWriting
) STUB
36 bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false)
37 void StoreEntry::trimMemory(const bool preserveSwappable
) STUB
38 void StoreEntry::abort() STUB
39 bool StoreEntry::makePublic(const KeyScope scope
) STUB
40 void StoreEntry::makePrivate(const bool shareable
) STUB
41 bool StoreEntry::setPublicKey(const KeyScope scope
) STUB
42 void StoreEntry::setPrivateKey(const bool, const bool) STUB
43 void StoreEntry::expireNow() STUB
44 void StoreEntry::releaseRequest(const bool shareable
) STUB
45 void StoreEntry::negativeCache() STUB
46 bool StoreEntry::cacheNegatively() STUB
47 void StoreEntry::swapOut() STUB
48 void StoreEntry::swapOutFileClose(int how
) STUB
49 const char *StoreEntry::url() const STUB_RETVAL(NULL
)
50 bool StoreEntry::checkCachable() STUB_RETVAL(false)
51 int StoreEntry::checkNegativeHit() const STUB_RETVAL(0)
52 int StoreEntry::validToSend() const STUB_RETVAL(0)
53 bool StoreEntry::memoryCachable() STUB_RETVAL(false)
54 void StoreEntry::createMemObject() STUB
55 void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod
&aMethod
) STUB
56 void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod
&) STUB
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::registerAbortCallback(const AsyncCall::Pointer
&) STUB
61 void StoreEntry::reset() STUB
62 void StoreEntry::setMemStatus(mem_status_t
) STUB
63 bool StoreEntry::timestampsSet() STUB_RETVAL(false)
64 void StoreEntry::unregisterAbortCallback(const char *) STUB
65 void StoreEntry::destroyMemObject() STUB
66 int StoreEntry::checkTooSmall() STUB_RETVAL(0)
67 void StoreEntry::delayAwareRead(const Comm::ConnectionPointer
&, char *buf
, int len
, AsyncCall::Pointer callback
) STUB
68 void StoreEntry::setNoDelay (bool const) STUB
69 bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false)
70 bool StoreEntry::hasIfMatchEtag(const HttpRequest
&request
) const STUB_RETVAL(false)
71 bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest
&request
) const STUB_RETVAL(false)
72 Store::Disk
&StoreEntry::disk() const STUB_RETREF(Store::Disk
)
73 size_t StoreEntry::inUseCount() STUB_RETVAL(0)
74 void *StoreEntry::operator new(size_t byteCount
)
77 return new StoreEntry();
79 void StoreEntry::operator delete(void *address
) STUB
81 //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(NULL)
83 void StoreEntry::buffer() STUB
84 void StoreEntry::flush() STUB
85 int StoreEntry::unlock(const char *) STUB_RETVAL(0)
86 void StoreEntry::lock(const char *) STUB
87 void StoreEntry::touch() STUB
88 void StoreEntry::release(const bool shareable
) STUB
89 void StoreEntry::append(char const *, int) STUB
90 void StoreEntry::vappendf(const char *, va_list) STUB
91 void StoreEntry::setCollapsingRequirement(const bool required
) STUB
93 void Store::Maintain(void *unused
) STUB
95 std::ostream
&operator <<(std::ostream
&os
, const StoreEntry
&)
101 size_t storeEntryInUse() STUB_RETVAL(0)
102 void storeEntryReplaceObject(StoreEntry
*, HttpReply
*) STUB
103 StoreEntry
*storeGetPublic(const char *uri
, const HttpRequestMethod
& method
) STUB_RETVAL(NULL
)
104 StoreEntry
*storeGetPublicByRequest(HttpRequest
* request
, const KeyScope scope
) STUB_RETVAL(NULL
)
105 StoreEntry
*storeGetPublicByRequestMethod(HttpRequest
* request
, const HttpRequestMethod
& method
, const KeyScope scope
) STUB_RETVAL(NULL
)
106 StoreEntry
*storeCreateEntry(const char *, const char *, const RequestFlags
&, const HttpRequestMethod
&) STUB_RETVAL(NULL
)
107 StoreEntry
*storeCreatePureEntry(const char *storeId
, const char *logUrl
, const HttpRequestMethod
&) STUB_RETVAL(nullptr)
108 void storeConfigure(void) STUB
109 int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
110 void storeAppendPrintf(StoreEntry
*, const char *,...) STUB
111 void storeAppendVPrintf(StoreEntry
*, const char *, va_list ap
) STUB
112 int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0)
113 void storeHeapPositionUpdate(StoreEntry
*, SwapDir
*) STUB
114 void storeSwapFileNumberSet(StoreEntry
* e
, sfileno filn
) STUB
115 void storeFsInit(void) STUB
116 void storeFsDone(void) STUB
117 void storeReplAdd(const char *, REMOVALPOLICYCREATE
*) STUB
118 void destroyStoreEntry(void *) STUB
119 void storeGetMemSpace(int size
) STUB