Skip to content

Commit

Permalink
uzlib(trezor): add user context for source callback
Browse files Browse the repository at this point in the history
  • Loading branch information
cepetr committed May 7, 2024
1 parent e63e8b8 commit 27acb6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/uzlib/uzlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 27acb6c

Please sign in to comment.