]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_libcomm.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / tests / stub_libcomm.cc
CommitLineData
4e0938ef 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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
f7f3304a 9#include "squid.h"
1b76e6c1 10#include "base/AsyncJob.h"
1b76e6c1
AJ
11
12#define STUB_API "comm/libcomm.la"
13#include "tests/STUB.h"
14
ba465675 15#include "comm/AcceptLimiter.h"
1b76e6c1
AJ
16Comm::AcceptLimiter dummy;
17Comm::AcceptLimiter & Comm::AcceptLimiter::Instance() STUB_RETVAL(dummy)
69bb9399
AJ
18void Comm::AcceptLimiter::defer(const Comm::TcpAcceptor::Pointer &afd) STUB
19void Comm::AcceptLimiter::removeDead(const Comm::TcpAcceptor::Pointer &afd) STUB
1b76e6c1
AJ
20void Comm::AcceptLimiter::kick() STUB
21
22#include "comm/Connection.h"
23Comm::Connection::Connection() STUB
24Comm::Connection::~Connection() STUB
25Comm::ConnectionPointer Comm::Connection::copyDetails() const STUB_RETVAL(NULL)
26void Comm::Connection::close() STUB
a3c6762c
FC
27CachePeer * Comm::Connection::getPeer() const STUB_RETVAL(NULL)
28void Comm::Connection::setPeer(CachePeer * p) STUB
1b76e6c1
AJ
29
30#include "comm/ConnOpener.h"
a016163c 31CBDATA_NAMESPACED_CLASS_INIT(Comm, ConnOpener);
1b76e6c1 32bool Comm::ConnOpener::doneAll() const STUB_RETVAL(false)
a016163c
AJ
33void Comm::ConnOpener::start() STUB
34void Comm::ConnOpener::swanSong() STUB
35Comm::ConnOpener::ConnOpener(Comm::ConnectionPointer &, AsyncCall::Pointer &, time_t) : AsyncJob("STUB Comm::ConnOpener") STUB
f53969cc
SM
36 Comm::ConnOpener::~ConnOpener() STUB
37 void Comm::ConnOpener::setHost(const char *) STUB
38 const char * Comm::ConnOpener::getHost() const STUB_RETVAL(NULL)
1b76e6c1
AJ
39
40#include "comm/forward.h"
f53969cc 41 bool Comm::IsConnOpen(const Comm::ConnectionPointer &) STUB_RETVAL(false)
1b76e6c1
AJ
42
43#include "comm/IoCallback.h"
f53969cc
SM
44 void Comm::IoCallback::setCallback(iocb_type, AsyncCall::Pointer &, char *, FREE *, int) STUB
45 void Comm::IoCallback::selectOrQueueWrite() STUB
46 void Comm::IoCallback::cancel(const char *reason) STUB
47 void Comm::IoCallback::finish(Comm::Flag code, int xerrn) STUB
48 Comm::CbEntry *Comm::iocb_table = NULL;
1b76e6c1
AJ
49void Comm::CallbackTableInit() STUB
50void Comm::CallbackTableDestruct() STUB
51
52#include "comm/Loops.h"
53void Comm::SelectLoopInit(void) STUB
54void Comm::SetSelect(int, unsigned int, PF *, void *, time_t) STUB
55void Comm::ResetSelect(int) STUB
4ee57cbe 56Comm::Flag Comm::DoSelect(int) STUB_RETVAL(Comm::COMM_ERROR)
1b76e6c1
AJ
57void Comm::QuickPollRequired(void) STUB
58
7e66d5e2
AJ
59#include "comm/Read.h"
60void Comm::Read(const Comm::ConnectionPointer &conn, AsyncCall::Pointer &callback) STUB
61bool Comm::MonitorsRead(int fd) STUB_RETVAL(false)
4ee57cbe 62Comm::Flag Comm::ReadNow(CommIoCbParams &params, SBuf &buf) STUB_RETVAL(Comm::COMM_ERROR)
7e66d5e2
AJ
63void Comm::ReadCancel(int fd, AsyncCall::Pointer &callback) STUB
64//void Comm::HandleRead(int, void*) STUB
65
66void comm_read_base(const Comm::ConnectionPointer &conn, char *buf, int len, AsyncCall::Pointer &callback) STUB
67void comm_read_cancel(int fd, IOCB *callback, void *data) STUB
68
1b76e6c1
AJ
69#include "comm/TcpAcceptor.h"
70//Comm::TcpAcceptor(const Comm::ConnectionPointer &conn, const char *note, const Subscription::Pointer &aSub) STUB
71void Comm::TcpAcceptor::subscribe(const Subscription::Pointer &aSub) STUB
72void Comm::TcpAcceptor::unsubscribe(const char *) STUB
73void Comm::TcpAcceptor::acceptNext() STUB
c8407295 74void Comm::TcpAcceptor::notify(const Comm::Flag flag, const Comm::ConnectionPointer &) const STUB
1b76e6c1
AJ
75
76#include "comm/Write.h"
77void Comm::Write(const Comm::ConnectionPointer &, const char *, int, AsyncCall::Pointer &, FREE *) STUB
78void Comm::Write(const Comm::ConnectionPointer &conn, MemBuf *mb, AsyncCall::Pointer &callback) STUB
79void Comm::WriteCancel(const Comm::ConnectionPointer &conn, const char *reason) STUB
0bf57f33 80/*PF*/ void Comm::HandleWrite(int, void*) STUB
f53969cc 81