]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_comm.cc
Activate extra compiler checks (#667)
[thirdparty/squid.git] / src / tests / stub_comm.cc
index d2b15eb45661000dffdaaa2b3a969793a4c36e3b..607e4e88190fa19d4d4db76783378f59ddb41fc8 100644 (file)
@@ -7,8 +7,10 @@
  */
 
 #include "squid.h"
+#include "comm.h"
 #include "comm/Connection.h"
 #include "comm/Loops.h"
+// #include "comm/Read.h"
 #include "fde.h"
 
 #define STUB_API "comm.cc"
@@ -16,8 +18,8 @@
 
 #include <ostream>
 
-void comm_read(const Comm::ConnectionPointer &conn, char *buf, int size, IOCB *handler, void *handler_data) STUB
-void comm_read(const Comm::ConnectionPointer &conn, char*, int, AsyncCall::Pointer &callback) STUB
+// void comm_read(const Comm::ConnectionPointer &, char *, int, IOCB *, void *) STUB
+// void comm_read(const Comm::ConnectionPointer &, char*, int, AsyncCall::Pointer &) STUB
 
 /* should be in stub_CommRead */
 #include "CommRead.h"
@@ -25,45 +27,46 @@ CommRead::CommRead(const Comm::ConnectionPointer &, char *, int, AsyncCall::Poin
 CommRead::CommRead() STUB
 DeferredReadManager::~DeferredReadManager() STUB
 DeferredRead::DeferredRead(DeferrableRead *, void *, CommRead const &) STUB
-void DeferredReadManager::delayRead(DeferredRead const &aRead) STUB
-void DeferredReadManager::kickReads(int const count) STUB
+void DeferredReadManager::delayRead(DeferredRead const &) STUB
+void DeferredReadManager::kickReads(int const) STUB
 
 #include "comm.h"
 bool comm_iocallbackpending(void) STUB_RETVAL(false)
-int commSetNonBlocking(int fd) STUB_RETVAL(Comm::COMM_ERROR)
-int commUnsetNonBlocking(int fd) STUB_RETVAL(-1)
-void commSetCloseOnExec(int fd) STUB_NOP
-void _comm_close(int fd, char const *file, int line) STUB
-void old_comm_reset_close(int fd) STUB
-void comm_reset_close(const Comm::ConnectionPointer &conn) STUB
-int comm_connect_addr(int sock, const Ip::Address &addr) STUB_RETVAL(-1)
+int commSetNonBlocking(int) STUB_RETVAL(Comm::COMM_ERROR)
+int commUnsetNonBlocking(int) STUB_RETVAL(-1)
+void commSetCloseOnExec(int) STUB_NOP
+void _comm_close(int, char const *, int) STUB
+void old_comm_reset_close(int) STUB
+void comm_reset_close(const Comm::ConnectionPointer &) STUB
+int comm_connect_addr(int, const Ip::Address &) STUB_RETVAL(-1)
+
 void comm_init(void) STUB
 void comm_exit(void) STUB
-int comm_open(int, int, Ip::Address &, int, const char *note) STUB_RETVAL(-1)
-int comm_open_uds(int sock_type, int proto, struct sockaddr_un* addr, int flags) STUB_RETVAL(-1)
-void comm_import_opened(const Comm::ConnectionPointer &, const char *note, struct addrinfo *AI) STUB
-int comm_open_listener(int sock_type, int proto, Ip::Address &addr, int flags, const char *note) STUB_RETVAL(-1)
-void comm_open_listener(int sock_type, int proto, Comm::ConnectionPointer &conn, const char *note) STUB
-int comm_openex(int, int, Ip::Address &, int, tos_t tos, nfmark_t nfmark, const char *) STUB_RETVAL(-1)
-unsigned short comm_local_port(int fd) STUB_RETVAL(0)
-int comm_udp_sendto(int sock, const Ip::Address &to, const void *buf, int buflen) STUB_RETVAL(-1)
-void commCallCloseHandlers(int fd) STUB
-void commUnsetFdTimeout(int fd) STUB
-int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
-int commSetConnTimeout(const Comm::ConnectionPointer &conn, int seconds, AsyncCall::Pointer &callback) STUB_RETVAL(-1)
-int commUnsetConnTimeout(const Comm::ConnectionPointer &conn) STUB_RETVAL(-1)
-int ignoreErrno(int ierrno) STUB_RETVAL(-1)
+int comm_open(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
+int comm_open_uds(int, int, struct sockaddr_un*, int) STUB_RETVAL(-1)
+void comm_import_opened(const Comm::ConnectionPointer &, const char *, struct addrinfo *) STUB
+int comm_open_listener(int, int, Ip::Address &, int, const char *) STUB_RETVAL(-1)
+void comm_open_listener(int, int, Comm::ConnectionPointer &, const char *) STUB
+// int comm_openex(int, int, Ip::Address &, int, tos_t, nfmark_t, const char *) STUB_RETVAL(-1)
+unsigned short comm_local_port(int) STUB_RETVAL(0)
+int comm_udp_sendto(int, const Ip::Address &, const void *, int) STUB_RETVAL(-1)
+void commCallCloseHandlers(int) STUB
+void commUnsetFdTimeout(int) STUB
+// int commSetTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer&) STUB_RETVAL(-1)
+int commSetConnTimeout(const Comm::ConnectionPointer &, int, AsyncCall::Pointer &) STUB_RETVAL(-1)
+int commUnsetConnTimeout(const Comm::ConnectionPointer &) STUB_RETVAL(-1)
+int ignoreErrno(int) STUB_RETVAL(-1)
 void commCloseAllSockets(void) STUB
 void checkTimeouts(void) STUB
-AsyncCall::Pointer comm_add_close_handler(int fd, CLCB *, void *) STUB
-void comm_add_close_handler(int fd, AsyncCall::Pointer &) STUB
-void comm_remove_close_handler(int fd, CLCB *, void *) STUB
-void comm_remove_close_handler(int fd, AsyncCall::Pointer &)STUB
-int comm_udp_recvfrom(int fd, void *buf, size_t len, int flags, Ip::Address &from) STUB_RETVAL(-1)
-int comm_udp_recv(int fd, void *buf, size_t len, int flags) STUB_RETVAL(-1)
-ssize_t comm_udp_send(int s, const void *buf, size_t len, int flags) STUB_RETVAL(-1)
+AsyncCall::Pointer comm_add_close_handler(int, CLCB *, void *) STUB
+void comm_add_close_handler(int, AsyncCall::Pointer &) STUB
+void comm_remove_close_handler(int, CLCB *, void *) STUB
+void comm_remove_close_handler(int, AsyncCall::Pointer &)STUB
+int comm_udp_recvfrom(int, void *, size_t, int, Ip::Address &) STUB_RETVAL(-1)
+int comm_udp_recv(int, void *, size_t, int) STUB_RETVAL(-1)
+ssize_t comm_udp_send(int, const void *, size_t, int) STUB_RETVAL(-1)
 bool comm_has_incomplete_write(int) STUB_RETVAL(false)
-void commStartHalfClosedMonitor(int fd) STUB
-bool commHasHalfClosedMonitor(int fd) STUB_RETVAL(false)
-int CommSelectEngine::checkEvents(int timeout) STUB_RETVAL(0)
+void commStartHalfClosedMonitor(int) STUB
+bool commHasHalfClosedMonitor(int) STUB_RETVAL(false)
+int CommSelectEngine::checkEvents(int) STUB_RETVAL(0)