]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_liblog.cc
2 * Copyright (C) 1996-2016 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.
12 #define STUB_API "log/liblog.la"
13 #include "tests/STUB.h"
15 // XXX: these should be moved to a log/ *.h file
16 #include "AccessLogEntry.h"
18 AccessLogEntry::~AccessLogEntry() {STUB}
19 void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
20 SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
22 AccessLogEntry::SslDetails::SslDetails() {STUB}
25 void accessLogLogTo(CustomLog
*, AccessLogEntry::Pointer
&, ACLChecklist
*) STUB
26 void accessLogLog(AccessLogEntry::Pointer
&, ACLChecklist
*) STUB
27 void accessLogRotate(void) STUB
28 void accessLogClose(void) STUB
29 void accessLogInit(void) STUB
30 const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
32 #include "log/access_log.h"
33 void fvdbCountVia(const char *) STUB
34 void fvdbCountForw(const char *) STUB
36 void headersLog(int, int, const HttpRequestMethod
&, void *) STUB
39 #include "log/Config.h"
42 void LogConfig::parseFormats() STUB
46 //#include "log/CustomLog.h"
48 CBDATA_CLASS_INIT(Logfile
);
49 Logfile::Logfile(const char *) {STUB
}
50 //void Logfile::f_linestart(Logfile *) STUB
51 //void Logfile::f_linewrite(Logfile *, const char *, size_t) STUB
52 //void Logfile::f_lineend(Logfile *) STUB
53 //void Logfile::f_flush(Logfile *) STUB
54 //void Logfile::f_rotate(Logfile *, const int16_t) STUB
55 //void Logfile::f_close(Logfile *) STUB
56 Logfile
*logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
57 void logfileClose(Logfile
*) STUB
58 void logfileRotate(Logfile
*, int16_t) STUB
59 void logfileWrite(Logfile
*, char *, size_t) STUB
60 void logfileFlush(Logfile
*) STUB
61 void logfilePrintf(Logfile
*, const char *, ...) STUB
62 void logfileLineStart(Logfile
*) STUB
63 void logfileLineEnd(Logfile
*) STUB
65 #include "log/Formats.h"
70 void SquidNative(const AccessLogEntryPointer
&, Logfile
*) STUB
71 void SquidIcap(const AccessLogEntryPointer
&, Logfile
*) STUB
72 void SquidUserAgent(const AccessLogEntryPointer
&, Logfile
*) STUB
73 void SquidReferer(const AccessLogEntryPointer
&, Logfile
*) STUB
74 void SquidCustom(const AccessLogEntryPointer
&, CustomLog
*) STUB
75 void HttpdCommon(const AccessLogEntryPointer
&, Logfile
*) STUB
76 void HttpdCombined(const AccessLogEntryPointer
&, Logfile
*) STUB
80 #include "log/ModDaemon.h"
81 int logfile_mod_daemon_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
83 #include "log/ModStdio.h"
84 int logfile_mod_stdio_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
86 #include "log/ModSyslog.h"
87 int logfile_mod_syslog_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
89 #include "log/ModUdp.h"
90 int logfile_mod_udp_open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
92 #include "log/TcpLogger.h"
95 CBDATA_CLASS_INIT(TcpLogger
);
96 int TcpLogger::Open(Logfile
*, const char *, size_t, int) STUB_RETVAL(0)
100 TcpLogger(size_t, bool, Ip::Address);
101 virtual ~TcpLogger();
102 void endGracefully();
103 void logRecord(const char *buf, size_t len);
105 virtual void start() STUB
106 virtual bool doneAll() const STUB_RETVAL(true)
107 virtual void swanSong() STUB