aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorToni <matzeton@googlemail.com>2023-05-30 08:27:37 +0200
committerGitHub <noreply@github.com>2023-05-30 08:27:37 +0200
commit04f5c5196e790db8b8cc39e42c8645fb7f3dd141 (patch)
tree4b2054672b65e8e8975a2354c7eedda785ba980d /example
parent552c9b3cc6fbffc5767086c1594b2b8f6598365c (diff)
Changed logging callback function sig. (#2000)
* make user data available for any build config Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'example')
1 files changed, 2 insertions, 0 deletions
diff --git a/example/reader_util.c b/example/reader_util.c
index 3c49563ed..1ede37ca2 100644
--- a/example/reader_util.c
+++ b/example/reader_util.c
@@ -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) {