Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
#include "olsrd_plugin.h"
#include "olsrd_dyn_gw.h"
#include "olsrd_plugin.h"
#include "olsrd_dyn_gw.h"
+#include "olsr.h"
+#include "builddata.h"
-#define PLUGIN_NAME "OLSRD dynamic gateway plugin"
-#define PLUGIN_VERSION "0.4"
-#define MOD_DESC PLUGIN_NAME " " PLUGIN_VERSION
+#define PLUGIN_NAME "OLSRD dyn_gw plugin"
#define PLUGIN_INTERFACE_VERSION 5
/**
#define PLUGIN_INTERFACE_VERSION 5
/**
my_init(void)
{
/* Print plugin info to stdout */
my_init(void)
{
/* Print plugin info to stdout */
- printf("%s\n", MOD_DESC);
+ olsr_printf(0, "%s (%s)\n", PLUGIN_NAME, git_descriptor);