]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_libmgr.cc
2 * Copyright (C) 1996-2023 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 "comm/Connection.h"
12 #define STUB_API "lmgr/libmgr.la"
13 #include "tests/STUB.h"
15 #include "ipc/RequestId.h"
17 // NP: used by Command.h instantiations
18 #include "mgr/ActionProfile.h"
20 // NP: used by Action.h instantiations
21 #include "mgr/Command.h"
22 std::ostream
&Mgr::operator <<(std::ostream
&os
, const Command
&) STUB_RETVAL(os
)
24 #include "mgr/Action.h"
25 Mgr::Action::Action(const CommandPointer
&) STUB
26 Mgr::Action::~Action() STUB
27 void Mgr::Action::run(StoreEntry
*, bool) STUB
28 void Mgr::Action::fillEntry(StoreEntry
*, bool) STUB
29 void Mgr::Action::add(const Action
&) STUB
30 void Mgr::Action::respond(const Request
&) STUB
31 void Mgr::Action::sendResponse(const Ipc::RequestId
) STUB
32 Mgr::Format
Mgr::Action::format() const STUB_RETVAL(Mgr::Format::informal
)
33 bool Mgr::Action::atomic() const STUB_RETVAL(false)
34 const char * Mgr::Action::name() const STUB_RETVAL(nullptr)
35 static Mgr::Command static_Command
;
36 const Mgr::Command
& Mgr::Action::command() const STUB_RETVAL(static_Command
)
37 StoreEntry
* Mgr::Action::createStoreEntry() const STUB_RETVAL(nullptr)
38 static Mgr::Action::Pointer dummyAction
;
40 #include "mgr/ActionParams.h"
41 Mgr::ActionParams::ActionParams() STUB_NOP
42 Mgr::ActionParams::ActionParams(const Ipc::TypedMsgHdr
&) STUB_NOP
43 void Mgr::ActionParams::pack(Ipc::TypedMsgHdr
&) const STUB
45 #include "mgr/ActionWriter.h"
46 //Mgr::ActionWriter::ActionWriter(const Action::Pointer &, int) STUB
48 void Mgr::ActionWriter::start() STUB
50 #include "mgr/BasicActions.h"
51 Mgr::Action::Pointer
Mgr::MenuAction::Create(const Mgr::CommandPointer
&) STUB_RETVAL(dummyAction
)
52 void Mgr::MenuAction::dump(StoreEntry
*) STUB
54 //Mgr::MenuAction::MenuAction(const CommandPointer &cmd) STUB
56 Mgr::Action::Pointer
Mgr::ShutdownAction::Create(const Mgr::CommandPointer
&) STUB_RETVAL(dummyAction
)
57 void Mgr::ShutdownAction::dump(StoreEntry
*) STUB
59 //Mgr::ShutdownAction::ShutdownAction(const CommandPointer &) STUB
61 Mgr::Action::Pointer
Mgr::ReconfigureAction::Create(const Mgr::CommandPointer
&) STUB_RETVAL(dummyAction
)
62 void Mgr::ReconfigureAction::dump(StoreEntry
*) STUB
64 //Mgr::ReconfigureAction::ReconfigureAction(const CommandPointer &) STUB
66 Mgr::Action::Pointer
Mgr::RotateAction::Create(const Mgr::CommandPointer
&) STUB_RETVAL(dummyAction
)
67 void Mgr::RotateAction::dump(StoreEntry
*) STUB
69 //Mgr::RotateAction::RotateAction(const CommandPointer &) STUB
71 Mgr::Action::Pointer
Mgr::OfflineToggleAction::Create(const CommandPointer
&) STUB_RETVAL(dummyAction
)
72 void Mgr::OfflineToggleAction::dump(StoreEntry
*) STUB
74 //Mgr::OfflineToggleAction::OfflineToggleAction(const CommandPointer &) STUB
76 void Mgr::RegisterBasics() STUB
78 #include "mgr/CountersAction.h"
79 //Mgr::CountersActionData::CountersActionData() STUB
80 Mgr::CountersActionData
& Mgr::CountersActionData::operator +=(const Mgr::CountersActionData
&) STUB_RETVAL(*this)
82 Mgr::Action::Pointer
Mgr::CountersAction::Create(const CommandPointer
&) STUB_RETVAL(dummyAction
)
83 void Mgr::CountersAction::add(const Action
&) STUB
84 void Mgr::CountersAction::pack(Ipc::TypedMsgHdr
&) const STUB
85 void Mgr::CountersAction::unpack(const Ipc::TypedMsgHdr
&) STUB
87 //Mgr::CountersAction::CountersAction(const CommandPointer &) STUB
88 void Mgr::CountersAction::collect() STUB
89 void Mgr::CountersAction::dump(StoreEntry
*) STUB
91 #include "mgr/Filler.h"
92 //Mgr::Filler::Filler(const Action::Pointer &, int, unsigned int) STUB
94 //void Mgr::Filler::start() STUB
95 //void Mgr::Filler::swanSong() STUB
97 #include "mgr/Forwarder.h"
98 //Mgr::Forwarder::Forwarder(int, const ActionParams &, HttpRequest *, StoreEntry *) STUB
99 //Mgr::Forwarder::~Forwarder() STUB
101 //void Mgr::Forwarder::swanSong() STUB
102 void Mgr::Forwarder::handleError() STUB
103 void Mgr::Forwarder::handleTimeout() STUB
104 void Mgr::Forwarder::handleException(const std::exception
&) STUB
106 #include "mgr/FunAction.h"
107 Mgr::Action::Pointer
Mgr::FunAction::Create(const CommandPointer
&, OBJH
*) STUB_RETVAL(dummyAction
)
108 void Mgr::FunAction::respond(const Request
&) STUB
110 //Mgr::FunAction::FunAction(const CommandPointer &, OBJH *) STUB
111 void Mgr::FunAction::dump(StoreEntry
*) STUB
113 #include "mgr/InfoAction.h"
114 //Mgr::InfoActionData::InfoActionData() STUB
115 Mgr::InfoActionData
& Mgr::InfoActionData::operator += (const Mgr::InfoActionData
&) STUB_RETVAL(*this)
117 Mgr::Action::Pointer
Mgr::InfoAction::Create(const CommandPointer
&) STUB_RETVAL(dummyAction
)
118 void Mgr::InfoAction::add(const Action
&) STUB
119 void Mgr::InfoAction::respond(const Request
&) STUB
120 void Mgr::InfoAction::pack(Ipc::TypedMsgHdr
&) const STUB
121 void Mgr::InfoAction::unpack(const Ipc::TypedMsgHdr
&) STUB
123 //Mgr::InfoAction::InfoAction(const Mgr::CommandPointer &) STUB
124 void Mgr::InfoAction::collect() STUB
125 void Mgr::InfoAction::dump(StoreEntry
*) STUB
127 #include "mgr/Inquirer.h"
128 //Mgr::Inquirer::Inquirer(Action::Pointer, const Request &, const Ipc::StrandCoords &) STUB
130 void Mgr::Inquirer::start() STUB
131 bool Mgr::Inquirer::doneAll() const STUB_RETVAL(false)
132 void Mgr::Inquirer::cleanup() STUB
133 void Mgr::Inquirer::sendResponse() STUB
134 bool Mgr::Inquirer::aggregate(Ipc::Response::Pointer
) STUB_RETVAL(false)
136 #include "mgr/IntervalAction.h"
137 //Mgr::IntervalActionData::IntervalActionData() STUB
138 Mgr::IntervalActionData
& Mgr::IntervalActionData::operator +=(const Mgr::IntervalActionData
&) STUB_RETVAL(*this)
140 //Mgr::Action::Pointer Mgr::IntervalAction::Create5min(const CommandPointer &cmd) STUB_RETVAL(new Mgr::IntervalAction(*cmd))
141 //Mgr::Action::Pointer Mgr::IntervalAction::Create60min(const CommandPointer &cmd) STUB_RETVAL(new Mgr::IntervalAction(*cmd))
142 void Mgr::IntervalAction::add(const Action
&) STUB
143 void Mgr::IntervalAction::pack(Ipc::TypedMsgHdr
&) const STUB
144 void Mgr::IntervalAction::unpack(const Ipc::TypedMsgHdr
&) STUB
146 //Mgr::IntervalAction::IntervalAction(const CommandPointer &, int, int) STUB
147 void Mgr::IntervalAction::collect() STUB
148 void Mgr::IntervalAction::dump(StoreEntry
*) STUB
150 #include "mgr/IntParam.h"
151 //Mgr::IntParam::IntParam() STUB
152 //Mgr::IntParam::IntParam(const std::vector<int>&) STUB
153 void Mgr::IntParam::pack(Ipc::TypedMsgHdr
&) const STUB
154 void Mgr::IntParam::unpackValue(const Ipc::TypedMsgHdr
&) STUB
155 static std::vector
<int> static_vector
;
156 const std::vector
<int>& Mgr::IntParam::value() const STUB_RETVAL(static_vector
)
158 #include "mgr/IoAction.h"
159 //Mgr::IoActionData::IoActionData() STUB
160 Mgr::IoActionData
& Mgr::IoActionData::operator += (const IoActionData
&) STUB_RETVAL(*this)
162 Mgr::Action::Pointer
Mgr::IoAction::Create(const CommandPointer
&) STUB_RETVAL(dummyAction
)
163 void Mgr::IoAction::add(const Action
&) STUB
164 void Mgr::IoAction::pack(Ipc::TypedMsgHdr
&) const STUB
165 void Mgr::IoAction::unpack(const Ipc::TypedMsgHdr
&) STUB
167 //Mgr::IoAction::IoAction(const CommandPointer &) STUB
168 void Mgr::IoAction::collect() STUB
169 void Mgr::IoAction::dump(StoreEntry
*) STUB
171 //#include "mgr/QueryParam.h"
172 //void Mgr::QueryParam::pack(Ipc::TypedMsgHdr&) const = 0;
173 //void Mgr::QueryParam::unpackValue(const Ipc::TypedMsgHdr&) = 0;
175 #include "mgr/QueryParams.h"
176 Mgr::QueryParam::Pointer
Mgr::QueryParams::get(const String
&) const STUB_RETVAL(Mgr::QueryParam::Pointer(nullptr))
177 void Mgr::QueryParams::pack(Ipc::TypedMsgHdr
&) const STUB
178 void Mgr::QueryParams::unpack(const Ipc::TypedMsgHdr
&) STUB
179 void Mgr::QueryParams::Parse(Parser::Tokenizer
&, QueryParams
&) STUB
181 //Params::const_iterator Mgr::QueryParams::find(const String&) const STUB_RETVAL(new Mgr::Params::const_iterator(*this))
182 Mgr::QueryParam::Pointer
Mgr::QueryParams::CreateParam(QueryParam::Type
) STUB_RETVAL(Mgr::QueryParam::Pointer(nullptr))
184 #include "mgr/Registration.h"
185 //void Mgr::RegisterAction(char const *, char const *, OBJH *, Protected, Atomic, Format);
186 //void Mgr::RegisterAction(char const *, char const *, ClassActionCreationHandler *, Protected, Atomic, Format);
188 #include "mgr/Request.h"
189 //Mgr::Request::Request(int, unsigned int, int, const Mgr::ActionParams &) STUB
190 //Mgr::Request::Request(const Ipc::TypedMsgHdr&) STUB
191 void Mgr::Request::pack(Ipc::TypedMsgHdr
&) const STUB
192 Ipc::Request::Pointer
Mgr::Request::clone() const STUB_RETVAL(const_cast<Mgr::Request
*>(this))
194 #include "mgr/Response.h"
195 //Mgr::Response::Response(unsigned int, Action::Pointer) STUB
196 //Mgr::Response::Response(const Ipc::TypedMsgHdr&) STUB
197 void Mgr::Response::pack(Ipc::TypedMsgHdr
&) const STUB
198 static Ipc::Response::Pointer ipr_static
;
199 Ipc::Response::Pointer
Mgr::Response::clone() const STUB_RETVAL(Ipc::Response::Pointer(nullptr))
200 bool Mgr::Response::hasAction() const STUB_RETVAL(false)
201 //static Mgr::Action mgraction_static;
202 //const Mgr::Action& Mgr::Response::getAction() const STUB_RETVAL(mgraction_static)
204 #include "mgr/ServiceTimesAction.h"
205 //Mgr::ServiceTimesActionData::ServiceTimesActionData() STUB
206 Mgr::ServiceTimesActionData
& Mgr::ServiceTimesActionData::operator +=(const Mgr::ServiceTimesActionData
&) STUB_RETVAL(*this)
208 Mgr::Action::Pointer
Mgr::ServiceTimesAction::Create(const Mgr::CommandPointer
&) STUB_RETVAL(Mgr::Action::Pointer(nullptr))
209 void Mgr::ServiceTimesAction::add(const Action
&) STUB
210 void Mgr::ServiceTimesAction::pack(Ipc::TypedMsgHdr
&) const STUB
211 void Mgr::ServiceTimesAction::unpack(const Ipc::TypedMsgHdr
&) STUB
213 //Mgr::ServiceTimesAction::ServiceTimesAction(const CommandPointer &) STUB
214 void Mgr::ServiceTimesAction::collect() STUB
215 void Mgr::ServiceTimesAction::dump(StoreEntry
*) STUB
217 #include "mgr/StoreIoAction.h"
218 //Mgr::StoreIoActionData::StoreIoActionData() STUB
219 Mgr::StoreIoActionData
& Mgr::StoreIoActionData::operator +=(const StoreIoActionData
&) STUB_RETVAL(*this)
220 //Mgr::StoreIoAction::StoreIoAction(const CommandPointer &) STUB
221 Mgr::Action::Pointer
Mgr::StoreIoAction::Create(const CommandPointer
&) STUB_RETVAL(Mgr::Action::Pointer(nullptr))
222 void Mgr::StoreIoAction::add(const Action
&) STUB
223 void Mgr::StoreIoAction::pack(Ipc::TypedMsgHdr
&) const STUB
224 void Mgr::StoreIoAction::unpack(const Ipc::TypedMsgHdr
&) STUB
225 void Mgr::StoreIoAction::collect() STUB
226 void Mgr::StoreIoAction::dump(StoreEntry
*) STUB
228 #include "mgr/StoreToCommWriter.h"
229 //Mgr::StoreToCommWriter::StoreToCommWriter(int, StoreEntry *) STUB
230 Mgr::StoreToCommWriter::~StoreToCommWriter() STUB
231 void Mgr::StoreToCommWriter::start() STUB
232 void Mgr::StoreToCommWriter::swanSong() STUB
233 bool Mgr::StoreToCommWriter::doneAll() const STUB_RETVAL(false)
234 void Mgr::StoreToCommWriter::scheduleStoreCopy() STUB
235 void Mgr::StoreToCommWriter::noteStoreCopied(StoreIOBuffer
) STUB
236 void Mgr::StoreToCommWriter::NoteStoreCopied(void*, StoreIOBuffer
) STUB
237 void Mgr::StoreToCommWriter::HandleStoreAbort(StoreToCommWriter
*) STUB
238 void Mgr::StoreToCommWriter::scheduleCommWrite(const StoreIOBuffer
&) STUB
239 void Mgr::StoreToCommWriter::noteCommWrote(const CommIoCbParams
&) STUB
240 void Mgr::StoreToCommWriter::noteCommClosed(const CommCloseCbParams
&) STUB
241 void Mgr::StoreToCommWriter::close() STUB
243 #include "mgr/StringParam.h"
244 //Mgr::StringParam::StringParam() STUB
245 //Mgr::StringParam::StringParam(const String&) STUB
246 void Mgr::StringParam::pack(Ipc::TypedMsgHdr
&) const STUB
247 void Mgr::StringParam::unpackValue(const Ipc::TypedMsgHdr
&) STUB
249 const String
& Mgr::StringParam::value() const STUB_RETVAL(t
)