aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorNardi Ivan <nardi.ivan@gmail.com>2024-01-09 10:24:36 +0100
committerIvan Nardi <12729895+IvanNardi@users.noreply.github.com>2024-01-18 10:21:24 +0100
commit3107a958816f3a09ce39a36b42d03a0b0046225f (patch)
treef4e0967017b591fd5d9a795cf8524f8d86bcf2c0 /src/include
parentd72a760ac3895dd8a0bd3e55d4b51f9e22e04e6c (diff)
Make `ndpi_finalize_initialization()` returns an error code
We should check if the initialization was fine or not
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ndpi_api.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h
index 3a5c7eccc..9c53713de 100644
--- a/src/include/ndpi_api.h
+++ b/src/include/ndpi_api.h
@@ -222,8 +222,10 @@ extern "C" {
*
* @par ndpi_str = the struct created for the protocol detection
*
+ * @return 0 on success
+ *
*/
- void ndpi_finalize_initialization(struct ndpi_detection_module_struct *ndpi_str);
+ int ndpi_finalize_initialization(struct ndpi_detection_module_struct *ndpi_str);
/**
* Frees the dynamic memory allocated members in the specified flow