2 * Copyright (C) 1996-2018 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 HttpReply
const *StoreEntry::getReply() const STUB_RETVAL(NULL
)
30 void StoreEntry::write(StoreIOBuffer
) STUB
31 bool StoreEntry::isAccepting() const STUB_RETVAL(false)
32 size_t StoreEntry::bytesWanted(Range
<size_t> const, bool) const STUB_RETVAL(0)
33 void StoreEntry::complete() STUB
34 store_client_t
StoreEntry::storeClientType() const STUB_RETVAL(STORE_NON_CLIENT
)
35 char const *StoreEntry::getSerialisedMetaData() STUB_RETVAL(NULL
)
36 void StoreEntry::replaceHttpReply(HttpReply
*, bool andStartWriting
) STUB
37 bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false)
38 void StoreEntry::trimMemory(const bool preserveSwappable
) STUB
39 void StoreEntry::abort() STUB
40 void StoreEntry::makePublic(const KeyScope scope
) STUB
41 void StoreEntry::makePrivate(const bool shareable
) STUB
42 void StoreEntry::setPublicKey(const KeyScope scope
) STUB
43 void StoreEntry::setPrivateKey(const bool shareable
) STUB
44 void StoreEntry::expireNow() STUB
45 void StoreEntry::releaseRequest(const bool shareable
) STUB
46 void StoreEntry::negativeCache() STUB
47 void StoreEntry::cacheNegatively() STUB
48 void StoreEntry::purgeMem() STUB
49 void StoreEntry::swapOut() STUB
50 void StoreEntry::swapOutFileClose(int how
) STUB
51 const char *StoreEntry::url() const STUB_RETVAL(NULL
)
52 bool StoreEntry::checkCachable() STUB_RETVAL(false)
53 int StoreEntry::checkNegativeHit() const STUB_RETVAL(0)
54 int StoreEntry::locked() const STUB_RETVAL(0)
55 int StoreEntry::validToSend() const STUB_RETVAL(0)
56 bool StoreEntry::memoryCachable() STUB_RETVAL(false)
57 void StoreEntry::createMemObject() STUB
58 void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod
&aMethod
) STUB
59 void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod
&) STUB
60 void StoreEntry::dump(int debug_lvl
) const STUB
61 void StoreEntry::hashDelete() STUB
62 void StoreEntry::hashInsert(const cache_key
*) STUB
63 void StoreEntry::registerAbort(STABH
* cb
, void *) STUB
64 void StoreEntry::reset() STUB
65 void StoreEntry::setMemStatus(mem_status_t
) STUB
66 bool StoreEntry::timestampsSet() STUB_RETVAL(false)
67 void StoreEntry::unregisterAbort() STUB
68 void StoreEntry::destroyMemObject() STUB
69 int StoreEntry::checkTooSmall() STUB_RETVAL(0)
70 void StoreEntry::delayAwareRead(const Comm::ConnectionPointer
&, char *buf
, int len
, AsyncCall::Pointer callback
) STUB
71 void StoreEntry::setNoDelay (bool const) STUB
72 bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false)
73 bool StoreEntry::hasIfMatchEtag(const HttpRequest
&request
) const STUB_RETVAL(false)
74 bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest
&request
) const STUB_RETVAL(false)
75 Store::Disk
&StoreEntry::disk() const STUB_RETREF(Store::Disk
)
76 size_t StoreEntry::inUseCount() STUB_RETVAL(0)
77 void StoreEntry::getPublicByRequestMethod(StoreClient
* aClient
, HttpRequest
* request
, const HttpRequestMethod
& method
) STUB
78 void StoreEntry::getPublicByRequest(StoreClient
* aClient
, HttpRequest
* request
) STUB
79 void StoreEntry::getPublic(StoreClient
* aClient
, const char *uri
, const HttpRequestMethod
& method
) STUB
80 void *StoreEntry::operator new(size_t byteCount
)
83 return new StoreEntry();
85 void StoreEntry::operator delete(void *address
) STUB
86 void StoreEntry::setReleaseFlag() STUB
88 //ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(NULL)
90 void StoreEntry::buffer() STUB
91 void StoreEntry::flush() STUB
92 int StoreEntry::unlock(const char *) STUB_RETVAL(0)
93 int64_t StoreEntry::objectLen() const STUB_RETVAL(0)
94 int64_t StoreEntry::contentLen() const STUB_RETVAL(0)
95 void StoreEntry::lock(const char *) STUB
96 void StoreEntry::touch() STUB
97 void StoreEntry::release(const bool shareable
) STUB
98 void StoreEntry::append(char const *, int) STUB
99 void StoreEntry::vappendf(const char *, va_list) STUB
101 NullStoreEntry
*NullStoreEntry::getInstance() STUB_RETVAL(NULL
)
102 const char *NullStoreEntry::getMD5Text() const STUB_RETVAL(NULL
)
103 void NullStoreEntry::operator delete(void *address
) STUB
104 // private virtual. Why is this linked from outside?
105 const char *NullStoreEntry::getSerialisedMetaData() STUB_RETVAL(NULL
)
107 Store::Controller
&Store::Root() STUB_RETREF(Store::Controller
)
108 void Store::Init(Store::Controller
*root
) STUB
109 void Store::FreeMemory() STUB
110 void Store::Stats(StoreEntry
* output
) STUB
111 void Store::Maintain(void *unused
) STUB
112 int Store::Controller::store_dirs_rebuilding
= 0;
113 StoreSearch
*Store::Controller::search() STUB_RETVAL(NULL
)
114 void Store::Controller::maintain() STUB
116 std::ostream
&operator <<(std::ostream
&os
, const StoreEntry
&)
122 size_t storeEntryInUse() STUB_RETVAL(0)
123 void storeEntryReplaceObject(StoreEntry
*, HttpReply
*) STUB
124 StoreEntry
*storeGetPublic(const char *uri
, const HttpRequestMethod
& method
) STUB_RETVAL(NULL
)
125 StoreEntry
*storeGetPublicByRequest(HttpRequest
* request
, const KeyScope scope
) STUB_RETVAL(NULL
)
126 StoreEntry
*storeGetPublicByRequestMethod(HttpRequest
* request
, const HttpRequestMethod
& method
, const KeyScope scope
) STUB_RETVAL(NULL
)
127 StoreEntry
*storeCreateEntry(const char *, const char *, const RequestFlags
&, const HttpRequestMethod
&) STUB_RETVAL(NULL
)
128 StoreEntry
*storeCreatePureEntry(const char *storeId
, const char *logUrl
, const RequestFlags
&, const HttpRequestMethod
&) STUB_RETVAL(NULL
)
129 void storeConfigure(void) STUB
130 int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
131 void storeAppendPrintf(StoreEntry
*, const char *,...) STUB
132 void storeAppendVPrintf(StoreEntry
*, const char *, va_list ap
) STUB
133 int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0)
134 void storeHeapPositionUpdate(StoreEntry
*, SwapDir
*) STUB
135 void storeSwapFileNumberSet(StoreEntry
* e
, sfileno filn
) STUB
136 void storeFsInit(void) STUB
137 void storeFsDone(void) STUB
138 void storeReplAdd(const char *, REMOVALPOLICYCREATE
*) STUB
139 void destroyStoreEntry(void *) STUB
140 void storeGetMemSpace(int size
) STUB