diff options
author | Luca <deri@ntop.org> | 2019-11-07 19:28:16 +0000 |
---|---|---|
committer | Luca <deri@ntop.org> | 2019-11-07 19:28:16 +0000 |
commit | 0558d641f2230795ef856e5e1e5c77050becb932 (patch) | |
tree | 83be952091b9c14d73177ce43c7ee9fdd2bc8e27 /src/include/ndpi_api.h | |
parent | ac46a4dd58357b62d9b93253e47ade111efae649 (diff) |
Added ndpi_finalize_initalization() initialization function
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 11 |
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 |