Squid Web Cache
master
Loading...
Searching...
No Matches
stub_Instance.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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 "
Instance.h
"
11
#include "
sbuf/SBuf.h
"
12
13
#define STUB_API "Instance.cc"
14
#include "
tests/STUB.h
"
15
16
void
Instance::ThrowIfAlreadyRunning
()
STUB
17
void
Instance
::WriteOurPid()
STUB
18
pid_t
Instance
::Other()
STUB_RETVAL
({})
19
SBuf
Instance::NamePrefix
(
const
char
*,
const
char
*)
STUB_RETVAL_NOP
(
SBuf
(
"squid-0"
))
20
Instance.h
SBuf.h
STUB.h
STUB
#define STUB
macro to stub a void function.
Definition
STUB.h:34
STUB_RETVAL
#define STUB_RETVAL(x)
Definition
STUB.h:42
STUB_RETVAL_NOP
#define STUB_RETVAL_NOP(x)
Definition
STUB.h:46
SBuf
Definition
SBuf.h:94
Instance
code related to Squid Instance and PID file management
Definition
Instance.h:19
Instance::ThrowIfAlreadyRunning
void ThrowIfAlreadyRunning()
Definition
Instance.cc:140
Instance::NamePrefix
SBuf NamePrefix(const char *head, const char *tail=nullptr)
Definition
Instance.cc:253
squid.h
squid
src
tests
stub_Instance.cc
Generated by
1.9.8