From 27acb6c49f7dedbe5d60b16b8f64ea6c9de82aae Mon Sep 17 00:00:00 2001 From: cepetr Date: Tue, 7 May 2024 09:38:50 +0200 Subject: [PATCH] uzlib(trezor): add user context for source callback --- lib/uzlib/uzlib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/uzlib/uzlib.h b/lib/uzlib/uzlib.h index 3a4a1ad160da..4ae31dc4760d 100644 --- a/lib/uzlib/uzlib.h +++ b/lib/uzlib/uzlib.h @@ -93,6 +93,9 @@ struct uzlib_uncomp { besides returning the next byte, it may also update source and source_limit fields, thus allowing for buffered operation. */ int (*source_read_cb)(struct uzlib_uncomp *uncomp); + /* Source callback context parameter not used by the library itself. + User can use it to pass additional data to source_read_cb. */ + void *source_read_cb_context; unsigned int tag; unsigned int bitcount;