Squid Web Cache
master
Loading...
Searching...
No Matches
Registration.h
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
/* DEBUG: section 16 Cache Manager API */
10
11
#ifndef SQUID_SRC_MGR_REGISTRATION_H
12
#define SQUID_SRC_MGR_REGISTRATION_H
13
14
#include "
mgr/ActionFeatures.h
"
15
#include "
mgr/forward.h
"
16
17
namespace
Mgr
18
{
19
22
void
RegisterAction
(
char
const
* action,
char
const
* desc,
23
OBJH
* handler,
24
Protected
,
Atomic
,
Format
);
25
27
inline
void
28
RegisterAction
(
const
char
*
const
action,
const
char
*
const
desc,
29
OBJH
* handler,
30
int
pw_req_flag,
int
atomic)
31
{
32
return
RegisterAction
(action, desc, handler,
33
(pw_req_flag ?
Protected::yes
:
Protected::no
),
34
(atomic ?
Atomic::yes
:
Atomic::no
),
35
Format::informal
);
36
}
37
40
void
RegisterAction
(
char
const
* action,
char
const
* desc,
41
ClassActionCreationHandler
*handler,
42
Protected
,
Atomic
,
Format
);
43
45
inline
void
46
RegisterAction
(
const
char
*
const
action,
const
char
*
const
desc,
47
ClassActionCreationHandler
*handler,
48
int
pw_req_flag,
int
atomic)
49
{
50
return
RegisterAction
(action, desc, handler,
51
(pw_req_flag ?
Protected::yes
:
Protected::no
),
52
(atomic ?
Atomic::yes
:
Atomic::no
),
53
Format::informal
);
54
}
55
56
}
// namespace Mgr
57
58
#endif
/* SQUID_SRC_MGR_REGISTRATION_H */
59
ActionFeatures.h
forward.h
OBJH
void OBJH(StoreEntry *)
Definition
forward.h:44
Format
Definition
SchemeConfig.h:28
Mgr
Cache Manager API.
Definition
Action.h:21
Mgr::Format::informal
@ informal
Mgr::Protected
Protected
whether default cachemgr_passwd configuration denies the Action
Definition
ActionFeatures.h:24
Mgr::Protected::no
@ no
Mgr::Protected::yes
@ yes
Mgr::ClassActionCreationHandler
ActionPointer() ClassActionCreationHandler(const CommandPointer &cmd)
Definition
forward.h:36
Mgr::Atomic
Atomic
whether Action::dump() writes the entire report before returning
Definition
ActionFeatures.h:27
Mgr::Atomic::no
@ no
Mgr::Atomic::yes
@ yes
Mgr::RegisterAction
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
Definition
Registration.cc:54
squid
src
mgr
Registration.h
Generated by
1.9.8