Squid Web Cache
master
Loading...
Searching...
No Matches
stub_event.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 "
event.h
"
11
12
#define STUB_API "event.cc"
13
#include "
tests/STUB.h
"
14
15
void
eventAdd
(
const
char
*,
EVH
*,
void
*,
double
,
int
,
bool
)
STUB_NOP
16
void
eventAddIsh
(
const
char
*,
EVH
*,
void
*,
double
,
int
)
STUB
17
void
eventDelete
(
EVH
*,
void
*)
STUB
18
void
eventInit
(
void
)
STUB
19
int
eventFind
(
EVH
*,
void
*)
STUB_RETVAL
(-1)
20
21
// ev_entry::ev_entry(char const * name, EVH * func, void *arg, double when, int weight, bool cbdata) STUB
22
// ev_entry::~ev_entry() STUB
23
// EVH *func;
24
25
EventScheduler
::
EventScheduler
()
STUB
26
EventScheduler
::~
EventScheduler
()
STUB
27
void
EventScheduler
::cancel(
EVH
*,
void
*)
STUB
28
int
EventScheduler
::timeRemaining() const
STUB_RETVAL
(1)
29
void
EventScheduler
::clean()
STUB
30
void
EventScheduler
::dump(
Packable
*)
STUB
31
bool
EventScheduler
::find(
EVH
*,
void
*)
STUB_RETVAL
(false)
32
void
EventScheduler
::schedule(const
char
*,
EVH
*,
void
*,
double
,
int
,
bool
)
STUB
33
int
EventScheduler
::checkEvents(
int
)
STUB_RETVAL
(-1)
34
EventScheduler
*
EventScheduler
::GetInstance()
STUB_RETVAL
(
nullptr
)
35
STUB.h
STUB
#define STUB
macro to stub a void function.
Definition
STUB.h:34
STUB_NOP
#define STUB_NOP
Definition
STUB.h:38
STUB_RETVAL
#define STUB_RETVAL(x)
Definition
STUB.h:42
EventScheduler
Definition
event.h:46
Packable
Definition
Packable.h:53
eventAddIsh
void eventAddIsh(const char *name, EVH *func, void *arg, double delta_ish, int weight)
Definition
event.cc:114
eventFind
int eventFind(EVH *func, void *arg)
Definition
event.cc:145
eventInit
void eventInit(void)
Definition
event.cc:133
event.h
EVH
void EVH(void *)
Definition
event.h:18
squid.h
eventAdd
void eventAdd(const char *, EVH *, void *, double, int, bool) STUB_NOP void eventAddIsh(const char *
eventDelete
void EVH void int STUB void eventDelete(EVH *, void *) STUB void eventInit(void) STUB int eventFind(EVH *
Definition
event.cc:127
squid
src
tests
stub_event.cc
Generated by
1.9.8