]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_liblog.cc
b4a0b16813a6b4452aebcdadff92a4fa6b881f43
2 * Copyright (C) 1996-2021 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.
13 #define STUB_API "log/liblog.la"
14 #include "tests/STUB.h"
16 // XXX: these should be moved to a log/ *.h file
17 #include "AccessLogEntry.h"
19 AccessLogEntry::~AccessLogEntry() {STUB}
20 void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
21 SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
23 AccessLogEntry::SslDetails::SslDetails() {STUB}
26 void accessLogLogTo(CustomLog
*, AccessLogEntry::Pointer
&, ACLChecklist
*) STUB
27 void accessLogLog(AccessLogEntry::Pointer
&, ACLChecklist
*) STUB
28 void accessLogRotate(void) STUB
29 void accessLogClose(void) STUB
30 void accessLogInit(void) STUB
31 const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
33 #include "log/access_log.h"
34 void fvdbCountVia(const SBuf
&) STUB
36 void headersLog(int, int, const HttpRequestMethod
&, void *) STUB
39 #include "log/Config.h"
42 void LogConfig::parseFormats() STUB
46 #include "log/FormattedLog.h"
47 bool FormattedLog::usesDaemon() const STUB_RETVAL(false)
50 CBDATA_CLASS_INIT(Logfile
);
51 Logfile::Logfile(const char *) {STUB
}
52 //void Logfile::f_linestart(Logfile *) STUB
53 //void Logfile::f_linewrite(Logfile *, const char *, size_t) STUB
54 //void Logfile::f_lineend(Logfile *) STUB
55 //void Logfile::f_flush(Logfile *) STUB
56 //void Logfile::f_rotate(Logfile *, const int16_t) STUB
57 //void Logfile::f_close(Logfile *) STUB
58 Logfile
*logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
59 void logfileClose(Logfile
*) STUB
60 void logfileRotate(Logfile
*, int16_t) STUB
61 void logfileWrite(Logfile
*, const char *, size_t) STUB
62 void logfileFlush(Logfile
*) STUB
63 void logfilePrintf(Logfile
*, const char *, ...) STUB
64 void logfileLineStart(Logfile
*) STUB
65 void logfileLineEnd(Logfile
*) STUB
67 #include "log/Formats.h"
72 void SquidNative(const AccessLogEntryPointer
&, Logfile
*) STUB
73 void SquidIcap(const AccessLogEntryPointer
&, Logfile
*) STUB
74 void SquidUserAgent(const AccessLogEntryPointer
&, Logfile
*) STUB
75 void SquidReferer(const AccessLogEntryPointer
&, Logfile
*) STUB
76 void SquidCustom(const AccessLogEntryPointer
&, CustomLog
*) STUB
77 void HttpdCommon(const AccessLogEntryPointer
&, Logfile
*) STUB
78 void HttpdCombined(const AccessLogEntryPointer
&, Logfile
*) STUB
82 #include "log/ModDaemon.h"
83 int logfile_mod_daemon_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
85 #include "log/ModStdio.h"
86 int logfile_mod_stdio_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
88 #include "log/ModSyslog.h"
89 int logfile_mod_syslog_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
91 #include "log/ModUdp.h"
92 int logfile_mod_udp_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
94 #include "log/TcpLogger.h"
97 CBDATA_CLASS_INIT(TcpLogger
);
98 int TcpLogger::Open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
102 TcpLogger(size_t, bool, Ip::Address);
103 virtual ~TcpLogger();
104 void endGracefully();
105 void logRecord(const char *buf, size_t len);
107 virtual void start() STUB
108 virtual bool doneAll() const STUB_RETVAL(true)
109 virtual void swanSong() STUB