Fawkes API
Fawkes Development Version
|
Simple example plugin. More...
#include <plugins/examples/basics/example_plugin.h>
Public Member Functions | |
ExamplePlugin (fawkes::Configuration *config) | |
Constructor. More... | |
![]() | |
Plugin (Configuration *config) | |
Constructor. More... | |
virtual | ~Plugin () |
Virtual destructor. More... | |
void | set_name (const char *name) |
Set plugin name. More... | |
const char * | name () const |
Get the name of the plugin. More... | |
ThreadList & | threads () |
Get a list of threads. More... | |
virtual bool | persistent () |
Determines if the plugin can be unloaded. More... | |
Additional Inherited Members | |
![]() | |
ThreadList | thread_list |
Thread list member. More... | |
Configuration * | config |
Fawkes configuration. More... | |
![]() | |
typedef Plugin *(* | PluginFactoryFunc) (fawkes::Configuration *) |
Plugin loader function for the shared library Do not use directly, rather use the EXPORT_PLUGIN macro. More... | |
typedef void(* | PluginDestroyFunc) (Plugin *plugin) |
Plugin destructor function for the shared library. More... | |
Simple example plugin.
Creates a few threads for different wakeup hooks that print out messages every 10 iterations.
Definition at line 28 of file example_plugin.h.
ExamplePlugin::ExamplePlugin | ( | fawkes::Configuration * | config | ) |
Constructor.
config | Fawkes configuration |
Definition at line 45 of file example_plugin.cpp.
References fawkes::ThreadList::push_back(), and fawkes::Plugin::thread_list.