 |
Kea
1.5.0
|
Go to the documentation of this file.
83 LibraryHandle::getParameters() {
95 if ((index > libinfo.size()) || (index <= 0)) {
106 return (libinfo[index - 1].second);
118 return (params->get(name));
121 std::vector<std::string>
123 std::vector<std::string> names;
128 (params->size() == 0)) {
131 auto map = params->mapValue();
132 for (
auto elem = map.begin(); elem != map.end(); ++elem) {
133 names.push_back(elem->first);
bool deregisterAllCallouts(const std::string &name)
Removes all callouts on a hook for the current library.
static HooksManager & getHooksManager()
Get singleton hooks manager.
void setLibraryIndex(int library_index)
Set current library index.
static HookLibsCollection getLibraryInfo()
Return list of loaded libraries with its parameters.
void registerCommandHook(const std::string &command_name)
Registers a hook point for the specified command name.
Defines the logger used by the top-level component of kea-dhcp-ddns.
int getLibraryIndex() const
Get current library index.
std::vector< std::string > getParameterNames()
Returns names of configuration parameters for the library.
static std::string commandToHookName(const std::string &command_name)
Generates hook point name for the given control command name.
isc::data::ConstElementPtr getParameter(const std::string &name)
Returns configuration parameter for the library.
int(* CalloutPtr)(CalloutHandle &)
Typedef for a callout pointer. (Callouts must have "C" linkage.)
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
void registerCallout(const std::string &name, CalloutPtr callout)
Register a callout on a hook.
boost::shared_ptr< const Element > ConstElementPtr
void registerCallout(const std::string &name, CalloutPtr callout)
Register a callout on a hook for the current library.
std::vector< HookLibInfo > HookLibsCollection
A storage for information about hook libraries.
bool deregisterCallout(const std::string &name, CalloutPtr callout)
De-Register a callout on a hook.
bool deregisterCallout(const std::string &name, CalloutPtr callout)
De-Register a callout on a hook for the current library.
bool deregisterAllCallouts(const std::string &name)
Removes all callouts on a hook.