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