sgwdynspeed: add plugin
[olsrd.git] / lib / sgwdynspeed / src / olsrdPlugin.h
1 #ifndef _SGWDYNSPEED_OLSRD_PLUGIN_H_
2 #define _SGWDYNSPEED_OLSRD_PLUGIN_H_
3
4 /* Plugin includes */
5 #include "configuration.h"
6
7 /* OLSRD includes */
8 #include "olsrd_plugin.h"
9
10 /* System includes */
11 #include <stddef.h>
12
13 /** The interface version supported by the plugin */
14 #define SGWDYNSPEED_PLUGIN_INTERFACE_VERSION    5
15
16 /**
17  The plugin parameter configuration, containing the parameter names, pointers
18  to their setters, and an optional data pointer that is given to the setter
19  when it is called.
20  */
21 static const struct olsrd_plugin_parameters plugin_parameters[] = {
22         {       .name = SGWDYNSPEED_SPEEDFILE_NAME, .set_plugin_parameter = &setSpeedFile, .data = NULL},
23         {       .name = SGWDYNSPEED_SPEEDFILEPERIOD_NAME, .set_plugin_parameter = &setSpeedFilePeriod, .data = NULL}
24 };
25
26 #endif /* _SGWDYNSPEED_OLSRD_PLUGIN_H_ */