Kea
1.5.0
callout_handle_associate.cc
Go to the documentation of this file.
1
// Copyright (C) 2018 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 <
hooks/callout_handle_associate.h
>
8
#include <
hooks/hooks_manager.h
>
9
10
namespace
isc
{
11
namespace
hooks {
12
13
CalloutHandleAssociate::CalloutHandleAssociate
()
14
: callout_handle_() {
15
}
16
17
CalloutHandlePtr
18
CalloutHandleAssociate::getCalloutHandle
() {
19
if
(!
callout_handle_
) {
20
callout_handle_
=
HooksManager::createCalloutHandle
();
21
}
22
23
return
(
callout_handle_
);
24
}
25
26
}
// end of namespace isc::hooks
27
}
// end of namespace isc
hooks_manager.h
callout_handle_associate.h
isc::hooks::CalloutHandleAssociate::getCalloutHandle
CalloutHandlePtr getCalloutHandle()
Returns callout handle.
Definition:
callout_handle_associate.cc:18
isc::hooks::CalloutHandleAssociate::CalloutHandleAssociate
CalloutHandleAssociate()
Constructor.
Definition:
callout_handle_associate.cc:13
isc::hooks::CalloutHandleAssociate::callout_handle_
CalloutHandlePtr callout_handle_
Callout handle stored.
Definition:
callout_handle_associate.h:54
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
isc::hooks::HooksManager::createCalloutHandle
static boost::shared_ptr< CalloutHandle > createCalloutHandle()
Return callout handle.
Definition:
hooks_manager.cc:150
isc::hooks::CalloutHandlePtr
boost::shared_ptr< CalloutHandle > CalloutHandlePtr
A shared pointer to a CalloutHandle object.
Definition:
callout_handle.h:416
src
lib
hooks
callout_handle_associate.cc
Generated on Wed Jan 23 2019 23:03:25 for Kea by
1.8.15