Kea  1.5.0
hooks.h
Go to the documentation of this file.
1 // Copyright (C) 2013-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 #ifndef HOOKS_H
8 #define HOOKS_H
9 
10 #include <hooks/callout_handle.h>
11 #include <hooks/library_handle.h>
12 
13 namespace {
14 
15 // Version 8 of the hooks framework, set for Kea 1.5.0 beta2
16 const int KEA_HOOKS_VERSION = 8;
17 
18 // Names of the framework functions.
19 const char* const LOAD_FUNCTION_NAME = "load";
20 const char* const UNLOAD_FUNCTION_NAME = "unload";
21 const char* const VERSION_FUNCTION_NAME = "version";
22 
23 // Typedefs for pointers to the framework functions.
24 typedef int (*version_function_ptr)();
25 typedef int (*load_function_ptr)(isc::hooks::LibraryHandle&);
26 typedef int (*unload_function_ptr)();
27 
28 } // Anonymous namespace
29 
30 namespace isc {
31 namespace hooks {
32 
62 
63 void hooksStaticLinkInit();
64 
65 } // namespace hooks
66 } // namespace isc
67 
68 #endif // HOOKS_H
void hooksStaticLinkInit()
User-Library Initialization for Statically-Linked Kea.
Defines the logger used by the top-level component of kea-dhcp-ddns.