diff options
author | Toni <matzeton@googlemail.com> | 2023-05-30 08:27:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-30 08:27:37 +0200 |
commit | 04f5c5196e790db8b8cc39e42c8645fb7f3dd141 (patch) | |
tree | 4b2054672b65e8e8975a2354c7eedda785ba980d /example/reader_util.c | |
parent | 552c9b3cc6fbffc5767086c1594b2b8f6598365c (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/reader_util.c')
-rw-r--r-- | example/reader_util.c | 2 |
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) { |