]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Registration.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / mgr / Registration.cc
1 /*
2 * Copyright (C) 1996-2014 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,
26 ClassActionCreationHandler *handler,
27 int pw_req_flag, int atomic)
28 {
29 CacheManager::GetInstance()->registerProfile(action, desc, handler,
30 pw_req_flag, atomic);
31 }
32