Changed logging callback function sig. (#2000)

* make user data available for any build config

Signed-off-by: lns <matzeton@googlemail.com>
This commit is contained in:
Toni
2023-05-30 08:27:37 +02:00
committed by GitHub
parent 552c9b3cc6
commit 04f5c5196e
4 changed files with 41 additions and 5 deletions
+2
View File
@@ -483,6 +483,8 @@ struct ndpi_workflow* ndpi_workflow_init(const struct ndpi_workflow_prefs * pref
workflow->prefs = *prefs;
workflow->ndpi_struct = module;
ndpi_set_user_data(module, workflow);
ndpi_set_log_level(module, nDPI_LogLevel);
if(_debug_protocols != NULL && ! _debug_protocols_ok) {