txtinfo: add plugin_init hook
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 1 Dec 2015 06:43:14 +0000 (07:43 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 2 Dec 2015 17:41:13 +0000 (18:41 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/txtinfo/src/olsrd_txtinfo.c

index a02d700..68ff289 100644 (file)
@@ -190,6 +190,10 @@ static void determine_action(unsigned int *send_what, char *requ) {
   }
 }
 
+static void plugin_init(void) {
+  /* nothing to do */
+}
+
 /**
  *Do initialization here
  *
@@ -200,6 +204,8 @@ int olsrd_plugin_init(void) {
   /* Initial IPC value */
   ipc_socket = -1;
 
+  plugin_init();
+
   plugin_ipc_init();
   return 1;
 }