![]() |
Kea 3.1.1
|
#include <hooks_parser.h>
Static Public Member Functions | |
static std::string | getHookScriptsPath (bool reset=false, const std::string explicit_path="") |
Fetches the supported script path. | |
static std::string | validatePath (const std::string libpath) |
Validates a script path (script loaded by a hook) against the supported path. | |
Definition at line 86 of file hooks_parser.h.
|
static |
Fetches the supported script path.
The first call to this function with no arguments will set the default hooks path to either the value of DEFAULT_HOOK_SCRIPTS_PATH or the environment variable KEA_HOOK_SCRIPTS_PATH if it is defined. Subsequent calls with no arguments will simply return this value.
reset | recalculate when true, defaults to false. This is for testing purposes only. |
explicit_path | set default hooks path to this value. This is for testing purposes only. |
Definition at line 37 of file hooks_parser.cc.
Referenced by validatePath().
|
static |
Validates a script path (script loaded by a hook) against the supported path.
libpath | script path to validate. |
Definition at line 49 of file hooks_parser.cc.
References getHookScriptsPath().
Referenced by isc::legal_log::RotatingFile::apply(), and isc::run_script::RunScriptImpl::setName().