Kea  1.9.9-git
callout_handle_store.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2018,2021 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 #ifndef CALLOUT_HANDLE_STORE_H
8 #define CALLOUT_HANDLE_STORE_H
9 
10 #include <hooks/hooks_manager.h>
11 #include <hooks/callout_handle.h>
12 #include <map>
13 #include <set>
14 
15 namespace isc {
16 namespace dhcp {
17 
46 template <typename T>
48 
49  if (pktptr) {
50  return (pktptr->getCalloutHandle());
51 
52  }
53 
55 }
56 
57 } // namespace dhcp
58 } // namespace isc
59 
60 #endif // CALLOUT_HANDLE_STORE_H
Defines the logger used by the top-level component of kea-dhcp-ddns.
boost::shared_ptr< CalloutHandle > CalloutHandlePtr
A shared pointer to a CalloutHandle object.
isc::hooks::CalloutHandlePtr getCalloutHandle(const T &pktptr)
CalloutHandle Store.