]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_liblog.cc
Merged from v5 r15006
[thirdparty/squid.git] / src / tests / stub_liblog.cc
1 /*
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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
9 #include "squid.h"
10 #include "fde.h"
11
12 #define STUB_API "log/liblog.la"
13 #include "tests/STUB.h"
14
15 // XXX: these should be moved to a log/ *.h file
16 #include "AccessLogEntry.h"
17 /*
18 AccessLogEntry::~AccessLogEntry() {STUB}
19 void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
20 SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
21 #if USE_OPENSSL
22 AccessLogEntry::SslDetails::SslDetails() {STUB}
23 #endif
24 */
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)
31
32 #include "log/access_log.h"
33 void fvdbCountVia(const char *) STUB
34 void fvdbCountForw(const char *) STUB
35 #if HEADERS_LOG
36 void headersLog(int, int, const HttpRequestMethod &, void *) STUB
37 #endif
38
39 #include "log/Config.h"
40 namespace Log
41 {
42 void LogConfig::parseFormats() STUB
43 LogConfig TheConfig;
44 }
45
46 //#include "log/CustomLog.h"
47 #include "log/File.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
64
65 #include "log/Formats.h"
66 namespace Log
67 {
68 namespace Format
69 {
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
77 }
78 }
79
80 #include "log/ModDaemon.h"
81 int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
82
83 #include "log/ModStdio.h"
84 int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
85
86 #include "log/ModSyslog.h"
87 int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
88
89 #include "log/ModUdp.h"
90 int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
91
92 #include "log/TcpLogger.h"
93 namespace Log
94 {
95 CBDATA_CLASS_INIT(TcpLogger);
96 int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
97
98 /*
99 protected:
100 TcpLogger(size_t, bool, Ip::Address);
101 virtual ~TcpLogger();
102 void endGracefully();
103 void logRecord(const char *buf, size_t len);
104 void flush();
105 virtual void start() STUB
106 virtual bool doneAll() const STUB_RETVAL(true)
107 virtual void swanSong() STUB
108 */
109 }
110