Registration.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 #include "squid.h"
12 #include "CacheManager.h"
13 #include "mgr/Registration.h"
14 
15 void
16 Mgr::RegisterAction(char const * action, char const * desc,
17  OBJH * handler,
18  int pw_req_flag, int atomic)
19 {
20  CacheManager::GetInstance()->registerProfile(action, desc, handler,
21  pw_req_flag, atomic);
22 }
23 
24 void
25 Mgr::RegisterAction(char const * action, char const * desc,
27  int pw_req_flag, int atomic)
28 {
29  CacheManager::GetInstance()->registerProfile(action, desc, handler,
30  pw_req_flag, atomic);
31 }
32 
void OBJH(StoreEntry *)
Definition: forward.h:44
static CacheManager * GetInstance()
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
static void handler(int signo)
Definition: purge.cc:860
bool action(int fd, size_t metasize, const char *fn, const char *url, const SquidMetaList &meta)
Definition: purge.cc:311
void registerProfile(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
ActionPointer( ClassActionCreationHandler)(const CommandPointer &cmd)
Definition: forward.h:36

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors