From ef3adb98308f14628e64b918f739e472de00cfcf Mon Sep 17 00:00:00 2001 From: Toni Date: Tue, 26 Sep 2023 23:10:57 +0200 Subject: Added printf/fprintf replacement for some internal modules. (#1974) * logging is instead redirected to `ndpi_debug_printf` Signed-off-by: lns Signed-off-by: Toni Uhlig --- src/include/ndpi_utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/ndpi_utils.h') diff --git a/src/include/ndpi_utils.h b/src/include/ndpi_utils.h index 492b46a47..288cd7a94 100644 --- a/src/include/ndpi_utils.h +++ b/src/include/ndpi_utils.h @@ -25,9 +25,14 @@ #define __NDPI_UTILS_H__ #include "ndpi_define.h" +#ifndef NDPI_CFFI_PREPROCESSING +#include "ndpi_includes.h" +#endif #ifndef NDPI_CFFI_PREPROCESSING -extern u_int8_t ndpi_ends_with(char *str, char *ends); +struct ndpi_detection_module_struct; +extern u_int8_t ndpi_ends_with(struct ndpi_detection_module_struct *ndpi_struct, + char *str, char *ends); #endif // NDPI_CFFI_PREPROCESSING /* **************************************** */ -- cgit v1.2.3