![]() |
Kea 3.0.0
|
Defines the load and unload hooks library functions. More...
#include <config.h>#include <cc/data.h>#include <dhcp/option.h>#include <dhcpsrv/cfgmgr.h>#include <eval/token.h>#include <eval/eval_context.h>#include <hooks/hooks.h>#include <process/daemon.h>#include <flex_id.h>#include <flex_id_log.h>Go to the source code of this file.
Functions | |
| int | load (LibraryHandle &handle) |
| Called by the Hooks library manager when the library is loaded. | |
| int | multi_threading_compatible () |
| This function is called to retrieve the multi-threading compatibility. | |
| int | unload () |
| Called by the Hooks library manager when the library is unloaded. | |
Defines the load and unload hooks library functions.
Definition in file flex_id/load_unload.cc.
| int load | ( | LibraryHandle & | handle | ) |
Called by the Hooks library manager when the library is loaded.
| handle | library handle passed for new library being loaded. |
Definition at line 60 of file flex_id/load_unload.cc.
References Element::boolean, isc::flex_id::clearConfiguration(), FLEX_ID_EXPRESSION_EMPTY, FLEX_ID_EXPRESSION_INVALID_JSON_TYPE, FLEX_ID_EXPRESSION_NOT_DEFINED, FLEX_ID_IGNORE_IAID_ENABLED, FLEX_ID_IGNORE_IAID_JSON_TYPE, FLEX_ID_LOAD_ERROR, isc::flex_id::flex_id_logger, FLEX_ID_REPLACE_CLIENT_ID_JSON_TYPE, isc::dhcp::CfgMgr::getFamily(), isc::hooks::LibraryHandle::getParameter(), isc::process::Daemon::getProcName(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_ERROR, LOG_WARN, isc::flex_id::storeConfiguration(), Element::string, and Element::typeToName().
| int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 163 of file flex_id/load_unload.cc.
| int unload | ( | ) |
Called by the Hooks library manager when the library is unloaded.
Definition at line 155 of file flex_id/load_unload.cc.
References isc::flex_id::flex_id_logger, FLEX_ID_UNLOAD, and LOG_INFO.