diff options
author | lns <matzeton@googlemail.com> | 2023-09-24 22:50:22 +0200 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2023-09-24 22:50:22 +0200 |
commit | 7fde1db6a4b00696c433de8498e88e3928d6d757 (patch) | |
tree | 9010a0326b2f5c2edf975a3c974160c30a123231 /src/include/ndpi_api.h | |
parent | 725fcf4852f06e2f54469c2439d13169d5d68d09 (diff) |
Added printf/fprintf replacement for some internal modules.improved/logging_callback_ndpi_printf
* logging is instead redirected to `ndpi_debug_printf`
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/include/ndpi_api.h')
-rw-r--r-- | src/include/ndpi_api.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/ndpi_api.h b/src/include/ndpi_api.h index eddad549c..ce710ddf7 100644 --- a/src/include/ndpi_api.h +++ b/src/include/ndpi_api.h @@ -728,21 +728,22 @@ extern "C" { * * @par ndpi_mod = the detection module */ - void ndpi_dump_protocols(struct ndpi_detection_module_struct *mod); + void ndpi_dump_protocols(struct ndpi_detection_module_struct *mod, FILE *dump_out); /** * Generate Options list used in OPNsense firewall plugin * * @par opt = The Option list to generate + * @par dump_out = Output stream for generated options */ - void ndpi_generate_options(u_int opt); + void ndpi_generate_options(u_int opt, FILE *dump_out); /** * Write the list of the scores and their associated risks * - * @par ndpi_mod = the detection module + * @par dump_out = Output stream for dumped risk scores */ - void ndpi_dump_risks_score(void); + void ndpi_dump_risks_score(FILE *dump_out); /** * Read a file and load the protocols |