]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_comm.cc
Activate extra compiler checks (#667)
[thirdparty/squid.git] / src / tests / stub_comm.cc
CommitLineData
4e0938ef 1/*
f70aedc4 2 * Copyright (C) 1996-2021 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"
8b082ed9 10#include "comm.h"
40d34a62 11#include "comm/Connection.h"
d841c88d 12#include "comm/Loops.h"
8b082ed9 13// #include "comm/Read.h"
c8f4eac4 14#include "fde.h"
15
081edc2d
AJ
16#define STUB_API "comm.cc"
17#include "tests/STUB.h"
c8f4eac4 18
6043e368
AR
19#include <ostream>
20
8b082ed9
FC
21// void comm_read(const Comm::ConnectionPointer &, char *, int, IOCB *, void *) STUB
22// void comm_read(const Comm::ConnectionPointer &, char*, int, AsyncCall::Pointer &) STUB
1515a285 23
c8f4eac4 24/* should be in stub_CommRead */
25#include "CommRead.h"
9dca980d 26CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Pointer &) STUB
081edc2d
AJ
27CommRead::CommRead() STUB
28DeferredReadManager::~DeferredReadManager() STUB
29DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB
8b082ed9
FC
30void DeferredReadManager::delayRead(DeferredRead const &) STUB
31void DeferredReadManager::kickReads(int const) STUB
081edc2d 32
36378e12
AJ
33#include "comm.h"
34bool comm_iocallbackpending(void) STUB_RETVAL(false)
8b082ed9
FC
35int commSetNonBlocking(int) STUB_RETVAL(Comm::COMM_ERROR)
36int commUnsetNonBlocking(int) STUB_RETVAL(-1)
37void commSetCloseOnExec(int) STUB_NOP
38void _comm_close(int, char const *, int) STUB
39void old_comm_reset_close(int) STUB
40void comm_reset_close(const Comm::ConnectionPointer &) STUB
41int comm_connect_addr(int, const Ip::Address &) STUB_RETVAL(-1)
42
36378e12
AJ
43void comm_init(void) STUB
44void comm_exit(void) STUB
8b082ed9
FC
45int comm_open(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
46int comm_open_uds(int, int, struct sockaddr_un*, int) STUB_RETVAL(-1)
47void comm_import_opened(const Comm::ConnectionPointer &, const char *, struct addrinfo *) STUB
48int comm_open_listener(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
49void comm_open_listener(int, int, Comm::ConnectionPointer &, const char *) STUB
50// int comm_openex(int, int, Ip::Address &, int, tos_t, nfmark_t, const char *) STUB_RETVAL(-1)
51unsigned short comm_local_port(int) STUB_RETVAL(0)
52int comm_udp_sendto(int, const Ip::Address &, const void *, int) STUB_RETVAL(-1)
53void commCallCloseHandlers(int) STUB
54void commUnsetFdTimeout(int) STUB
55// int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
56int commSetConnTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer &) STUB_RETVAL(-1)
57int commUnsetConnTimeout(const Comm::ConnectionPointer &) STUB_RETVAL(-1)
58int ignoreErrno(int) STUB_RETVAL(-1)
36378e12
AJ
59void commCloseAllSockets(void) STUB
60void checkTimeouts(void) STUB
8b082ed9
FC
61AsyncCall::Pointer comm_add_close_handler(int, CLCB *, void *) STUB
62void comm_add_close_handler(int, AsyncCall::Pointer &) STUB
63void comm_remove_close_handler(int, CLCB *, void *) STUB
64void comm_remove_close_handler(int, AsyncCall::Pointer &)STUB
65int comm_udp_recvfrom(int, void *, size_t, int, Ip::Address &) STUB_RETVAL(-1)
66int comm_udp_recv(int, void *, size_t, int) STUB_RETVAL(-1)
67ssize_t comm_udp_send(int, const void *, size_t, int) STUB_RETVAL(-1)
36378e12 68bool comm_has_incomplete_write(int) STUB_RETVAL(false)
8b082ed9
FC
69void commStartHalfClosedMonitor(int) STUB
70bool commHasHalfClosedMonitor(int) STUB_RETVAL(false)
71int CommSelectEngine::checkEvents(int) STUB_RETVAL(0)
d22511f9 72