Registration.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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,
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),
36 }
37 
40 void RegisterAction(char const * action, char const * desc,
43 
45 inline void
46 RegisterAction(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 
ActionPointer() ClassActionCreationHandler(const CommandPointer &cmd)
Definition: forward.h:36
Protected
whether default cachemgr_passwd configuration denies the Action
void OBJH(StoreEntry *)
Definition: forward.h:44
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
Definition: Registration.cc:54
Atomic
whether Action::dump() writes the entire report before returning
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous