Added some de-initializing funcs to plugins, lq_plugins, netfilter, parser
[olsrd.git] / src / process_package.c
index 8bdb823..7a04788 100644 (file)
@@ -318,6 +318,17 @@ olsr_init_package_process(void)
   olsr_parser_add_function(&olsr_input_hna, HNA_MESSAGE);
 }
 
+void
+olsr_deinit_package_process(void)
+{
+  olsr_parser_remove_function(&olsr_input_hello, HELLO_MESSAGE);
+  olsr_parser_remove_function(&olsr_input_hello, LQ_HELLO_MESSAGE);
+  olsr_parser_remove_function(&olsr_input_tc, TC_MESSAGE);
+  olsr_parser_remove_function(&olsr_input_tc, LQ_TC_MESSAGE);
+  olsr_parser_remove_function(&olsr_input_mid, MID_MESSAGE);
+  olsr_parser_remove_function(&olsr_input_hna, HNA_MESSAGE);
+}
+
 static int
 deserialize_hello(struct lq_hello_message *hello, const void *ser)
 {