Kea
2.7.5
callout_handle_associate.cc
Go to the documentation of this file.
1
// Copyright (C) 2018-2022 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#include <config.h>
8
9
#include <
hooks/callout_handle_associate.h
>
10
#include <
hooks/hooks_manager.h
>
11
12
namespace
isc
{
13
namespace
hooks {
14
15
CalloutHandleAssociate::CalloutHandleAssociate
()
16
: callout_handle_() {
17
}
18
19
CalloutHandlePtr
20
CalloutHandleAssociate::getCalloutHandle
() {
21
if
(!
callout_handle_
) {
22
callout_handle_
=
HooksManager::createCalloutHandle
();
23
}
24
25
return
(
callout_handle_
);
26
}
27
28
void
29
CalloutHandleAssociate::resetCalloutHandle
() {
30
callout_handle_
.reset();
31
}
32
33
}
// end of namespace isc::hooks
34
}
// end of namespace isc
callout_handle_associate.h
isc::hooks::CalloutHandleAssociate::CalloutHandleAssociate
CalloutHandleAssociate()
Constructor.
Definition
callout_handle_associate.cc:15
isc::hooks::CalloutHandleAssociate::resetCalloutHandle
void resetCalloutHandle()
Reset callout handle.
Definition
callout_handle_associate.cc:29
isc::hooks::CalloutHandleAssociate::getCalloutHandle
CalloutHandlePtr getCalloutHandle()
Returns callout handle.
Definition
callout_handle_associate.cc:20
isc::hooks::CalloutHandleAssociate::callout_handle_
CalloutHandlePtr callout_handle_
Callout handle stored.
Definition
callout_handle_associate.h:57
isc::hooks::HooksManager::createCalloutHandle
static boost::shared_ptr< CalloutHandle > createCalloutHandle()
Return callout handle.
Definition
hooks_manager.cc:203
hooks_manager.h
isc::hooks::CalloutHandlePtr
boost::shared_ptr< CalloutHandle > CalloutHandlePtr
A shared pointer to a CalloutHandle object.
Definition
callout_handle.h:470
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
hooks
callout_handle_associate.cc
Generated on Wed Nov 20 2024 11:53:25 for Kea by
1.10.0