![]() |
Kea 3.1.1
|
#include <config.h>
#include <class_cmds.h>
#include <class_cmds_log.h>
#include <cc/command_interpreter.h>
#include <hooks/hooks.h>
#include <dhcpsrv/cfgmgr.h>
#include <process/daemon.h>
Go to the source code of this file.
Functions | |
int | class_add (CalloutHandle &handle) |
This is a command callout for 'class-add' command. | |
int | class_del (CalloutHandle &handle) |
This is a command callout for 'class-del' command. | |
int | class_get (CalloutHandle &handle) |
This is a command callout for 'class-get' command. | |
int | class_list (CalloutHandle &handle) |
This is a command callout for 'class-list' command. | |
int | class_update (CalloutHandle &handle) |
This is a command callout for 'class-update' command. | |
int | load (LibraryHandle &handle) |
This function is called when the library is loaded. | |
int | multi_threading_compatible () |
This function is called to retrieve the multi-threading compatibility. | |
int | unload () |
This function is called when the library is unloaded. | |
int class_add | ( | CalloutHandle & | handle | ) |
This is a command callout for 'class-add' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 36 of file class_cmds_callouts.cc.
References CLASS_CMDS_CLASS_ADD_HANDLER_FAILED, isc::class_cmds::class_cmds_logger, and LOG_ERROR.
Referenced by load().
int class_del | ( | CalloutHandle & | handle | ) |
This is a command callout for 'class-del' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 116 of file class_cmds_callouts.cc.
References CLASS_CMDS_CLASS_DEL_HANDLER_FAILED, isc::class_cmds::class_cmds_logger, and LOG_ERROR.
Referenced by load().
int class_get | ( | CalloutHandle & | handle | ) |
This is a command callout for 'class-get' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 56 of file class_cmds_callouts.cc.
References CLASS_CMDS_CLASS_GET_HANDLER_FAILED, isc::class_cmds::class_cmds_logger, and LOG_ERROR.
Referenced by load().
int class_list | ( | CalloutHandle & | handle | ) |
This is a command callout for 'class-list' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 76 of file class_cmds_callouts.cc.
References CLASS_CMDS_CLASS_LIST_HANDLER_FAILED, isc::class_cmds::class_cmds_logger, and LOG_ERROR.
Referenced by isc::class_cmds::ClassCmdsImpl::addClass(), isc::dhcp::BaseNetworkParser::getAdditionalClassesElem(), isc::dhcp::BaseNetworkParser::getClientClassesElem(), load(), and isc::class_cmds::ClassCmdsImpl::updateClass().
int class_update | ( | CalloutHandle & | handle | ) |
This is a command callout for 'class-update' command.
handle | Callout handle used to retrieve a command and provide a response. |
Definition at line 96 of file class_cmds_callouts.cc.
References CLASS_CMDS_CLASS_UPDATE_HANDLER_FAILED, isc::class_cmds::class_cmds_logger, and LOG_ERROR.
Referenced by load().
int load | ( | LibraryHandle & | handle | ) |
This function is called when the library is loaded.
handle | library handle |
Definition at line 134 of file class_cmds_callouts.cc.
References class_add(), CLASS_CMDS_INIT_FAILED, CLASS_CMDS_INIT_OK, isc::class_cmds::class_cmds_logger, class_del(), class_get(), class_list(), class_update(), isc::dhcp::CfgMgr::getFamily(), isc::process::Daemon::getProcName(), isc::dhcp::CfgMgr::instance(), isc_throw, LOG_ERROR, LOG_INFO, and isc::hooks::LibraryHandle::registerCommandCallout().
int multi_threading_compatible | ( | ) |
This function is called to retrieve the multi-threading compatibility.
Definition at line 178 of file class_cmds_callouts.cc.
int unload | ( | ) |
This function is called when the library is unloaded.
Definition at line 170 of file class_cmds_callouts.cc.
References CLASS_CMDS_DEINIT_OK, isc::class_cmds::class_cmds_logger, and LOG_INFO.