]> git.ipfire.org Git - thirdparty/squid.git/blame - src/tests/stub_liblog.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / tests / stub_liblog.cc
CommitLineData
7b2b7ef6 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
7b2b7ef6
AJ
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
da6dbcd1
EB
15// XXX: these should be moved to a log/ *.h file
16#include "AccessLogEntry.h"
17/*
18AccessLogEntry::~AccessLogEntry() {STUB}
19void AccessLogEntry::getLogClientIp(char *, size_t) const STUB
20SBuf AccessLogEntry::getLogMethod() const STUB_RETVAL(SBuf())
21#if USE_OPENSSL
22AccessLogEntry::SslDetails::SslDetails() {STUB}
23#endif
24*/
25void accessLogLogTo(CustomLog *, AccessLogEntry::Pointer &, ACLChecklist *) STUB
26void accessLogLog(AccessLogEntry::Pointer &, ACLChecklist *) STUB
27void accessLogRotate(void) STUB
28void accessLogClose(void) STUB
29void accessLogInit(void) STUB
30const char *accessLogTime(time_t) STUB_RETVAL(nullptr)
31
7b2b7ef6
AJ
32#include "log/access_log.h"
33void fvdbCountVia(const char *) STUB
34void fvdbCountForw(const char *) STUB
35#if HEADERS_LOG
36void headersLog(int, int, const HttpRequestMethod &, void *) STUB
37#endif
38
39#include "log/Config.h"
40namespace Log
41{
42void LogConfig::parseFormats() STUB
43LogConfig TheConfig;
44}
45
46//#include "log/CustomLog.h"
47#include "log/File.h"
48CBDATA_CLASS_INIT(Logfile);
49Logfile::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
56Logfile *logfileOpen(const char *, size_t, int) STUB_RETVAL(nullptr)
57void logfileClose(Logfile *) STUB
58void logfileRotate(Logfile *, int16_t) STUB
59void logfileWrite(Logfile *, char *, size_t) STUB
60void logfileFlush(Logfile *) STUB
61void logfilePrintf(Logfile *, const char *, ...) STUB
62void logfileLineStart(Logfile *) STUB
63void logfileLineEnd(Logfile *) STUB
64
65#include "log/Formats.h"
66namespace Log
67{
68namespace Format
69{
70void SquidNative(const AccessLogEntryPointer &, Logfile *) STUB
71void SquidIcap(const AccessLogEntryPointer &, Logfile *) STUB
72void SquidUserAgent(const AccessLogEntryPointer &, Logfile *) STUB
73void SquidReferer(const AccessLogEntryPointer &, Logfile *) STUB
74void SquidCustom(const AccessLogEntryPointer &, CustomLog *) STUB
75void HttpdCommon(const AccessLogEntryPointer &, Logfile *) STUB
76void HttpdCombined(const AccessLogEntryPointer &, Logfile *) STUB
77}
78}
79
80#include "log/ModDaemon.h"
81int logfile_mod_daemon_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
82
83#include "log/ModStdio.h"
84int logfile_mod_stdio_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
85
86#include "log/ModSyslog.h"
87int logfile_mod_syslog_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
88
89#include "log/ModUdp.h"
90int logfile_mod_udp_open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
91
92#include "log/TcpLogger.h"
93namespace Log
94{
95CBDATA_CLASS_INIT(TcpLogger);
96int TcpLogger::Open(Logfile *, const char *, size_t, int) STUB_RETVAL(0)
97
98/*
99protected:
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