stub_store.cc
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#include "squid.h"
10#include "RequestFlags.h"
11
12#define STUB_API "store.cc"
13#include "tests/STUB.h"
14
15const char *storeStatusStr[] = { };
16const char *pingStatusStr[] = { };
17const char *memStatusStr[] = { };
18const char *swapStatusStr[] = { };
19
20#include "RemovalPolicy.h"
22
23#include "Store.h"
25bool StoreEntry::checkDeferRead(int) const STUB_RETVAL(false)
26const char *StoreEntry::getMD5Text() const STUB_RETVAL(nullptr)
29void StoreEntry::write(StoreIOBuffer) STUB
30bool StoreEntry::isAccepting() const STUB_RETVAL(false)
31size_t StoreEntry::bytesWanted(Range<size_t> const, bool) const STUB_RETVAL(0)
32void StoreEntry::complete() STUB
34char const *StoreEntry::getSerialisedMetaData(size_t &) const STUB_RETVAL(nullptr)
35void StoreEntry::replaceHttpReply(const HttpReplyPointer &, bool) STUB
36bool StoreEntry::mayStartSwapOut() STUB_RETVAL(false)
37void StoreEntry::trimMemory(const bool) STUB
38void StoreEntry::abort() STUB
39bool StoreEntry::makePublic(const KeyScope) STUB
40void StoreEntry::makePrivate(const bool) STUB
41bool StoreEntry::setPublicKey(const KeyScope) STUB
42void StoreEntry::setPrivateKey(const bool, const bool) STUB
43void StoreEntry::expireNow() STUB
44void StoreEntry::releaseRequest(const bool) STUB
45void StoreEntry::negativeCache() STUB
46bool StoreEntry::cacheNegatively() STUB
47void StoreEntry::swapOut() STUB
48void StoreEntry::swapOutFileClose(int) STUB
49const char *StoreEntry::url() const STUB_RETVAL(nullptr)
50bool StoreEntry::checkCachable() STUB_RETVAL(false)
51int StoreEntry::checkNegativeHit() const STUB_RETVAL(0)
52int StoreEntry::validToSend() const STUB_RETVAL(0)
53bool StoreEntry::memoryCachable() STUB_RETVAL(false)
54void StoreEntry::createMemObject() STUB
55void StoreEntry::createMemObject(const char *, const char *, const HttpRequestMethod &) STUB
56void StoreEntry::ensureMemObject(const char *, const char *, const HttpRequestMethod &) STUB
57void StoreEntry::dump(int) const STUB
58void StoreEntry::hashDelete() STUB
59void StoreEntry::hashInsert(const cache_key *) STUB
60void StoreEntry::registerAbortCallback(const AsyncCall::Pointer &) STUB
61void StoreEntry::reset() STUB
62void StoreEntry::setMemStatus(mem_status_t) STUB
63bool StoreEntry::timestampsSet() STUB_RETVAL(false)
64void StoreEntry::unregisterAbortCallback(const char *) STUB
65void StoreEntry::destroyMemObject() STUB
66int StoreEntry::checkTooSmall() STUB_RETVAL(0)
67void StoreEntry::setNoDelay (bool const) STUB
68bool StoreEntry::modifiedSince(const time_t, const int) const STUB_RETVAL(false)
69bool StoreEntry::hasIfMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
70bool StoreEntry::hasIfNoneMatchEtag(const HttpRequest &) const STUB_RETVAL(false)
71Store::Disk &StoreEntry::disk() const STUB_RETREF(Store::Disk)
72size_t StoreEntry::inUseCount() STUB_RETVAL(0)
73void *StoreEntry::operator new(size_t)
74{
75 STUB
76 return new StoreEntry();
77}
78void StoreEntry::operator delete(void *) STUB
79//#if USE_SQUID_ESI
80//ESIElement::Pointer StoreEntry::cachedESITree STUB_RETVAL(nullptr)
81//#endif
83void StoreEntry::flush() STUB
84int StoreEntry::unlock(const char *) STUB_RETVAL(0)
85void StoreEntry::lock(const char *) STUB
86void StoreEntry::touch() STUB
87void StoreEntry::release(const bool) STUB
88void StoreEntry::append(char const *, int) STUB
89void StoreEntry::vappendf(const char *, va_list) STUB
90void StoreEntry::setCollapsingRequirement(const bool) STUB
91
92void Store::Maintain(void *) STUB
93
94std::ostream &operator <<(std::ostream &os, const StoreEntry &)
95{
96 STUB
97 return os;
98}
99
102StoreEntry *storeGetPublic(const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
105StoreEntry *storeCreateEntry(const char *, const char *, const RequestFlags &, const HttpRequestMethod&) STUB_RETVAL(nullptr)
106StoreEntry *storeCreatePureEntry(const char *, const char *, const HttpRequestMethod&) STUB_RETVAL(nullptr)
107void storeConfigure(void) STUB
108int expiresMoreThan(time_t, time_t) STUB_RETVAL(0)
109void storeAppendPrintf(StoreEntry *, const char *,...) STUB
110void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB
114void storeFsInit(void) STUB
115void storeFsDone(void) STUB
116void storeReplAdd(const char *, REMOVALPOLICYCREATE *) STUB
117void destroyStoreEntry(void *) STUB
118void storeGetMemSpace(int) STUB
119
RemovalPolicy * REMOVALPOLICYCREATE(wordlist *args)
Definition: RemovalPolicy.h:80
#define STUB
macro to stub a void function.
Definition: STUB.h:33
#define STUB_RETREF(x)
Definition: STUB.h:51
void storeHeapPositionUpdate(StoreEntry *, SwapDir *)
void storeEntryReplaceObject(StoreEntry *, HttpReply *)
StoreIoStats store_io_stats
Definition: store_io.cc:16
void storeFsDone(void)
FREE destroyStoreEntry
Definition: Range.h:19
bool checkDeferRead(int fd) const
Definition: store.cc:230
void buffer() override
Definition: store.cc:1587
Store statistics related to low-level I/O.
Definition: StoreStats.h:58
manages a single cache_dir
Definition: Disk.h:22
enum _mem_status_t mem_status_t
store_client_t
Definition: enums.h:71
@ STORE_NON_CLIENT
Definition: enums.h:72
void Maintain(void *unused)
Definition: store.cc:1118
STL namespace.
unsigned char cache_key
Store key.
Definition: forward.h:29
signed_int32_t sfileno
Definition: forward.h:22
int expiresMoreThan(time_t expires, time_t when)
Definition: store.cc:1324
void storeGetMemSpace(int size)
Definition: store.cc:1107
void storeAppendPrintf(StoreEntry *e, const char *fmt,...)
Definition: store.cc:841
void storeConfigure(void)
Definition: store.cc:1256
int storeTooManyDiskFilesOpen(void)
Definition: store.cc:875
StoreEntry * storeGetPublicByRequestMethod(HttpRequest *req, const HttpRequestMethod &method, const KeyScope keyScope)
Definition: store.cc:496
StoreEntry * storeGetPublicByRequest(HttpRequest *req, const KeyScope keyScope)
Definition: store.cc:502
StoreEntry * storeCreateEntry(const char *url, const char *logUrl, const RequestFlags &flags, const HttpRequestMethod &method)
Definition: store.cc:745
StoreEntry * storeCreatePureEntry(const char *url, const char *log_url, const HttpRequestMethod &method)
Definition: store.cc:727
void storeReplAdd(const char *type, REMOVALPOLICYCREATE *create)
Definition: store.cc:1631
void storeFsInit(void)
Definition: store.cc:1622
KeyScope
Definition: store_key_md5.h:18
const char * swapStatusStr[]
Definition: stub_store.cc:18
size_t HttpReply *STUB StoreEntry const KeyScope STUB_RETVAL(nullptr) StoreEntry *storeGetPublicByRequestMethod(HttpRequest *
size_t HttpReply *STUB StoreEntry const KeyScope const HttpRequestMethod const KeyScope const char const RequestFlags const HttpRequestMethod const char const HttpRequestMethod time_t const char STUB void storeAppendVPrintf(StoreEntry *, const char *, va_list) STUB int storeTooManyDiskFilesOpen(void) STUB_RETVAL(0) void storeHeapPositionUpdate(StoreEntry *
Definition: store.cc:851
const char * pingStatusStr[]
Definition: stub_store.cc:16
const char * memStatusStr[]
Definition: stub_store.cc:17
RemovalPolicy * createRemovalPolicy(RemovalPolicySettings *) STUB_RETVAL(nullptr) StoreIoStats store_io_stats
Definition: store.cc:1657
size_t HttpReply *STUB StoreEntry * storeGetPublic(const char *, const HttpRequestMethod &) STUB_RETVAL(nullptr) StoreEntry *storeGetPublicByRequest(HttpRequest *
Definition: store.cc:490
const char * storeStatusStr[]
Definition: stub_store.cc:15
size_t storeEntryInUse() STUB_RETVAL(0) void storeEntryReplaceObject(StoreEntry *
size_t HttpReply *STUB StoreEntry const KeyScope const HttpRequestMethod const KeyScope const char const RequestFlags const HttpRequestMethod const char const HttpRequestMethod time_t const char STUB void SwapDir *STUB void storeSwapFileNumberSet(StoreEntry *, sfileno) STUB void storeFsInit(void) STUB void storeFsDone(void) STUB void storeReplAdd(const char *

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors