Example Plugin

From OLSR.org Wiki
Jump to: navigation, search

The Example Plugin has no real functionality, it is just made as an empty framework for people starting their own OONF plugins.


The plugin uses a single timer to count up an internal variable and output them to the plugins logging source.

It has a constructor, a destructor and callback for configuration changes.


The plugin defines the example configuration section with three settings.

Key Default Type Limits
interval 1.0 clock >=0.1
start 0 integer

interval defines the time between two queries of the ethernet speed of each interface. The plugin tries to query all interfaces defined with names interface sections.