]> git.ipfire.org Git - thirdparty/squid.git/blame - src/mgr/Registration.cc
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / mgr / Registration.cc
CommitLineData
8822ebee 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
8822ebee 3 *
bbc27441
AJ
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.
8822ebee
AR
7 */
8
bbc27441
AJ
9/* DEBUG: section 16 Cache Manager API */
10
f7f3304a 11#include "squid.h"
8822ebee
AR
12#include "CacheManager.h"
13#include "mgr/Registration.h"
14
15void
16Mgr::RegisterAction(char const * action, char const * desc,
d9fc6862
A
17 OBJH * handler,
18 int pw_req_flag, int atomic)
8822ebee
AR
19{
20 CacheManager::GetInstance()->registerProfile(action, desc, handler,
d9fc6862 21 pw_req_flag, atomic);
8822ebee
AR
22}
23
24void
25Mgr::RegisterAction(char const * action, char const * desc,
d9fc6862
A
26 ClassActionCreationHandler *handler,
27 int pw_req_flag, int atomic)
8822ebee
AR
28{
29 CacheManager::GetInstance()->registerProfile(action, desc, handler,
d9fc6862 30 pw_req_flag, atomic);
8822ebee 31}
f53969cc 32