diff options
Diffstat (limited to 'src/lib/dhcpsrv/tests/test_get_callout_handle.h')
-rw-r--r-- | src/lib/dhcpsrv/tests/test_get_callout_handle.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/dhcpsrv/tests/test_get_callout_handle.h b/src/lib/dhcpsrv/tests/test_get_callout_handle.h new file mode 100644 index 0000000..c6f4a40 --- /dev/null +++ b/src/lib/dhcpsrv/tests/test_get_callout_handle.h @@ -0,0 +1,38 @@ +// Copyright (C) 2013-2017 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#ifndef TEST_GET_CALLOUT_HANDLE_H +#define TEST_GET_CALLOUT_HANDLE_H + +#include <dhcp/pkt6.h> +#include <hooks/callout_handle.h> + +namespace isc { +namespace dhcp { +namespace test { + +/// @file +/// @brief Get Callout Handle +/// +/// This function is a shall around getCalloutHandle. It's purpose is to +/// ensure that the getCalloutHandle() template function is referred to by +/// two separate compilation units, and so test that data stored in one unit +/// can be accessed by another. (This should be the case, but some compilers +/// maybe be odd when it comes to template instantiation.) +/// +/// @param pktptr Pointer to a Pkt6 object. +/// +/// @return CalloutHandlePtr pointing to CalloutHandle associated with the +/// Pkt6 object. +isc::hooks::CalloutHandlePtr +testGetCalloutHandle(const Pkt6Ptr& pktptr); + +} // namespace test +} // namespace dhcp +} // namespace isc + + +#endif // TEST_GET_CALLOUT_HANDLE_H |