[Olsr-dev] [PATCH v1 019/115] txtinfo: add plugin_init hook

Ferry Huberts (spam-protected)
Wed Dec 2 21:27:52 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/txtinfo/src/olsrd_txtinfo.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/txtinfo/src/olsrd_txtinfo.c b/lib/txtinfo/src/olsrd_txtinfo.c
index a02d700..68ff289 100644
--- a/lib/txtinfo/src/olsrd_txtinfo.c
+++ b/lib/txtinfo/src/olsrd_txtinfo.c
@@ -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;
 }
-- 
2.5.0




More information about the Olsr-dev mailing list