Kea: hooks.h Source File

| Kea 3.2.0-git

hooks.h
Go to the documentation of this file.
1// Copyright (C) 2013-2026 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
13namespace {
14
15// Version 30200 of the hooks framework, set for Kea 3.2.0
16const int KEA_HOOKS_VERSION = 30200;
17
18// Names of the framework functions.
19const char* const LOAD_FUNCTION_NAME = "load";
20const char* const UNLOAD_FUNCTION_NAME = "unload";
21const char* const VERSION_FUNCTION_NAME = "version";
22const char* const MULTI_THREADING_COMPATIBLE_FUNCTION_NAME =
23 "multi_threading_compatible";
24
25// Typedefs for pointers to the framework functions.
26typedef int (*version_function_ptr)();
27typedef int (*load_function_ptr)(isc::hooks::LibraryHandle&);
28typedef int (*unload_function_ptr)();
29typedef int (*multi_threading_compatible_function_ptr)();
30
31} // Anonymous namespace
32
33namespace isc {
34namespace hooks {
35
65
66void hooksStaticLinkInit();
67
68} // namespace hooks
69} // namespace isc
70
71#endif // HOOKS_H
callout_handle.h
isc::hooks::LibraryHandle
Library handle.
Definition library_handle.h:60
library_handle.h
isc::hooks
Definition callout_handle.cc:21
isc::hooks::hooksStaticLinkInit
void hooksStaticLinkInit()
User-Library Initialization for Statically-Linked Kea.
Definition library_manager.cc:434
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18