24 #ifndef __PLUGIN_LOADER_H_ 25 #define __PLUGIN_LOADER_H_ 27 #include <core/plugin.h> 28 #include <core/exception.h> 51 std::string __plugin_name;
68 void unload(
Plugin *plugin);
70 std::string get_description(
const char *plugin_name);
72 bool is_loaded(
const char *plugin_name);
77 Module * open_module(
const char *plugin_name);
78 std::string get_string_symbol(
const char *plugin_name,
const char *symbol_name,
79 const char *section_name =
".fawkes_plugin");
80 Plugin * create_instance(
const char *plugin_name,
Module *module);
87 std::string plugin_base_dir_;
This exception is thrown if the requested plugin could not be unloaded.
Fawkes library namespace.
This exception is thrown if the requested plugin could not be loaded.
~PluginLoadException()
Destructor.
PluginLoadException(const char *plugin, const char *message)
Constructor.
This class manages plugins.
Dynamic module loader for Linux, FreeBSD, and MacOS X.
Base class for exceptions in Fawkes.
std::string plugin_name() const
Get name of plugin which failed to load.
Interface for configuration handling.