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
17namespace Mgr
18{
19
22void RegisterAction(char const * action, char const * desc,
23 OBJH * handler,
25
27inline void
28RegisterAction(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),
36}
37
40void RegisterAction(char const * action, char const * desc,
43
45inline void
46RegisterAction(const char * const action, const char * const desc,
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),
54}
55
56} // namespace Mgr
57
58#endif /* SQUID_SRC_MGR_REGISTRATION_H */
59
void OBJH(StoreEntry *)
Definition forward.h:44
Cache Manager API.
Definition Action.h:21
Protected
whether default cachemgr_passwd configuration denies the Action
ActionPointer() ClassActionCreationHandler(const CommandPointer &cmd)
Definition forward.h:36
Atomic
whether Action::dump() writes the entire report before returning
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)