86 if ((index > libinfo.size()) || (index <= 0)) {
97 return (libinfo[index - 1].second);
109 return (params->get(name));
112 std::vector<std::string>
114 std::vector<std::string> names;
119 (params->size() == 0)) {
122 auto map = params->mapValue();
123 for (
auto elem = map.begin(); elem != map.end(); ++elem) {
124 names.push_back(elem->first);
std::vector< std::string > getParameterNames()
Returns names of configuration parameters for the library.
int(* CalloutPtr)(CalloutHandle &)
Typedef for a callout pointer. (Callouts must have "C" linkage.)
bool deregisterCallout(const std::string &name, CalloutPtr callout)
De-Register a callout on a hook.
void registerCommandHook(const std::string &command_name)
Registers a hook point for the specified command name.
void registerCallout(const std::string &name, CalloutPtr callout, int library_index)
Register a callout on a hook for the current library.
void registerCommandCallout(const std::string &command_name, CalloutPtr callout)
Register control command handler.
static HookLibsCollection getLibraryInfo()
Return list of loaded libraries with its parameters.
isc::data::ConstElementPtr getParameters()
Get configuration parameter common code.
std::vector< HookLibInfo > HookLibsCollection
A storage for information about hook libraries.
boost::shared_ptr< const Element > ConstElementPtr
void registerCallout(const std::string &name, CalloutPtr callout)
Register a callout on a hook.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool deregisterAllCallouts(const std::string &name, int library_index)
Removes all callouts on a hook for the current library.
static std::string commandToHookName(const std::string &command_name)
Generates hook point name for the given control command name.
bool deregisterAllCallouts(const std::string &name)
Removes all callouts on a hook.
isc::data::ConstElementPtr getParameter(const std::string &name)
Returns configuration parameter for the library.
int getLibraryIndex() const
Get current library index.
bool deregisterCallout(const std::string &name, CalloutPtr callout, int library_index)
De-Register a callout on a hook for the current library.