]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/stub_client_db.cc
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / tests / stub_client_db.cc
index 6695b3e324bf6ca489d78203321998a76af8faa7..fd180d58e4dc40c077296b29ee3995cdf3561ff6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -7,14 +7,11 @@
  */
 
 #include "squid.h"
-#include "client_db.h"
 
 #define STUB_API "client_db.cc"
 #include "tests/STUB.h"
 
-class ClientInfo;
-
-void clientdbInit(void) STUB
+#include "client_db.h"
 void clientdbUpdate(const Ip::Address &, const LogTags &, AnyP::ProtocolType, size_t) STUB
 int clientdbCutoffDenied(const Ip::Address &) STUB_RETVAL(-1)
 void clientdbDump(StoreEntry *) STUB
@@ -22,8 +19,10 @@ void clientdbFreeMemory(void) STUB
 int clientdbEstablished(const Ip::Address &, int) STUB_RETVAL(-1)
 #if USE_DELAY_POOLS
 void clientdbSetWriteLimiter(ClientInfo * info, const int writeSpeedLimit,const double initialBurst,const double highWatermark) STUB
-ClientInfo *clientdbGetInfo(const Ip::Address &addr) STUB_RETVAL(NULL)
+ClientInfo *clientdbGetInfo(const Ip::Address &addr) STUB_RETVAL(nullptr)
+#endif
+#if SQUID_SNMP
+Ip::Address *client_entry(Ip::Address *) STUB_RETVAL(nullptr)
+variable_list *snmp_meshCtblFn(variable_list *, snint *) STUB_RETVAL(nullptr)
 #endif
-void clientOpenListenSockets(void) STUB
-void clientHttpConnectionsClose(void) STUB