25 #include <core/plugin.h> 26 #include <core/threading/thread.h> 75 _name =
"PluginNameNotSet";
84 if (_name_alloc) free(_name_alloc);
124 if ( _name_alloc ) free(_name_alloc);
128 _name_alloc = strdup(name);
129 if ( ! _name_alloc ) {
131 _name =
"OutOfMemoryForPluginName";
void set_name(const char *name)
Set plugin name.
Fawkes library namespace.
ThreadList & threads()
Get a list of threads.
const char * name() const
Get the name of the plugin.
ThreadList thread_list
Thread list member.
Plugin(Configuration *config)
Constructor.
Configuration * config
Fawkes configuration.
void set_name(const char *format,...)
Set name of thread.
virtual ~Plugin()
Virtual destructor.
Interface for configuration handling.
virtual bool persistent()
Determines if the plugin can be unloaded.