aboutsummaryrefslogtreecommitdiff
path: root/src/include/ndpi_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r--src/include/ndpi_api.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 2552800ab..ed3e40d04 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -138,6 +138,9 @@ extern "C" {
/**
* Returns a new initialized detection module
+ * Note that before you can use it you can still load
+ * hosts and do other things. As soon as you are ready to use
+ * it do not forget to call first ndpi_finalize_initalization()
*
* @return the initialized detection module
*
@@ -145,6 +148,14 @@ extern "C" {
struct ndpi_detection_module_struct *ndpi_init_detection_module(void);
/**
+ * Completes the initialization (2nd step)
+ *
+ * @return the initialized detection module
+ *
+ */
+ void ndpi_finalize_initalization(struct ndpi_detection_module_struct *ndpi_str);
+
+ /**
* Frees the memory allocated in the specified flow
*
* @par flow = the flow to deallocate