From 3107a958816f3a09ce39a36b42d03a0b0046225f Mon Sep 17 00:00:00 2001 From: Nardi Ivan Date: Tue, 9 Jan 2024 10:24:36 +0100 Subject: Make `ndpi_finalize_initialization()` returns an error code We should check if the initialization was fine or not --- src/include/ndpi_api.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/ndpi_api.h') 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 -- cgit v1.2.3